Hello,
Sometime ago I asked this using a STATA file as source.
Stata can read the variables names and then import the selected ones.
For example, if the dta file has 500 columns and the variables SEX and AGE, I can import only those columns.
The two columns will be read and load on memory.
This is very fast when you are looping through big datasets.
Is It possible to perform the above task using a RData file?
I mean, importing only the specified columns/variables names in order to perform a loop?
I read the help file and It doesn't show that capability.
If I try to write a loop with a RData file, I'm always reading and importing all the variables.
Using select from dplyr doesn't improve the proc time, because I'm still force to read many variables that aren't important or relevant.
I hope I made myself clear. It's a strange question in some way.
Thanks for your time and interest.
Have a nice day.