tmpcol | R Documentation |
generate a name for a new data column that is not already in use.
tmpcol(
data,
names = NULL,
base = "tmpcol",
i1 = 1,
max.it = 100,
prefer.plain = TRUE
)
data |
The dataset to find a new element name for |
names |
Character vector of names that must not be matched. Only one of data and names can be supplied. |
base |
The base name of the new element. A number will appended to this string that will ensure that the new element name is not already in use. |
i1 |
Where to start the search for a smallest available index number to add to 'base' if necessary. |
max.it |
Maximum number of iterations on element name. |
prefer.plain |
If base isn't in use already, use it without a digit appended? |
A character string
make.names
Other DataCreate:
NMorderColumns()
,
NMstamp()
,
NMwriteData()
,
addTAPD()
,
findCovs()
,
findVars()
,
flagsAssign()
,
flagsCount()
,
mergeCheck()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.