Hi,

I am reading in a dataframe from a CSV file.  It has 70 columns.  I do 
not have any kind of unique "row id".


rawdata <- read.table("r_work/train_data.csv", header=T, sep=",", 
na.strings=0)

When training an svm, I keep getting an error

So, as an experiment, I wrote the data back out to a new file so that I 
could see what the svm function sees.

write.table(rawdata, file="r_work/output_data.csv", quote=FALSE, sep=",")


It appears as if R has added a column for me with id numbers for each 
row.  That would be fine, except that R SHIFTS ALL MY COLUMN LABELS OVER 
ONE.  That causes several problems:
     1) The header names are now wrong for each column
     2) My last column has no label
     3) The SVM complains about the unlabeled column

Would someone please help me sort this out.

Thanks!

-N


	[[alternative HTML version deleted]]


