make.label
Mainly used to prettyfy the rownames of anova tables.
make.label(x, l = list(l1 = c("_", " at "), l2 = c(":",
" interaction with "), l3 = c(".", " ")))
Character
List Each first element is gsubised by the second element of the list
A character
Replace with gsub
function each first element of l[[i]]
by the second element of l[[i]]
for each element of x.
# NOT RUN {
data(datafake)
an=anova(lm(y_numeric~y_logistic+GROUP:TIMEPOINT,data=datafake))
# Raw output:
an
rownames(an)=make.label(rownames(an),
l=list(
l1=c("y_logistic","A logistic variable"),
l2=c(":"," interaction with "))
)
# Gives:
an
# }
Run the code above in your browser using DataLab