In R: How do I choose the first 4 Rows of a Data Frame

Posted by Moe on Stack Overflow See other posts from Stack Overflow or by Moe
Published on 2010-04-19T13:21:25Z Indexed on 2010/04/19 13:23 UTC
Read the original article Hit count: 162

Filed under:
|

How Do I go about getting the first 4 rows of my Dataframe:

              Weight Response
1   Control     59      0.0
2 Treatment     90      0.8
3 Treatment     47      0.1
4 Treamment    106      0.1
5   Control     85      0.7
6 Treatment     73      0.6
7   Control     61      0.2

In 'R'?

© Stack Overflow or respective owner

Related posts about statistics

Related posts about r