getPosIndex: Look for the index in an R object

Usage Arguments Value Examples

View source: R/getPosIndex.R

Usage

1
getPosIndex(cnames, sc, ec = NULL)

Arguments

cnames

column names of the entire table

sc

names of the starting column of the sub-table

ec

names of the end column column of the sub-table

Value

An integer for the position (column number in case of data.frame or matrix) of a subset indicated by (column, row, etc.) names

Examples

1
2
3
4
5
names(iris)
getPosIndex(cnames = names(iris),
                      sc = "Sepal.Width", ec = "Petal.Width")
getPosIndex(cnames = names(iris),
                      sc = "Sepal.Width")

mathphysmx/cleanTable documentation built on May 29, 2019, 2:51 p.m.