Skip to content

Commit

Permalink
Merge pull request #29 from DavisVaughan/fix/join-arg
Browse files Browse the repository at this point in the history
`na.rm` is not an argument to `left_join()`
  • Loading branch information
CWWhitney authored Dec 15, 2022
2 parents e7f2a79 + 231e966 commit 9d93e9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/FLs.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Ip <- melt_FLS %>%
dplyr::summarize(Ip = sum(value, na.rm = TRUE))

#Bind Ip and Iu data
FLspdata <- dplyr::left_join(Iu, Ip, by = "sp_name", na.rm = TRUE)
FLspdata <- dplyr::left_join(Iu, Ip, by = "sp_name")

#Calculate FLs = Ip * 100 / Iu
FLspdata$FLs <- (FLspdata$Ip*100) / FLspdata$FCs
Expand Down

0 comments on commit 9d93e9f

Please sign in to comment.