as_airdas_df {swfscAirDAS} | R Documentation |
Coerce object to a airdas_df object
Description
Check if an object is of class airdas_df
, or coerce it if possible.
Usage
as_airdas_df(x)
## S3 method for class 'airdas_df'
as_airdas_df(x)
## S3 method for class 'data.frame'
as_airdas_df(x)
Arguments
x |
An object to be coerced to class |
Details
Currently only data frames can be coerced to an object
of class airdas_df
.
If x
does not have column names, classes, and contents
as specified in airdas_df
,
then the function returns an error message detailing the first column that does not
meet the airdas_df
requirements.
Value
An object of class airdas_df
See Also
[Package swfscAirDAS version 0.3.0 Index]