get_var_values: Get vector of variable values

Description Usage Arguments Value Examples

View source: R/get_var_values.R

Description

Get vector of variable values

Usage

1

Arguments

x

Either a name (string) or a positive integer which indicates position of variable in data or a vector.

data

A data frame (or sililar structure).

Value

Examples

1
2
3
4
5
6
7
8
library(manyROC)
dataset <- head(PlantGrowth)

get_var_values(x = "group", data = dataset)

get_var_values(x = c("group", "group"), data = dataset)

get_var_values(x = NULL, data = dataset)

GegznaV/multiROC documentation built on Sept. 15, 2020, 10:33 a.m.