Learn R Programming

ssdtools (version 2.3.0)

ssd_censor_data: Censor Data

Description

Censors data to a specified range based on the censoring argument. The function is useful for creating test data sets.

Usage

ssd_censor_data(data, left = "Conc", ..., right = left, censoring = c(0, Inf))

Value

A tibble of the censored data.

Arguments

data

A data frame.

left

A string of the column in data with the concentrations.

...

Unused.

right

A string of the column in data with the right concentration values.

censoring

A numeric vector of the left and right censoring values.

Examples

Run this code
ssd_censor_data(ssddata::ccme_boron, censoring = c(2.5, Inf))

Run the code above in your browser using DataLab