ds.exposures_pData: Extract exposure or phenotype data and save them to a data...

View source: R/ds.exposures_pData.R

ds.exposures_pDataR Documentation

Extract exposure or phenotype data and save them to a data frame

Description

Extracts exposures, phenotypes or combined data and saves it to a data frame on the server side, if no name argument is provided, the new Exposome Set object will be named "set_table" where "set" is the inputted argument

Usage

ds.exposures_pData(
  set,
  type = "",
  name = NULL,
  exposures_type = NULL,
  rownames2col = FALSE,
  datasources = NULL
)

Arguments

set

character Name of the Exposome Set object on the server side

type

character To specify target of output table, all to include exposures and phenotypes, exposures to include only the exposures and phenotypes to include only the phenotypes. Default all

name

character (default NULL) Name of the new Exposome Set, if null the name will be "set_table" where "set" is the inputted argument

exposures_type

character (default NULL) Type of the exposures to be kept, usually "numeric" or "character"/"factor". If NULL all the exposures will be kept.

datasources

a list of DSConnection-class (default NULL) objects obtained after login

Value

This function does not have an output. It creates an data frame object on the study server.


isglobal-brge/dsExposomeClient documentation built on March 5, 2024, 12:26 p.m.