rownames(Data)=as.character(Data[,1])

I am using this code:and Data[,1] has following output

head(Data[,1])

[1] "chrUn_random-1" "chrUn_random-2" "chrUn_random-3" "chrUn_random-7"

[5] "chrUn_random-9" "chrUn_random-11"

I want to assign these as row names. but every time it gives me an error.

Error in `row.names

More Ahsan Raza's questions See All
Similar questions and discussions