getVariableNames: getVariableNames

View source: R/getVariableNames.R

getVariableNamesR Documentation

getVariableNames

Description

Extracts variable names from a data frame or matrix (column names).

Usage

getVariableNames(x, xvar = NULL, num = TRUE)

Arguments

x

data frame/matrix: data set to analyse

xvar

character: variable names to analyse (default: character(0) = all variables)

num

logical: should numerical or non-numerical variable use (default: TRUE)

Value

character vector with variable names

Examples

getVariableNames(iris)
getVariableNames(iris, num=FALSE)
getVariableNames(normalize(iris, 0))
getVariableNames(normalize(iris, 0), num=FALSE)

sigbertklinke/smvgraph documentation built on Dec. 10, 2022, 9:13 a.m.