xRow {lessR} | R Documentation |
Text Processing: Add the Word Row to Case Labels that Could be Numeric
Description
For a vector of row names, if the names can be represented as integers the word Row is added to the beginning of each name in the vector. Primarily for internal use in text processing of knitr
output. Not usually referenced by the user.
Usage
xRow(x)
Arguments
x |
Vector with names for each value. |
Details
Input is a vector of values, output is vector of associated row labels, perhaps with the added word Row.
Author(s)
David W. Gerbing (Portland State University; gerbing@pdx.edu)
Examples
# The word Row gets added
v <- c(2, 4, 6)
names(v) <- c("1", "2", "3")
xRow(v)
# The word Row does not get added
v <- c(2, 4, 6)
names(v) <- c("Bill", "Tulane", "Hanna")
xRow(v)
[Package lessR version 4.3.6 Index]