
Last chance! 50% off unlimited learning
Sale ends in
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.
xRow(x)
Vector with names for each value.
Input is a vector of values, output is vector of associated row labels, perhaps with the added word Row.
# NOT RUN {
# 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)
# }
Run the code above in your browser using DataLab