Imagine I have a csv KT.csv

I want to create a new dataframe o convert KT in a matrix and create a new
matrix with each column of KT ordered by ascending order.

I have tried to make this

b<-read.csv("KT.csv")


for(i in 1:ncol(b)){

b[,i]<-sort(b[,i])

}

But it puts a message that the number of rows doesn´t correspond.

Can someone give me a clue on how to order.

Many Thaks.
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to