I was trying to set the row name of a matrix from the list of names read through csv.read () I am It just sets the row name to "1".
Labels & lt; -read.csv ('labels.csv', header = f, sep = ';', comment.char = '', as.is = F) labeled V1 V2V3V4V5V6V7V8 V9V10V11V121 Ball 11 Ball 9 Ball 12 Ball 2 Ball 6 Ball 7 Ball 1 Ball 3 Ball 10 Ball 18 Ball 2 Ball 4 Line.Name (M) & LT; -Labals Where M12x12 is the double matrix.
This is what I get
& gt; Line. Name (M) [1] "1" "1" "1" "1" "1" "1" "1" "1" "1" "1" "1" "1" Any help is appreciated, thanks.
You are probably running into problems because you have data for factor s Read in the form row.names (M) & lt; - sapply (label, as.character)
No comments:
Post a Comment