name_func: Takes the string "dat" and pastes an index This function is...

Description Usage Arguments Value Examples

View source: R/name_function.R

Description

Takes the string "dat" and pastes an index This function is mostly a DRY private function that helps generate the name of dataframes

Usage

1
name_func(index)

Arguments

index

A numeric vector of length 1 that takes an index. Intended to be used in loops for generating large batches of objects

Value

None

Examples

1
2
3
4
5
6
num <- c(1,2,3,4,5)
for(i in 1:length(num)){

		assign(name_func(i), i)
}
ls()

notsynonymous/SWA documentation built on Dec. 22, 2021, 3:13 a.m.