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

Description Usage Arguments Value Author(s) See Also Examples

View source: R/sysargs2_methods.R

Description

Convert targets files to list or data.frame object.

Usage

1
2
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

1
2
3
4
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 Sept. 18, 2021, 12:03 p.m.