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

Turning Data Into Awesome With sqldf and pandasql

April 29, 2015
By
Turning Data Into Awesome With sqldf and pandasql

Both R and Python possess libraries for using SQL statements to interact with data frames. While both languages have native facilities for manipulating data, the sqldf and pandasql provide a simple and elegant interface for conducting tasks using an intuitive framework that’s widely used by analysts.         R and sqldf sqldf("SELECT COUNT(*) FROM df2 WHERE

Read more »

Downloading and Visualizing Seismic Events from USGS

April 28, 2015
By
Downloading and Visualizing Seismic Events from USGS

The unlucky events that took place in Nepal have flooded the web with visualization of the earthquakes from USGS. They normally visualize earthquakes with a colour scale that depends on the age of the event and a marker size that depends on magnitude. I remembered that some time ago I tested ways for downloading and visualizing data from USG...

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 »

R User Group Recap: Heatmaps and Using the caret Package

April 10, 2015
By
R User Group Recap: Heatmaps and Using the caret Package

At our most recent R user group meeting we were delighted to have presentations from Mark Lawson and Steve Hoang, both bioinformaticians at Hemoshear. All of the code used in both demos is in our Meetup’s GitHub repo.Making heatmaps in RSteve started with an overview of making heatmaps in R. Using the iris dataset, Steve demonstrated...

Read more »

White Matter Segmentation in R

April 7, 2015
By
White Matter Segmentation in R

Goals and Overall Approach We will use multiple packages and pieces of software for white matter (and gray matter/cerebro spinal fluid (CSF)) segmentation. The overall approach will be, with the required packages in parentheses: N4 Inhomogeneity Bias-Field Correction (extrantsr and ANTsR) Brain extraction using BET and additional tools (extrantsr and fslr) FAST for tissue-class segmentation.

Read more »