vascr_subset: Subset a vascr data set based on a number of factors

View source: R/vascr_subset.R

vascr_subsetR Documentation

Subset a vascr data set based on a number of factors

Description

Subset a vascr data set based on a number of factors

Usage

vascr_subset(
  data.df,
  time = NULL,
  unit = NULL,
  well = NULL,
  frequency = NULL,
  experiment = NULL,
  instrument = NULL,
  sampleid = NULL,
  sample = NULL,
  subsample = NULL,
  remove_na_value = TRUE,
  remove_excluded = TRUE
)

Arguments

data.df

vascr data set to subset

time

Specified times. Individual values in a list will be subset out. If vectors are present in the list, values between the two most extreme values will be returned.

unit

Units to subset. These are checked for integrity against possible units and the dataset itself

well

Wells to select

frequency

Frequencies to include in the data set.

experiment

Experiments to include in the data set. Can be addressed either by name, or by the numerical order that they were loaded into vascr_combine in

instrument

Which instruments to include values from

sampleid

List of ID's to be used. Sample names will be re-ordered accordingly for display.

sample

Sample to subset

subsample

Frequency values should be sub-sampled to

remove_na_value

Should NA values be removed (default true)

remove_excluded

Should excluded values be removed (default true)

Value

The subset dataset, based on the values selected

Examples

vascr_subset(growth.df)
vascr_subset(growth.df, time = 40)
vascr_subset(growth.df, time = NULL)
 
vascr_subset(growth.df, unit = "Rb")
vascr_subset(growth.df, unit = "R")
vascr_subset(growth.df, well = "A1")

vascr_subset(growth.df, time = c(5,20))

JamesHucklesby/vascr documentation built on July 16, 2025, 8:16 p.m.