Loads a CSV file containing metadata and data from a single device into a SingleTimeSeries object.
The required metadata columns in the provided CSV are as follows:
deviceID
-- device identifier (character, non-numeric)
longitude
-- decimal degrees E
latitude
-- decimal degrees N
countryCode
-- ISO 3166-1 alpha-2
stateCode
-- ISO 3166-2 alpha-2
timezone
-- Olson time zone
Data stored in these columns will be put in the meta dataframe of the resulting sts object.
The required data columns are as follows:
datetime
-- measurement time (UTC)
These columns along with any other numeric columns in the tidy dataframe will be put in the data dataframe of the resulting sts object.
sts_fromCSV(file = NULL, nameMapping = NULL)
file | path or URL to the CSV file to load |
---|---|
nameMapping | List mapping columns in the CSV file to the required columns specified below |
A sts object containing data and metadata from the provided CSV