R & Stata

命令行运行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”

你可能感兴趣的:(R & Stata)