Hello We have a problem with sorting our dataframe... i have tried to write
x <- males[sort(males$index, decreasing=T),] But that just gives me > x id sex BVgain BVmeat phenogain phenomeat index NA NA NA NA NA NA NA NA NA.1 NA NA NA NA NA NA NA NA.2 NA NA NA NA NA NA NA NA.3 NA NA NA NA NA NA NA NA.4 NA NA NA NA NA NA NA And that is not right... We have 7 variables in a dataframe and we need it sorted by one variable... how do we do that so we get the same dataframe out just sorted....??? Please help:) Cincerely Rina Miehs ______________________________________________ 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.