subset_TSD: Extracts a subset of TSD data according to the array subset...

View source: R/subset_TSD.R

subset_TSDR Documentation

Extracts a subset of TSD data according to the array subset 'ind' and/or the cartesian subset 'range' and/or the logical/numeric vector of subscripts 'subset'.

Description

Extracts a subset of TSD data according to the array subset 'ind' and/or the cartesian subset 'range' and/or the logical/numeric vector of subscripts 'subset'.

Usage

subset_TSD(
  data,
  ind = list(),
  range = list(),
  subset = NULL,
  ind.out = FALSE,
  drop = TRUE,
  strict = TRUE,
  insert.NA = FALSE,
  only.match = FALSE,
  pad = c("end", "start")
)

Arguments

data

is a list of elements named according to the TSD file format.

ind

is a list of indexes, as typed into the [] of an array, where 0 and NULL denotes all indexes.

range

is a list of elements with names matching names if 'data', specifying the range of the corresponding elements.

subset

is a numeric or logical vector/expression indicating elements or rows to keep (as used in subset()). Missing values are taken as false, and subset=0 or subset=NULL indicates no subsetting.

ind.out

is TRUE if the indexes for the elements segmented are to be returned.

drop

is TRUE if dimensions of only one level is to be removed from the output.

strict

is TRUE if strict inequality is to be used when subsetting according to 'range'.

insert.NA

is TRUE if the discarded data are to be kept as NA.

only.match

is TRUE if only the arrays of length equal to the length of 'subset' are to be subsetted using 'subset'.


arnejohannesholmin/sonR documentation built on April 14, 2024, 11:39 p.m.