#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參數(shù)的作用是“convert nonnumeric strings to missing values”