wideToLongFormat: Convert data from long to wide format

Description Usage Arguments Value Author(s)

View source: R/utils.R

Description

FIXME: this function is now somewhat specific to PointTimeSeriesObservation format. Function could be made more generic, or some sort of class structure for different response data types needs to be implemented.

Usage

1
2
3
wideToLongFormat(layer, timeColumnNamePattern = "^time\\d*$",
  measurementColumnNamePattern = "^measurement",
  variableColumnName = "variable")

Arguments

layer

XXX object.

timeColumnNamePattern

String pattern used to match the time column.

measurementColumnNamePattern

String pattern used to match the measurement column.

variableColumnName

String name for the variable column name.

Value

layer object.

Author(s)

Jussi Jousimo jvj@iki.fi


rOpenGov/fmi documentation built on Sept. 11, 2019, 11:29 a.m.