as_das_dfr: Coerce object to a das_dfr object

View source: R/as_das_dfr.R

as_das_dfrR Documentation

Coerce object to a das_dfr object

Description

Check if an object is of class das_dfr, or coerce it if possible.

Usage

as_das_dfr(x)

## S3 method for class 'das_dfr'
as_das_dfr(x)

## S3 method for class 'data.frame'
as_das_dfr(x)

Arguments

x

an object to be coerced to class das_dfr

Details

Only data frames can be coerced to an object of class das_dfr. If x does not have column names and classes as specified in das_dfr-class, then the function returns an error message detailing the first column that does not meet the requirements of a das_dfr object.

Value

An object of class 'das_dfr'

See Also

das_dfr-class


swfscDAS documentation built on June 10, 2025, 5:12 p.m.