df.col.findId: Finds a data frame index

View source: R/df.col.findId.R

df.col.findIdR Documentation

Finds a data frame index

Description

Finds the data frame index of a column from the name of the column or his index.

Usage

df.col.findId(df, label_name)

Arguments

df

a data frame in which to find the index of a specific column(s).

label_name

a character or numeric vector indicating the column name or index respectively.

Details

This function allows the user to select on or several columns according to their name(s) or their index(es).

Value

an numeric vector corresponding to the column index that matches argument label_name.

Author(s)

Sebastian Sosa, Ivan Puga-Gonzalez.


SebastianSosa/ANTs documentation built on Sept. 25, 2023, 11:06 p.m.