I am trying to import data from a text file. I can import the data. However, when I want to select a subsample it throws an error. For example, I have data which is 3000 observations but I want to use only the last 1000. However, when I use this code:
load vectorX[2000:3000,1] = C:\RData\Riza\Data_GC\EPU.txt;
I get an error. Can you help me in fixing this error.
load function should not be used anymore except for loading GAUSS matrix (.fmt) files.
For this task, we recommend you use the
csvReadM command. Learn how to read a subsection of a text dataset with the