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

Processing Public Data with R

July 13, 2012
By
Processing Public Data with R

I use R aplenty in analysis and thought it might be worthwhile for some to see the typical process a relative newcomer goes through in extracting and analyzing public datasets In this instance I happen to be looking at Canadian air pollution statistics. The data I am interested in is available on the Ontario Ministry

Read more »

Using discrete-event simulation to simulate hospital processes

July 12, 2012
By
Using discrete-event simulation to simulate hospital processes

Discrete-event simulation is a very useful tool when it comes to simulating alternative scenario’s for current of future business operations. Let’s take the following case; Patients of an outpatient diabetes clinic are complaining about long waiting times, this seems to have an adverse effect on patient satisfaction and patient retention.  Read more »

A Napa Valley wine tasting map, made with R and ggmap

July 9, 2012
By
A Napa Valley wine tasting map, made with R and ggmap

R has had a maps package available since the very early days. It's great for simple geographic maps, but the political boundaries can be out of date. For more detailed maps, you can also download shape files and use the sp package to draw borders directly. But for accurate and attractive maps of countries, roads and satellite imagery, nothing...

Read more »

Fitting a dynamic model, and determining the number of parameters that can be fitted.

July 8, 2012
By
Fitting a dynamic model, and determining the number of parameters that can be fitted.

Let's suppose that we have the same dynamic model we presented before - that is, the Lorentz system of differential equations. Remember? In order to perform a fitting we need to define an objective function of sort: this will then be minimised. Now,...

Read more »

SMS analysis (coming from an Android smartphone or an IPhone)

July 7, 2012
By
SMS analysis (coming from an Android smartphone or an IPhone)

At first, this post was intended to describe how to manipulate dates with R but, as the idea was coming from the question of one of my students who wanted to analyze his SMS, I thought that I might as well also explain the whole analysis process... Using my new smartphone (that I started to

Read more »

R, knitr & markdown = HTML

July 7, 2012
By
R, knitr & markdown = HTML

Welcome to this demo of how R code and results can be combined into an HTML report. This entire blogpost was generated by using a combination of R, knitr and markdown. Beforehand, make sure you have the following libraries installed (latest version); knitr markdown ggplot2 (to run the example script)  Read more »

Alternative to Monte Carlo Testing

July 4, 2012
By
Alternative to Monte Carlo Testing

When we backtest a strategy on a portfolio, it is a simple analysis of a single period in time. There are ways to “stress test” a strategy such as monte carlo, random portfolios, or shuffling the returns in a random order. I could never really wrap my head around monte carlo and shuffling the returns … Continue reading...

Read more »

To the Basics: Bayesian Inference on A Binomial Proportion

July 4, 2012
By
To the Basics: Bayesian Inference on A Binomial Proportion

Think of something observable – countable – that you care about with only one outcome or another. It could be the votes cast in a two-way election in your town, or the free throw shots the center on your favorite...

Read more »

Olive vs. Sunflower oil Spectra – 002 (ChemoSpec)

July 1, 2012
By
Olive vs. Sunflower oil Spectra – 002 (ChemoSpec)

I add other data set of “sunflower oil” to import together with the olive oil into ChemoSpec R package. Before, as I showed in a video (Preparing spectra to import into ChemoSpec), every sample has been acquired with a NIR instrument (in transmitta...

Read more »

Olive Oil NIR/VIS Spectra – 001 (ChemSpec)

June 25, 2012
By
Olive Oil NIR/VIS Spectra – 001 (ChemSpec)

I continue with the practicing with ChemSpec, and this time I import seven spectra of olive oil. This time I have been more careful and I have the frequency column as numeric form the CSV file. Once I have the spectra (with and offset):Take in account ...

Read more »