


This will save the data in x into a file on disk named x.fmt. For that take a look at readr.Įxample 2: Create a GAUSS matrix file x.fmt save x Note that there are more complicated functions for reading in specified rows or iterating over the dataset to read a bit at a time. newx = loadd("mydata") Īfter this command newx and x should contain the same values. You can load this dataset into another variable with the loadd command (or pass it into one of the GAUSS functions that takes a dataset as an input). Now that the data is loaded into memory in a variable x, you can save the data into a dataset or matrix file for use later with GAUSS.Įxample 1: Create a dataset file mydata.dat string vnames = Īfter executing the line above, you will have the matrix x in GAUSS's memory and you will have a GAUSS dataset on disk named mydata.dat. Saving the data in the desired format (i.e.DAT)Īssuming that we have 10 rows and 2 columns of data in a file named sample.csv, you can load it like this: //load the data.
