We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae55522 commit 55dc81dCopy full SHA for 55dc81d
1 file changed
R/ASCI.R
@@ -44,6 +44,21 @@ ASCI <- function(taxa, stations){
44
txrmv <- dat$txrmv
45
dat <- dat$taxa
46
47
+ dat <- dat %>%
48
+ left_join(
49
+ taxa_crosswalk %>%
50
+ rename(FinalID = NewName)
51
+ ,
52
+ by = 'FinalID'
53
+ ) %>%
54
+ mutate(
55
+ FinalID = case_when(
56
+ is.na(OldName_in_ASCI_Calculator) ~ FinalID,
57
+ T ~ OldName_in_ASCI_Calculator
58
+ )
59
60
+ select(-OldName_in_ASCI_Calculator)
61
+
62
# calculate GIS from stations
63
# calcgis calculates required gismetrics which are not provided, from the ones that were provided in the station data
64
# IF possible... If not enough data was provided it throws an error, or at least it is supposed to...
0 commit comments