format_for_opendata: Format sensor string data for the Open Data portal

View source: R/format_for_opendata.R

format_for_opendataR Documentation

Format sensor string data for the Open Data portal

Description

Format sensor string data for the Open Data portal

Usage

format_for_opendata(dat.tidy, location.info)

Arguments

dat.tidy

Data from a single deployment in tidy format, as returned by convert_to_tidydata(). Must include six columns: DEPLOYMENT_PERIOD (character), TIMESTAMP (POSIXct), SENSOR (character), DEPTH (character or ordered factor), VARIABLE (character), VALUE (numeric).

location.info

Dataframe of information about the deployment location. One observation of 5 columns: county, waterbody, station, lease, latitude, and longitude.

Value

Returns a dataframe of tidy data in the format for submission to the Open Data Portal. 10 columns: WATERBODY, STATION, LEASE, LATITUDE, LONGITUDE, DEPLOYMENT_PERIOD, TIMESTAMP, SENSOR, DEPTH, VARIABLE, VALUE

Author(s)

Danielle Dempsey

See Also

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


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