targets.as.df: Convert targets to list or data.frame

View source: R/sysargs2_methods.R

targets.as.dfR Documentation

Convert targets to list or data.frame

Description

Convert targets files to list or data.frame object.

Usage

targets.as.df(x)
targets.as.list(x, id="SampleName")

Arguments

x

An object of the class "list" or "data.frame" that stores data from each target file, as targets(WF).

id

A column from targets file, which will be used as an id for each one of the samples. It is required to be unique.

Value

data.frame or list containing all the targets file information.

Author(s)

Daniela Cassol

See Also

showClass("SYSargs2")

Examples

targetspath <- system.file("extdata", "targets.txt", package="systemPipeR")
targets <- read.delim(targetspath, comment.char = "#")
targetslist <- targets.as.list(x=targets)
targets.as.df(x=targetslist)

tgirke/systemPipeR documentation built on July 14, 2024, 7:41 p.m.