as.data.frame: Coerce to a Data Frame

as.data.frame.lcensR Documentation

Coerce to a Data Frame

Description

Creates data frames from censored and water-quality data: methods for "lcens," "mcens," and "qw" data.

Usage

## S3 method for class 'lcens'
as.data.frame(x, row.names = NULL, optional = FALSE, ...,
  nm = deparse(substitute(x)))

## S3 method for class 'mcens'
as.data.frame(x, row.names = NULL, optional = FALSE, ...,
  nm = deparse(substitute(x)))

## S3 method for class 'qw'
as.data.frame(x, row.names = NULL, optional = FALSE, ...,
  nm = deparse(substitute(x)), expand = FALSE)

Arguments

x

any R object to put into a data frame.

row.names

NULL or a character vector giving the row names for the data frame. Missing values are not allowed.

optional

logical. If TRUE, set column names to nm.

...

additional arguments to be passed to or from methods.

nm

set as column name if optional is TRUE.

expand

create a data frame from all of the slots from the object instead of creating a data frame containting the object.

Value

A data frame constructred from x.

See Also

data.frame


USGS-R/smwrQW documentation built on Oct. 11, 2022, 6:13 a.m.