R & Stata

作者: 一任平生cq | 来源:发表于2020-09-02 12:04 被阅读0次

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

      本文链接:https://www.haomeiwen.com/subject/buxthktx.html