R & Stata

2020-09-02  本文已影响0人  一任平生cq

命令行运行Rscript

#run R script without print
# a is the name of the R script
Rscript a.R 
#run R script and create a new file a.Rout to save the output
R CMD BATCH a.R
#run R script with nohup
nohup R CMD BATCH M5_State_Week_P5_CA.R &

Stata

string to int

destring var, replace force
# force参数的作用是“convert nonnumeric strings to missing values”
上一篇下一篇

猜你喜欢

热点阅读