Adds Pointer Structure to R objects

add_pointer_struct(char, length)

Arguments

char

A character vector.

length

The length of the returned object.

Value

A character vector of the concatenated character string with sequential numbering

Examples

## For a single variable add_pointer_struct("S", 3)
#> [1] "S1" "S2" "S3"
## For multiple variables add_pointer_struct(c("S", "I"), length = 3)
#> [1] "S1" "S2" "S3" "I1" "I2" "I3"