transform_negative_values_to_zero: Recode negative values to zero

View source: R/transformations.R

transform_negative_values_to_zeroR Documentation

Recode negative values to zero

Description

\lifecycle

experimental Recodes all negative values to zero for all files in a list.

Usage

transform_negative_values_to_zero(lissy_files, variable)

Arguments

lissy_files

A list of LIS or LWS files.

variable

A character string with the name of the variable that should be transformed.

Value

A list of tibbles with the recoded variable.

Examples

## Not run: 
library(dplyr)
library(magrittr)
lissy_files <- read_lissy_files(c("fr84h", "fr94h", "fr10h"))
lissy_files %<>%
    transform_negative_values_to_zero(variable = "dhi")
    
## End(Not run)

JosepER/lissyrtools documentation built on Jan. 26, 2025, 10:01 p.m.