Skip to content

Commit

Permalink
Update get_status.R
Browse files Browse the repository at this point in the history
  • Loading branch information
8Ginette8 committed Mar 25, 2024
1 parent 3234c3c commit b8b9953
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/get_status.R
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,9 @@ get_status=function(sp_name = NULL,
}

# Which is null in main.dat for Genus, Family, Order, Phyllum?
exist.not = c("genus","order","family","phylum")%in%names(main.dat)
exist.not = c("genus","family","order","phylum")%in%names(main.dat)
main.out = data.frame(Genus=NA,Family=NA,Order=NA,Phylum=NA)
main.out[exist.not] = main.dat[,c("genus","order","family","phylum")[exist.not]]
main.out[exist.not] = main.dat[,c("genus","family","order","phylum")[exist.not]]

# Extract accepted names and synonyms
e.output = data.frame(canonicalName = c.can,
Expand Down

0 comments on commit b8b9953

Please sign in to comment.