Learn R Programming

RSurvey (version 0.6-0)

ProcessData: Process Data

Description

This function performs data processing on the state variables.

Usage

ProcessData()

Arguments

Value

  • Sets the data.pts and data.grd components of Data. The data.pts component is a data frame with variables:
  • indexinteger; a vector of row numbers corresponding to rows in data.raw.
  • x, ynumeric; a vector of x and y coordinates.
  • znumeric; a vector of state variable values (optional).
  • tPOSIXct; a vector of time stamps (optional).
  • vx, vynumeric; a vector of velocity components in the x and y directions, respectively (optional).
  • The data.grd component is a list with components:
  • x, ynumeric; a vector of grid line locations at which the values in z are measured.
  • zmatrix; interpolated surface of state variable with rows and columns corresponding to grid lines in the x and y directions, respectively.
  • vx, vymatrix; interpolated surface of velocity components with rows and columns corresponding to grid lines in the x and y directions, respectively (optional).

Details

Input parameters for data processing are queried from Data and include: cols, vars, data.raw, data.pts, data.grd, lim.data, poly, poly.data, poly.crop, grid.dx, grid.dy, mba.m, mba.n, and mba.h (see Data). A data frame based on the user-defined state variables is first created. Records outside the user-defined spatial and temporal domains are then removed using: (1) data limits, where the x, y, z, and t limits are specified in the xlim, ylim, zlim, and tlim components of the lim.data list, respectively; and (2) a two-dimensional polygon defining the spatial domain within the xy-plane. An interpolated grid of z values in constructed using a Multilevel B-spline approximation. The spatial extent of the interpolated surface is constrained using polyLimit, a polygon that sets spatial limits for grided data; where z values corresponding to grid nodes located outside this polygon are set to NA.

See Also

mba.points

Examples

Run this code
data(project)
ProcessData()

Run the code above in your browser using DataLab