阅读背景:

将stata中的周期转换为r中的NA

来源:互联网 

I have a dataset in stata and I want to take it to R, but there are some missing values in state and they are represented using a period. I want to get the data into R which I do by loading the foreign package and then I use read.table() function. How do I convert the periods in state which are genuinely missing to NA in R? I have a dataset in stata and I want to take it




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: