R/logbook_sample_without_species_control.R
logbook_sample_without_species_control.Rd
The purpose of the logbook_sample_without_species_control function is to provide a table of data that contains an inconsistency between the sample and the presence of species
logbook_sample_without_species_control(dataframe1, dataframe2, output)
data.frame expected. Csv or output of the function data_extraction, which must be done before using the logbook_sample_without_species_control() function.
data.frame expected. Csv or output of the function data_extraction, which must be done before using the logbook_sample_without_species_control() function.
character expected. Kind of expected output. You can choose between "message", "report" or "logical".
The function returns a character with output is "message", a data.frame with output is "report", a logical with output is "logical"
The input dataframe must contain all these columns for the function to work :
sample_id
samplespecies_id
sample_id
#Sample 1 is ok,
#Sample 2 has no sample species
dataframe1 <- data.frame(sample_id = c("1", "2"))
dataframe2 <- data.frame(samplespecies_id = c("1", "2"),
sample_id = c("1", "1"))
logbook_sample_without_species_control(dataframe1, dataframe2, output = "report")
#> sample_id logical
#> 1 1 TRUE
#> 2 2 FALSE