speedy_varnames {speedycode} | R Documentation |
Quickly generate a vector of new variable names
Description
speedy_varnames generates a vector of new, generic variable names beginning with a given character value through the number of new names desired. This is espeically useful for converting ASCII files when a large number of new variable names must be created.
Usage
speedy_varnames(prefix = "Q", first_number = 1, last_number = 25)
Arguments
prefix |
A character value to precede all of the new variable names |
first_number |
The beginning number of the new variable name vector |
last_number |
The final number of the new variable name vector |
Value
A vector of new variable names
Note
If using this function for ASCII conversions, you can paste the new vector of names into the col_names argument of the 'read_rpr' function.
Author(s)
Jacob Harris
Examples
speedy_varnames("Q", 1, 25)
[Package speedycode version 0.3.0 Index]