convert_to_tidydata: Converts compiled string data to a tidy format

View source: R/convert_to_tidydata.R

convert_to_tidydataR Documentation

Converts compiled string data to a tidy format

Description

Converts compiled string data to a tidy format

Usage

convert_to_tidydata(dat.wide, remove.NA = TRUE, show.NA.message = FALSE)

Arguments

dat.wide

Data in the format exported by the compile_*_data functions.

remove.NA

Logical value. If remove.NA = TRUE, observations where TIMESTAMP or VALUE = NA are removed. Default is remove.NA = TRUE.

show.NA.message

Logical value. If show.NA.message = TRUE, the number of NA values removed is printed to the console. Default is show.NA.message = FALSE.

Value

Returns a tidy dataframe with six columns: TIMESTAMP (POSIXct), VALUE, (numeric), DEPLOYMENT_PERIOD (character), SENSOR, VARIABLE (character), DEPTH (ordered factor).

Author(s)

Danielle Dempsey

See Also

Other format: convert_depth_to_ordered_factor(), format_for_opendata(), trim_data()


Centre-for-Marine-Applied-Research/strings documentation built on Aug. 21, 2023, 8 a.m.