

I used the following R code to read the file : #The stata file is in the webpage: "Error: cannot allocate vector of size 21k.Kb". I am using 32 bit (Vista) and R is giving me the error. Is there way that I can read this stata file in R?. Is there a way to read the stata file using stata by first asking to keep only variables (I know the variables) so that number of variables is less than 5000? So, I can't use stata to read the stata file. I used first stata to read the file but the maximum variable that it can read is 5000. View the entire collection of UVA Library StatLab articles.I am trying to read the stata files of size 320 MB in stata and R with more than 5000 variables. Pop_c float %9.0g popcl Categorized population

Marriage long %12.0gc Number of marriages > label data "1980 Census data by state: v2" * Now the three categories are presented as low, medium and high * Then we attach the value label popcl to the variable pop_c

> label define popcl 1 "low" 2 "medium" 3 "high" Let’s label them as low, medium and high. * Remember we categorized pop_c into three categories: 1,2 and 3 Poplt5 long %12.0gc Pop, label variable pop0_17 "Pop, label variable pop_c "Categorized population" Here we create another new variable called pop_c2 then do the recode in the same manner as we did for pop_c. We can use the -recode- command to recode variables as well. Then we create a new variable called pop_c and transform the original variable pop into three categories. Here we create the youth population variable again, but this time we make it into thousands and replace the one we just created. replace-: replace contents of existing variables > order state state2 region pop poplt5 pop0_17 * Summary statistics for the three variables Poplt5 long %12.0gc Pop, generate pop0_17 = poplt5 + pop5_17 State2 str2 %-2s Two-letter state abbreviation Variable name type format label variable label Contains data from /Applications/Stata/ado/base/c/census.dta
