[R] index question
Sundar Dorai-Raj
sundar.dorai-raj at pdf.com
Tue Nov 1 22:25:06 CET 2005
Jeffrey Stratford wrote:
> Thanks for those on the list that answered my previous question. I'm
> just about where I need to be (looking at output).
>
> In the hier.part documentation there is a line env <- urbanwq[,2:8].
>
> This means use rows 2 through 8 in the data frame "urbanwq", right?
> What does the comma represent? If one wasn't using column headers would
> this be necessary?
>
> Thanks,
>
> Jeff
>
>
Hi, Jeff,
Actually it means *columns* 2:8. See the documentation and examples in
help("[").
--sundar
/war eagle
More information about the R-help
mailing list