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

getting ICES 1903-1949 catch statistics into R

January 5, 2012
By
getting ICES 1903-1949 catch statistics into R

in the last post i showed how to get the nominal north east atlantic landings data from 1950 onwards into a usable format in R. this time around a script that shows how to import zipped excel files from 1903 to 1949 is provided. finalizing with a ggplo...

Read more »

Revisiting basic macroeconomics : Illustrations with R

January 5, 2012
By
Revisiting basic macroeconomics : Illustrations with R

PrologueAfter 3 semesters of studying economics at IGIDR, the basics of macroeconomics still elude me. What policy shifts what curve? What determines the slope of IS-LM and AD-AS curves? What exactly was Keynes contribution to Economics? How do all the...

Read more »

Example

January 2, 2012
By
Example

Here is a little example of what I do. While learning R isn't easy, it can be very powerful and efficient once you get your feet wet. I intend for this example to whet  your appetite. This should take you less than 20 minutes. By the end, you will...

Read more »

Benchmarking time series models

December 29, 2011
By
Benchmarking time series models

This is a quick post on the importance of benchmarking time-series forecasts.  First we need to reload the functions from my last few posts on times-series cross-validation.  (I copied the relevant code at the bottom of this post so you don't...

Read more »

Portfolio Optimization in R, Part 4

December 23, 2011
By
Portfolio Optimization in R, Part 4

This post will conclude the portfolio optimization series.  In this post, we will construct a trading strategy based on portfolio optimization and test the results against the CAPM market portfolio as well as another strategy.It is worth reiterati...

Read more »

data.frame objects in R (via “R in Action”)

December 18, 2011
By
data.frame objects in R (via “R in Action”)

The followings introductory post is intended for new users of R.  It deals with R data frames: what they are, and how to create, view, and update them. This is a guest article by Dr. Robert I. Kabacoff, the founder of (one of) the first online R tutorials websites: Quick-R.  Kabacoff has recently published the book ”R Read more...

Read more »

Portfolio Optimization in R, Part 1

December 17, 2011
By
Portfolio Optimization in R, Part 1

I briefly mentioned in my last post; that I was fooling around with portfolio optimization in R.  This post will the first in a series on the topic of portfolio optimization. Please note, nothing I am about to say should be taken as advice for investing.  These results are based on prior observed returns and the future...

Read more »

IRIS Flower Data Set (R-001)

December 17, 2011
By
IRIS Flower Data Set (R-001)

IRIS Flower Data SetEste es el Link a Wikipedia donde podéis encontrar los datos que utilizó Fisher en su trabajo de 1936. Ya hemos trabajado con estos datos en Excel y los continuaremos usando en nuevas entradas.En este link, podemos ver las fotos de las flores (IRIS en castellano son lírios).Represento como LS (longitud del sépalo), AS...

Read more »

Bayesian inference and the parametric bootstrap

December 15, 2011
By
Bayesian inference and the parametric bootstrap

This paper by Brad Efron came to my knowledge when I was looking for references on Bayesian bootstrap to answer a Cross Validated question. After reading it more thoroughly, “Bayesian inference and the parametric bootstrap” puzzles me, which most certainly means I have missed the main point. Indeed, the paper relies on parametric bootstrap—a frequentist

Read more »

Running your R and LaTeX Infrastructure from a portable USB Drive

December 9, 2011
By
Running your R and LaTeX Infrastructure from a portable USB Drive

On my road to eventually running all of my programs off an USB device I’ve gotten a little bit closer yesterday thanks to input from Duncan Murdoch and Yihui Xie. Eventually running the entire Windows OS off a USB drive would be nice (not talking about running it as a Virtual Machine, but to have … Continue reading...

Read more »