I import a dataframe composed by 2 variables and 14000 cases. Now I need the labels of the cases sorted by the second variable V2, but if I sort the dataframe according to the second variable:
mydataframe<- mydataframe[order(mydataframe$V2),] I notice that the labels are always the same (that is, not ordered by V2). How to change them? I tried : labels(mydataframe)<-1:14000 but it doesn't work. Thanks domenico [[alternative HTML version deleted]] ______________________________________________ R-help@stat.math.ethz.ch 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.