charToBinary: charToBinary

View source: R/utilities.R

charToBinaryR Documentation

charToBinary

Description

This function converts the values of "True" and "False" output by andes into either TRUE/FALSE or Y/N

Usage

charToBinary(x = NULL, bool = T)

Arguments

x

default is NULL. This is a vector of values. Case-insensitive, and anything other than "true" or "false" will become NA

bool

default is TRUE. By default, this function turns values into TRUE/FALSE, but if bool is F, it will output "Y" and "N" (for "yes" and "no")

Author(s)

Mike McMahon, Mike.McMahon@dfo-mpo.gc.ca

See Also

Other internal: cleanEse(), cleanStrata(), cleanfields(), getEseTables(), get_value(), keepFieldsBaskets(), keepFieldsCatches(), keepFieldsMissions(), keepFieldsSets(), keepFieldsSpecimens(), meters2Fathoms(), populate_DATA_DESC(), reFormatSpecimen(), redistributeMixedCatch2(), transmogrifyBaskets(), transmogrifyCatches(), transmogrifyLV1_OBS(), transmogrifyMissions(), transmogrifySets(), transmogrifySpecimens()


PopulationEcologyDivision/andesmerge documentation built on April 12, 2024, 6:28 a.m.