[R] subsetting of a data.frame
sarah.goslee at gmail.com
Thu May 21 18:09:39 CEST 2009
You can for example use ncol(A) to get the number of columns.
On Thu, May 21, 2009 at 12:06 PM, culpritNr1 <ig2ar-saf1 at yahoo.co.uk> wrote:
> Hello everybody
> How do you subset a data.frame when your boundaries are a combination of
> explicit and implicit limits?
> For example, I need to subset from the fourth (explicit) to the last
> (implicit) column a data.frame named A.
> In other languages you would do A[ , 4:]. Would anybody show me the R's way?
> Thank you,
> Your culprit
More information about the R-help