R/findSpecies.R

Defines functions findSpecies

Documented in findSpecies

findSpecies <- function(string){
# First find all the cells that contain the string
  cellsOI <- apply(species, 2, function(x) grepl(string, x, ignore.case=TRUE))
# Now determine all the rows that of interest
  rowsOI <- apply(cellsOI,1,sum)
# Display the rows of interest
  species[rowsOI>0,]
}
fischuu/hoardeR documentation built on April 13, 2024, 1:20 p.m.