# NOT RUN {
assert_is_installed("fgeo.x")
# Input a ForestGEO-like elevation list or dataframe
elevation_ls <- fgeo.x::elevation
habitats <- fgeo_habitat(
elevation_ls,
gridsize = 20, n = 4
)
str(habitats)
# Habitat data is useful for calculating species-habitat associations
census <- fgeo.x::tree6_3species
as_tibble(
tt_test(census, habitats)
)
# }
Run the code above in your browser using DataLab