Displaying 1 result from an estimated 1 matches for "spec5".
Did you mean:
spec
2006 Feb 25
2
Adding header lines to a dataframe that is exported using write.csv
...Y, species,,,, #where Y=number of columns in the dataframe
,Q,Q,Q,Q,Q #where the number of Qs=the number of columns in the dataframe
Those 3 .csv header lines would be followed by dataframe, which
consists of one row containing column headers and X "data" rows:
,spec1,spec2,spec3,sp3c4,spec5 #these are the dataframe's column headers
plot1,15.84,0,0,792,7 #this is an example "data" row
In case the above is unclear, I have also attached a small .csv as an
example of what the output should look like.
Thank you. Mark