I was wondering if there might be a way to create a title above a data.frame
such that in the output it kind of looks like list("Violations of Rule #1:" = h)
in my R code below?
The title is: "Violations of Rule #1:"
h <- data.frame(1:5, 2:6, rep("YofPub", 5))
dimnames(h) <- list("Violations of Rule #1:" = rownames(h), names(h)) # tried no success!
list("Violations of Rule #1:" = h) # similar to this output but not a list!