1032 search results for "how to import image file to R"

Getting going – importing data and plotting a simple graphic

July 20, 2010
By
Getting going – importing data and plotting a simple graphic

The most difficult part of the learning curve in R is often getting going – many datasets are pre-installed in the packages and organised, so it is difficult to see how you to import your own data into R.  This post takes you step by step through the process of making a table from a

Read more »

Speed-reading files, revisited

December 29, 2009
By
Speed-reading files, revisited

In a post earlier this month, it seemed as though compressing a data file before reading it into R could save you some time. With some feedback from readers and further experimentation, we might need to revisit that conclusion To recap, in our previous experiment it took 170 seconds to read a 182Mb text file into R. But if...

Read more »

Image Compression with the SVD in R

December 17, 2009
By
Image Compression with the SVD in R

Over the next few posts, I’m going to be reviewing the use of R to implement the most commonly used matrix techniques for image manipulation. The code will be surprisingly simple to understand, because the real magic behind these techniques lies in the mathematics that R provides an abstract interface to. To start, I’m going

Read more »

Export Data Frames To Multi-worksheet Excel File

October 6, 2009
By
Export Data Frames To Multi-worksheet Excel File

A few weeks ago I needed to export a number of data frames to separate worksheets in an Excel file. Although one could output csv-files from R and then import them manually or with the help of VBA into Excel, I was after a more streamlined solution, as I would need to repeat this process

Read more »

How to Import MS Excel Data into R

September 26, 2009
By
How to Import MS Excel Data into R

s Sir Francis Bacon said, “Histories make men wise; poets witty; the mathematics subtile; natural philosophy deep; moral grave; logic and rhetoric able to contend.” And Windows stupid. He should have added the last sentence if he were a Windows user in this age. 1. Avoid Using M$ Excel A lot of R users often ask this question:

Read more »

From cats to zombies, Wednesday at useR2015

July 1, 2015
By
From cats to zombies, Wednesday at useR2015

The morning opened with someone who I was too bleary eyed to work out who it was. Possibly the dean of the University of Aalborg. Anyway, he said that this is the largest ever useR conference, and the first ever in a Nordic country. Take that, Norway! Also, considering that there are now quite a

Read more »

DotCity: a game written in R? and other statistical computer games?

June 28, 2015
By
DotCity: a game written in R? and other statistical computer games?

A while back I recommended Nathan Uyttendaele’s beginner’s guide to speeding up R code. I’ve just heard about Nathan’s computer game project, DotCity. It sounds like a statistician’s minimalist take on SimCity, with a special focus on demographic shifts in … Continue reading →

Read more »

The Workflow of Infinite Shame, and other stories from the R Summit

June 27, 2015
By
The Workflow of Infinite Shame, and other stories from the R Summit

At day one of the R Summit at Copenhagen Business School there was a lot of talk about the performance of R, and alternate R interpreters. Luke Tierney of the University of Iowa, the author of the compiler package, and R-Core member who has been working on R’s performance since, well, pretty much since R

Read more »

KDD Cup 2015: The story of how I built hundreds of predictive models….And got so close, yet so far away from 1st place!

June 25, 2015
By
KDD Cup 2015: The story of how I built hundreds of predictive models….And got so close, yet so far away from 1st place!

(This article was first published on Data Until I Die!, and kindly contributed to R-bloggers) The challenge from the KDD Cup this year was to use their data relating to student enrollment in online MOOCs to predict who would drop out vs who would stay. The short story is that using H2O and a lot of my free time,...

Read more »

Working with the RStudio CRAN logs

June 25, 2015
By
Working with the RStudio CRAN logs

by Joseph Rickert The installr package has some really nice functions for working with the daily package download logs for the RStudio CRAN mirror which RStudio graciously makes available at http://cran-logs.rstudio.com/. The following code uses the download_RStudio_CRAN_data() function to download a month's worth of .gz compressed daily log files into the test3 directory and then uses the function read_RStudio_CRAN_data()to...

Read more »