394 search results for "knitr"

Online Questionnaire & Report Generation with Google Drive & R

September 17, 2012
By

Here's how I did it in 3 easy steps: (1) Set up a form in Google Docs/Drive. (2) Choose "Actions" and "Embed in Website" to get the URL for the iframe and put it in a post, like below. Then, go to the spreadsheet view of the form on Google Docs/Drive a...

Read more »

R Package Vignettes with Markdown

September 10, 2012
By

What is the best resource to learn an R package? Many R users know the almighty question mark ? in R. For example, type ?lm and you will see the documentation of the function lm. If you know nothing about a package, you can take a look at the HTML help...

Read more »

Converting a Markdown File to PDF Using Pandoc

September 9, 2012
By

Working with knitr and markdown is a great way to share quick reports with colleagues, but in cases where IE8 is still the dominant browser, shipping an HTML file with embedded graphics is a non-starter. IE8 does not support the Data URI format used to...

Read more »

In case you missed it: August 2012 Roundup

September 6, 2012
By

In case you missed them, here are some articles from June of particular interest to R users. RStan is a new package for Bayesian modeling with R. It's faster and can fit more highly-correlated models than the MCMC sampler of BUGS and JAGS. Biostatistician Corey Chivers used R to animate the epidemic-like growth of retailer Walmart in the US....

Read more »

Interactive web graphs with R – Overview and googleVis tutorial

September 5, 2012
By
Interactive web graphs with R – Overview and googleVis tutorial

Today I feel very lucky, as I have been invited to the Royal Statistical Society conference to give a tutorial on interactive web graphs with R and googleVis. I prepared my slides with RStudio, knitr, pandoc and slidy, similar to my Cambridge R talk. ...

Read more »

RStudio is RStupendous

September 3, 2012
By

I am a sucker for beautiful applications (like the ggplot2 web tool mentioned here). The latest R-related application to catch my eye is RStudio. RStudio™ is a free and open source integrated development environment (IDE) for R. You can run it on your desktop (Windows, Mac, or Linux) or even over the web using RStudio

Read more »

Getting data on your government

September 1, 2012
By
Getting data on your government

I created an R package a while back to interact with some APIs that serve up data on what our elected represenatives are up to, including the New York Times Congress API, and the Sunlight Labs API.What kinds of things can you do with govdat? Here ...

Read more »

Getting ecology and evolution journal titles from R

August 31, 2012
By

So I want to mine some #altmetrics data for some research I'm thinking about doing. The steps would be:Get journal titles for ecology and evolution journals. Get DOI's for all papers in all the above journal titles. Get altmetrics data on each DO...

Read more »

Making matrices with zeros and ones

August 30, 2012
By

So I was trying to figure out a fast way to make matrices with randomly allocated 0 or 1 in each cell of the matrix. I reached out on Twitter, and got many responses (thanks tweeps!).Here is the solution I came up with. See if you can tell why it...

Read more »

Plotting model fits

August 29, 2012
By
Plotting model fits

We all know that it is important to plot your data and explore the data visually to make sure you understand it. The same is true for your model fits. First, you want to make sure that the model is fitting...

Read more »