In R, is there a function like read.csv
that reads in files where the headers are on the left (or right) as opposed to the top and the data is organized from left to right?
So the data would look like:
var1,1,2,3,4,5
Looking at the documentation for read.table
and read.csv
, nothing seems to pop out. The best option I see using those functions is to use read.table
and then construct another table whose columns are the rows of the original data and so forth.