rel_var: Default Relevant Variables Function

Description Usage Arguments Value Examples

View source: R/R PACKAGE (DEFINITIVO).R

Description

The function creates a new dataframe with selected columns retrived by vct_var.

Usage

1
rel_var(df, vct_var)

Arguments

df

A dataframe of our interest.

vct_var

The vector with (ordered) columns we want to extract from the original dataframe.

Value

A new dataframe with the columns we assigned to the vct_var.

Examples

1
RR <-rel_var(tab,c(2,3,5,6,7) RE <- rel_var(tab,c(10,12,13,14,15))

unimi-dse/8554ac27 documentation built on Feb. 20, 2020, 10:13 p.m.