Mouse over this to see popup.
00000000000000000000000000000000000000000000000
You can also use in in-line ,
.
00000000000000000000000000000000000000000000000
cat("This is my sentence and here is the tooltip: ", sep = "")
tip
for (i in names(mtcars)) {
cat('\n\n# Summary of the variable `', i, '`\n\n')
x <- mtcars[, i]
if (length(unique(x)) <= 6) {
cat('`', i, '` is a categorical variable.\n\n')
plot(table(x), xlab = i, ylab = 'Frequency', lwd = 10)
} else {
cat('Histogram for the continuous variable `', i, '`.\n\n')
hist(x, xlab = i, main = '')
}
}
00000000000000000000000000000000000000000000000
This is a