You can for example use ncol(A) to get the number of columns. Sarah
On Thu, May 21, 2009 at 12:06 PM, culpritNr1 <[email protected]> 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 > > -- Sarah Goslee http://www.functionaldiversity.org ______________________________________________ [email protected] 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.

