Skip to content

Instantly share code, notes, and snippets.

@emhart
Created June 12, 2013 04:32
Show Gist options
  • Save emhart/5762856 to your computer and use it in GitHub Desktop.
Save emhart/5762856 to your computer and use it in GitHub Desktop.
For Scott so he can make html tables.
require(xtable)
insane <- data.frame(Name=c("Ampersand","Greater than","Less than","Underscore","Per cent","Dollar","Backslash","Hash", "Caret", "Tilde","Left brace","Right brace"), Character = I(c("&",">", "<", "_", "%", "$", "\\", "#", "^", "~","{","}")))
colnames(insane)[2] <- paste(insane[,2],collapse="")
print( xtable(insane),type='html',sanitize.text.function = function(x){x})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment