xRow | R Documentation |
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)
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.
David W. Gerbing (Portland State University; gerbing@pdx.edu)
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.