forestgeo / bciex

Easy access to data for examples -- from Barro Colorado Island, Panama.
https://forestgeo.github.io/bciex/
Other
1 stars 1 forks source link

Document dealing with elevation data #12

Open maurolepore opened 6 years ago

maurolepore commented 6 years ago

Show here how elevation data doesn't match census data in terms of its variable names.

census <- fgeo.tool::top(bciex::bci12s7mini, sp, 2)
census

elevation <- bciex::bci_elevation
head(elevation)

# Plot positions are `gx`, `gy` in `census` versus `x`, `y` in `elevation`.
# They must have the same name. Fixing elevation
elevation <- fgeo.tool::restructure_elev(bciex::bci_elevation)
head(elevation)