Hello,
 If I have x<-c(5,9,8,3,4,5,6,7,)
and y <-("a", "b","c", "d","e","f", "g","h")

and D <- data.frame(x,y)



I did this max(x)

and My expectede anwer is b.
How do I select element in y which correspond to maximum number in x?

thanks.

regards,
Prabhakar

        [[alternative HTML version deleted]]

______________________________________________
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