-
-
Save raffdoc/2370912 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## title:First Attempt at a knitr Performance Report | |
## author:Timely Portfolio | |
require(PerformanceAnalytics) | |
require(xtable) | |
data(edhec) | |
table.CalendarReturns(edhec[,1:3])[13:15] | |
charts.PerformanceSummary(edhec[,1:3], | |
colorset=c("gray50","steelblue2","steelblue4"), | |
main="EDHEC Performance by Type") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(knitr) | |
#use stitch to open and run the knitr performance.r script | |
# and then generate Rnw code | |
#knit2pdf converts the Rnw to a pdf | |
knit2pdf(stitch("knitr performance.r")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing, cool stuff, I have tried and it works perfectly for me!