arma::Col<unsigned> colu = {5, 15, 25};
for(int i = 0; i <3; i++)
{
const unsigned a = col_sizes(i);
io::CSVReader<a> doc("data/electricity-usage.csv");
}
But this is giving me an error.
Also is it compulsory to initialize with a number of columns? What if I don't know how many columns does the .csv file has.
Also is there a way to read data column-wise?
And if I have 25 columns, how will I read the whole row at once?
Hey. I was exploring this repo. So I want to read a
.csv
file and store its content into anarma::mat
.I have 3 files with 5, 15, 25 columns. I don't want to do this
I want something like
But this is giving me an error.
Also is it compulsory to initialize with a number of columns? What if I don't know how many columns does the
.csv
file has. Also is there a way to read data column-wise? And if I have 25 columns, how will I read the whole row at once?Thank you for the help.