[R] how to view the top 20 lines in a long dataset

Søren Højsgaard Soren.Hojsgaard at agrsci.dk
Mon Nov 1 20:57:03 CET 2010


See ?head
Regards
Søren

________________________________________
Fra: r-help-bounces at r-project.org [r-help-bounces at r-project.org] På vegne af Louis Plough [lplough at usc.edu]
Sendt: 1. november 2010 20:40
Til: r-help at r-project.org
Emne: [R]  how to view the top 20 lines in a long dataset

Hi,
I am simply looking for the function that will allow you to look at the top
20 lines of a long dataset?

LP


On Mon, Nov 1, 2010 at 10:46 AM, Louis Plough <lplough at usc.edu> wrote:

> Hi,
> I am trying to generate all possible permutations (choose 2) of a vector,
> b, for example--using 'combn' the combinations in only one direction are
> generated...
>
> > b<-c(.1,.2,.3)
> > combn(b,2)
>      [,1] [,2] [,3]
> [1,]  0.1  0.1  0.2
> [2,]  0.2  0.3  0.3
>
>                         [1,] 0.1  0.2  0.3  0.2  0.3  0.3        These
> should also be there.
>                         [2,] 0.1  0.2  0.3  0.1  0.1  0.2
>
> Is there another R function that can do this??
>
> Thanks,
> Louis
>

        [[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