Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in dplyr::select(): Column geom doesn't exist. #34

Open
fab4ap opened this issue Oct 19, 2022 · 1 comment
Open

Error in dplyr::select(): Column geom doesn't exist. #34

fab4ap opened this issue Oct 19, 2022 · 1 comment

Comments

@fab4ap
Copy link

fab4ap commented Oct 19, 2022

I get the foll. error even though the spatial sf object wimi_cnty is valid.

wimi_gm = growMort(wimi_db, polys=wimi_cnty, returnSpatial=T, bySpecies=T, landType='forest', treeType = 'all', stateVar='TPA', nCores=4)

Error in dplyr::select():

! Can't subset columns that don't exist.
? Column geom doesn't exist.

Same error with carbon(), tpa() - HOWEVER, fsi() works without a problem!

wimi_fsi = fsi(wimi_db, polys=wimi_cnty, returnSpatial=T, bySpecies=T, landType='forest', treeType = 'live', totals=T, nCores=4)

WORKS!!!

names(wimi_cnty)
[1] "AREA" "PERIMETER" "US_CTY_" "US_CTY_ID" "STATE_FIPS"
[6] "CNTY_FIPS" "fips" "STATE_NAME" "CNTY_NAME" "SUB_REGION"
[11] "STAT_FLAG" "geom"

names(wimi_db)
[1] "COND" "COND_DWM_CALC"
[3] "INVASIVE_SUBPLOT_SPP" "PLOT"
[5] "POP_ESTN_UNIT" "POP_EVAL"
[7] "POP_EVAL_GRP" "POP_EVAL_TYP"
[9] "POP_PLOT_STRATUM_ASSGN" "POP_STRATUM"
[11] "SUBPLOT" "TREE"
[13] "TREE_GRM_COMPONENT" "TREE_GRM_MIDPT"

@jamie-dhoover
Copy link

Did you ever solve this? I am having a similar error with fa_mean. I am running the developer version:
Error in dplyr::select():
! Can't subset columns that don't exist.
✖ Column fa_mean doesn't exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants