Using this excellent advise, I am running a loop to read in a 60GB dta file and save it in chunks (after some data preprocessing). Unfortunately, I do not know the total number of observations and so the `use` command does not execute when asking to read in more data than is avilable:
```Stata
use `usevars' in 210000001/220000000 using "a_large_dta_file.dta", clear
```
The dataset appears to contain less than 220000000 observations, but I do not know how many. I am looking for and `endoffile` operator or something in that spirit to circumvent this problem. Manually I verified that at least 210001001 exist, but this won't help much.
---
Crossposted on Stackoverflow (https://stackoverflow.com/questions/...-line-n-to-end)
Related Posts with Read dta file from line n to end
tabstat of multiple dummy variablesHello, I have a large dataset of N = 59,000,000. I have a set of diagnoses dummy variables a00_a09…
Intercepts at knots in mixedDear all, I am currently working on a mixed model with incorporation of knots at specific timepoint…
Confidence-interval plots / any plot : resize possible?Dear Statalisters My question, basically, is whether there is a 'correct' way to resize Stata graph…
How to perform NLS estimation with a complex functionDear Stata users, I need to use NLS to estimate the following equation describing the so-called Ba…
distribution explanatory variable for different birth cohortsHi there, I'm struggling to understand part of a assignment that I need to do. I have to examine w…
Subscribe to:
Post Comments (Atom)
0 Response to Read dta file from line n to end
Post a Comment