Import a subsection of a text data file

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.

1 Answer



0



The 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 csvReadM command.

aptech

1,278

Your Answer


You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

Try GAUSS for 30 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy | Sitemap