Displaying 1 result from an estimated 1 matches for "spp_vol".
Did you mean:
smb_vol
2007 Jul 05
1
problem assigning to indexed data frame element
...rio Ministry of Natural Resources
1235 Queen St East
Sault Ste Marie, ON, P6A 2E3
Tel: (705) 946-7406
Fax: (705) 946-2030
------------------------
Code:
> sfalls.plot.comp <- matrix(nrow=plot.count, ncol=spec.count, byrow=T)
> colnames(sfalls.plot.comp) <- levels(SPECIES)
### SPECIES, SPP_VOL, & PLOT are columns/variables in a previously read
data file
> sfalls.plot.comp <- data.frame(sfalls.plot.comp)
> attach(sfalls.plot.comp)
> sfalls.plot.comp[is.na(sfalls.plot.comp)] <- 0
> sfalls.plot.comp
Bf Bw Pj Po Sb
1 0 0 0 0 0
2 0 0 0 0 0
> hh <- 1
&...