glottorecode_logical: Recode character columns to TRUE/FALSE

View source: R/glottoclean.R

glottorecode_logicalR Documentation

Recode character columns to TRUE/FALSE

Description

Recode character columns to TRUE/FALSE

Usage

glottorecode_logical(glottodata, structure, totrue = NULL, tofalse = NULL)

Arguments

glottodata

glottodata list

structure

structure table

totrue

values to recode to TRUE

tofalse

values to recode to FALSE

Examples

glottodata <- glottoget("demodata", meta = TRUE)
glottorecode_logical(glottodata, totrue = c("y", "Y", 1), tofalse = c("n", "N", 0),
structure = glottodata[["structure"]])

glottosubdata <- glottoget("demosubdata", meta = TRUE)
glottorecode_logical(glottosubdata, totrue = c("y", "Y", 1), tofalse = c("n", "N", 0),
structure = glottosubdata[["structure"]])

SietzeN/glottospace documentation built on June 15, 2024, 10:45 p.m.