Learn R Programming

NetExplorer (version 0.0.2)

df.col.findId: Find a data frame index

Description

Finds the data frame index of a column from the name of the column or its 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.

Value

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

Details

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