subs {metasnf}R Documentation

Select all columns of a dataframe starting with a given string prefix.

Description

Removes the columns that are not prefixed with 'subject_' prefixed columns from a dataframe. Useful intermediate step for extracting subject UIDs from an solutions_matrix structure.

Usage

subs(df)

Arguments

df

Dataframe

Value

df_subs Dataframe with only 'subject_' prefixed columns


[Package metasnf version 1.1.2 Index]