match_columns: Obtain integer indices

Description Usage Arguments Examples

View source: R/random_rotation.R

Description

Matches list/vector mix of names and/or indices vc to columns in a data frame

Usage

1

Arguments

df

data frame

vc

vector or list of indices (integer) and/or column names

Examples

1
match_columns(df, list("col1", 4, "col9"))

randomrotation/random.rotation documentation built on Dec. 31, 2020, 2:15 a.m.