varwhich: Return column index

Description Usage Arguments Description

View source: R/misc funs.R

Description

Return column index

Usage

1

Arguments

df

A data frame

x

A (quoted) column name

Description

Sometimes it is useful to find or pass columns by position. This is a simple shortcut that returns the numeric index of a data frame column (or columns). Calls internal col.loc() function (the original 1-variable version of varwhich)


zane-uw/edwHelpers documentation built on Nov. 24, 2019, 2:53 p.m.