Hi!
I want to choose part of the data. But it has a question.
> attach(PIKO)
> PIKO[1:5,]
code species dbh x y tag status branch
92 10142 PIKO 38.9 6.05 12.81 10165 alive 0
109 10213 PIKO 41.0 6.71 26.21 10202 alive 0
135 10222 PIKO 48.3 18.98 21.28 10214 alive 0
146 10223 PIKO 47.0 19.45 22.83 10224 alive 0
147 10223 PIKO 20.0 19.74 28.65 10225 alive 0
> n=PIKO[dbh>=25,]
> n[1:5,]
code species dbh x y tag status branch
92 10142 PIKO 38.9 6.05 12.81 10165 alive 0
109 10213 PIKO 41.0 6.71 26.21 10202 alive 0
135 10222 PIKO 48.3 18.98 21.28 10214 alive 0
146 10223 PIKO 47.0 19.45 22.83 10224 alive 0
152 10223 PIKO 33.5 16.94 27.25 10230 alive 0
*> n=PIKO[status="snag",]
Error in "[.data.frame"(PIKO, status = "snag", ) :
unused argument(s) (status ...)
*
[[alternative HTML version deleted]]
______________________________________________
[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