[R] Odp: how to sort and group the data?

Petr PIKAL petr.pikal at precheza.cz
Thu Apr 2 12:40:26 CEST 2009


Hi

r-help-bounces at r-project.org napsal dne 02.04.2009 11:14:34:

> HI,
> I need help..
> How to sort and group the data below:-
> USER NAME
> 12     admin
> 12     admin
> 10     admin
> 10     advertising
> 61     process
> 17    snapshot
> 61    ticket
> 61    ticket
> 30    snapshot
> 10    advertising
> 10    advertising
> 10    advertising
> 10    advertising

For instance

apply(your.data, 2, sort)
or
your.data[order(your.data[,1]),]

> 
> I want to plot graph using this data.

maybe
plot(your.data)

You can not expect sensible answers of perplexing questions.

Regards
Petr


> 
> thank you.
> 
> regards,
> Hema.
> 
>    [[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at 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.




More information about the R-help mailing list