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

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 »

A simple explanation of rejection sampling in R

April 22, 2015
By
A simple explanation of rejection sampling in R

The central quantity in Bayesian inference, the posterior, can usually not be calculated analytically, but needs to be estimated by numerical integration, which is typically done with a Monte-Carlo algorithm. The three main algorithm classes for doing so are Rejection sampling Markov-Chain Monte Carlo (MCMC) sampling Sequential Monte Carlo (SMC) sampling I have previously given…

Read more »

My New Favorite Statistics & Data Analysis Book Using R

April 20, 2015
By
My New Favorite Statistics & Data Analysis Book Using R

(Note: The Amazon site may not be fully functional until mid-week as they complete their setup.) As of today, I now have a NEW FAVORITE introductory statistics textbook… the one I’ve always dreamed

Read more »

R 3.2.0 is released (+ using the installr package to upgrade in Windows OS)

April 17, 2015
By
R 3.2.0 is released (+ using the installr package to upgrade in Windows OS)

R 3.2.0 (codename “Full of Ingredients”) was released yesterday. You can get the latest binaries version from here. (or the .tar.gz source code from here). The full list of new features and bug fixes is provided below. Upgrading to R 3.2.0 on Windows If you are using Windows you can easily upgrade to the latest version of R using the installr … Continue reading...

Read more »

R and package masking – a real life example

April 15, 2015
By
R and package masking – a real life example

From original post @http://analyticsblog.mecglobal.it/e

Read more »

RStudio v0.99 Preview: Tools for Rcpp

April 14, 2015
By
RStudio v0.99 Preview: Tools for Rcpp

Over the past several years the Rcpp package has become an indispensable tool for creating high-performance R code. Its power and ease of use have made C++ a natural second language for many R users. There are over 400 packages on CRAN and Bioconductor that depend on Rcpp and it is now the most downloaded R package. In

Read more »

Wrangling Complex Spreadsheet Column Headers

April 14, 2015
By
Wrangling Complex Spreadsheet Column Headers

Not a little p****d off

Read more »