![]() ![]() To convert labelled to factors, use as_factor (not as.factor). One you start working with ffc.stata, one thing you will notice is that many columns are of type labelled, which is not common in R. csv file too so that we can compare them):įfc.stata <- read_dta(file = "background.dta")įfc.csv <- read_csv(file = "background.csv") In this post I’ll use haven because it is part of the tidyverse. If you have questions-and suggestions-please feel free to post them at the bottom of this post. So, in this post, I’ll give some pointers to getting up and running with the. dta format is native to Stata, and you might prefer to use R. dta format, which means the files now include metadata that was not available in the. We’ve just released the Fragile Families Challenge data in. ![]()
0 Comments
Leave a Reply. |