Displaying 2 results from an estimated 2 matches for "chaparr".
Did you mean:
chaparro
2003 Jul 22
1
Making a group membership matrix
Hi Helpers:
I have a factor object that has 314k entries of 39 land cover types.
(This object can be coerced to characters neatly should that be easier
to work with.)
> length(foo)
[1] 314482
> foo[1:10]
[1] Montane Chaparral Barren Red Fir Red Fir
[5] Red Fir Red Fir Red Fir Red Fir
[9] Red Fir Red Fir
39 Levels: Alpine-Dwarf Shrub Annual Grassland Aspen Barren ... White
Fir
> summary(foo)
Alpine-Dwarf Shrub Annual Grass...
2003 Jul 21
1
Setting name attributes to a vector - join?
...k up table, i.e., landcov[3,2] == 1 == "Montane
Meadow"
CndVal Cnddbname
1 1 Montane Meadow
2 2 Sierran Mixed Coniferous Forest
3 3 Mixed Montane Chaparral
4 4 Jeffrey Pine-Fir Forest
5 5 Sierran White Fir Forest
etc.
How can I create an object that has the string as its value?
I.e., foo[3] <- "Montane Meadow"
I tried using apply and a custom function but couldn't g...