Displaying 1 result from an estimated 1 matches for "specieslat1".
Did you mean:
specieslat2
2008 Jan 30
2
data.frame transformation
...s2,species3))
How can I, out of "data" make a new dataframe, where the cells of value
"1" in the species columns ("species1" to "species3") are replaced by
the respective "lat" values automatically - so that the final dataframe
looks like this:
specieslat1<-c(0,0,0,15)
specieslat2<-c(10,12,0,0)
specieslat3<-c(10,12,13,15)
data.frame(cbind(grid.id,lat,specieslat1,specieslat2,specieslat3))
?
Thanks a lot,
cheers
Christian
--
Christian Hof .. PhD student
Biodiversity & Global Change Lab .. C/Jos? Guti?rrez A...