Learn R Programming

ssdtools (version 2.3.0)

ssd_is_censored: Is Censored

Description

Tests if an object has censored data.

Test if a data frame is censored.

Test if a fitdists object is censored.

Usage

ssd_is_censored(x, ...)

# S3 method for data.frame ssd_is_censored(x, left = "Conc", right = left, ...)

# S3 method for fitdists ssd_is_censored(x, ...)

Value

A flag indicating whether an object is censored.

Arguments

x

The object.

...

Unused.

left

A string of the column in data with the concentrations.

right

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

Examples

Run this code

ssd_is_censored(ssddata::ccme_boron)
ssd_is_censored(data.frame(Conc = 1, right = 2), right = "right")

fits <- ssd_fit_dists(ssddata::ccme_boron)
ssd_is_censored(fits)

Run the code above in your browser using DataLab