as_airdas_dfr: Coerce object to a airdas_dfr object

View source: R/as_airdas_dfr.R

as_airdas_dfrR Documentation

Coerce object to a airdas_dfr object

Description

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

Usage

as_airdas_dfr(x)

## S3 method for class 'airdas_dfr'
as_airdas_dfr(x)

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

Arguments

x

An object to be coerced to class airdas_dfr

Details

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

Value

An object of class 'airdas_dfr'

See Also

airdas_dfr-class


swfscAirDAS documentation built on Oct. 4, 2024, 1:09 a.m.