selectColumns: Select columns from a data frame

Description Usage Arguments Value Examples

View source: R/Output_Functions.R

Description

This is a universal function for extracting only columns of interest from a data frame. Related functions exist, with pre-defined sets of columns, see documentation for selectColumns_Accession and selectColumns_Overview.

Usage

1

Arguments

df

Data frame

cols

Character vector with column names to be retained

Value

Original data frame containing only columns specified in cols

Examples

1
2
3
4
5
6
startSpiderSeqRDemo()
df <- searchForAccession("SRR2187611", file_output = FALSE)
df_sel <- selectColumns(df, c("run_accession", 
                              "study_accession", 
                              "SRA_experiment_title", 
                              "SRA_sample_attribute"))

ss-lab-cancerunit/SpiderSeqR documentation built on Nov. 2, 2020, 12:18 a.m.