getDataFrame: Convert a storage object into a dataframe representation

Description Usage Arguments Value

Description

getDataFrame converts a StoX storage object into a dataframe, and is used by the more user friendly getDataFrame1 to convert a baseline object to dataframe.

getProcessDataTableAsDataFrame gets a joined table with meanNASC, psu, stratum, and area. Reads transect data, strata and area information from baseline Java object and merges them into one data frame.

Usage

1
2
3
4
5
6
7
8
9
getDataFrame(baseline, processName = NULL, functionName = NULL,
  level = NULL, drop = TRUE)

getDataFrame1(baseline, processName = NULL, functionName = NULL,
  level = NULL, drop = TRUE)

getDataFrameAtLevel(level, storage, data)

getProcessDataTableAsDataFrame(projectName, tableName)

Arguments

baseline

A StoX baseline object

processName

The name of the process to extract data by, such as "ReadBioticXML"

functionName

The name of the function to extract data by, such as "ReadBioticXML"

level

The level of tables for some datatypes like FishStation, which contains different levels, i.e., 1 for fishstation, 2 for sample and 3 for individuals. getDataFrame1 selects the first level, and getDataFrame must be used to select a different level

drop

Logical: if TRUE (defalut) drop the list if only one data frame is requested.

storage

The StoX storage object

data

The StoX data

projectName

The name or full path of the project, a baseline object (as returned from getBaseline() or runBaseline()), og a project object (as returned from open).

tableName

Supported processdata tables: TRAWLASSIGNMENT, DISTANCEASSIGNMENT, PSUASSIGNMENT, DISTANCEPSU, PSUSTRATUM, STRATUMPOLYGON

Value

A dataframe


Sea2Data/Rstox documentation built on May 14, 2019, 8:58 a.m.