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

Remove aliases for NASIS columns, replace with physical column name #368

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
vegtransect_id => vegtransectiid, vtpsiid => vegtransplantsummiid
  • Loading branch information
brownag committed Dec 10, 2024
commit 8ba944674496534d57ddbb6ae08b4ee90d70231f
2 changes: 1 addition & 1 deletion R/get_veg_data_from_NASIS_db.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ get_veg_data_from_NASIS_db <- function(SS=TRUE, dsn = NULL) {
}

# veg transect
q.vegtransect <- "SELECT siteiid, vegplotiid, vegplotid, vegplotname, obsdate, primarydatacollector, datacollectionpurpose, assocuserpedonid, vegtransectid, vegtransplantsummiid vtpsiid, transectlength, plantsym, plantsciname, plantnatvernm
q.vegtransect <- "SELECT siteiid, vegplotiid, vegplotid, vegplotname, obsdate, primarydatacollector, datacollectionpurpose, assocuserpedonid, vegtransectid, vegtransplantsummiid, transectlength, plantsym, plantsciname, plantnatvernm

FROM site_View_1 AS s
INNER JOIN siteobs ON siteobs.siteiidref=s.siteiid
Expand Down
4 changes: 2 additions & 2 deletions R/get_vegplot_data_from_NASIS_db.R
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ get_vegplot_transpecies_from_NASIS_db <- function(SS = TRUE,
}

# veg transect species data - many species to one veg transect
q.vtps <- "SELECT siteiid, siteobsiid, vegplotiid, vegtransectiidref as vegtransect_id, vegplotid, vegplotname,
obsdate, vegtransplantsummiid as vtpsiid, vtps.seqnum, plantsym, plantsciname,
q.vtps <- "SELECT siteiid, siteobsiid, vegplotiid, vegtransectiidref as vegtransectiid, vegplotid, vegplotname,
obsdate, vegtransplantsummiid, vtps.seqnum, plantsym, plantsciname,
plantnatvernm, plantnativity, planttypegroup,
plantheightcllowerlimit, plantheightclupperlimit, sociabilityclass,
specieslivecanhtbotave, specieslivecanhttopave, overstorydbhmin,
Expand Down
Loading