Adds weak_tibble() and weak_as_tibble() utility functions. This way all the fd_xxxx() functions return a tibble if that package is installed, but a data.frame if not. I find tibbles super handy, so this seemed a worthwhile (but optional as far as the user is concerned) addition.
Incorporates the inventory data sent by @atkinsjeff . A new function fd_inventory provides user access to these data. Test code is included.
A summary function computes basal area and stocking for each replicate/plot/subplot combination.
Note this PR SHOULD NOT BE MERGED until #10 is resolved, to deal with a number of ambiguities and problems in the inventory data.
This PR does a few things:
weak_tibble()
andweak_as_tibble()
utility functions. This way all thefd_xxxx()
functions return atibble
if that package is installed, but adata.frame
if not. I find tibbles super handy, so this seemed a worthwhile (but optional as far as the user is concerned) addition.fd_inventory
provides user access to these data. Test code is included.Note this PR SHOULD NOT BE MERGED until #10 is resolved, to deal with a number of ambiguities and problems in the inventory data.