November 2011

Vectors (CloudStat)

November 5, 2011 | CloudStat

The simplest type of data object in R is a vector, which is simply an ordered set of values. Some further examples of creating vectors are shown below: Input: 1:20 Output: [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 This creates a... [Read more...]

#2 Data Classes (CloudStat)

November 5, 2011 | CloudStat

As stated in CloudStat Intro, we know that CloudStat is based on R Language, an object orientated language, everything in R is an object. Each object has a class. The simplest data objects are one-dimensional arrays called vectors, consisting of any nu... [Read more...]

The Joy of R: A Feline Guide

November 5, 2011 | Mario Pineda-Krch

Just because it’s caturday Images by Mario Pineda-Krch (CC BY-NC-SA 3.0) This is from the “Mario’s Entangled Bank” blog ( http://pineda-krch.com ) of Mario Pineda-Krch, a theoretical biologist at the University of Alberta. Filed under: cats, computing, humour, R, Sweave [Read more...]

Colour wheels in R

November 5, 2011 | Stubborn Mule

Regular readers will know I use the R package to produce most of the charts that appear here on the blog. Being more quantitative than artistic, I find choosing colours for the charts to be one of the trickiest tasks when designing a chart, particularly as R has so many ... [Read more...]

Generating PPC Keywords in R – Part 2

November 4, 2011 | Abraham Mathew

In a previous post, I discussed how to generate PPC keywords in R. In this post I will provide another example of how to perform this task. Let’s say that I am a auto insurance company that only operates in the state of Illinois. I’m planing on bidding ... [Read more...]

Rdatamarket Tutorial

November 4, 2011 | David Smith

The good folks at DataMarket have posted a new tutorial on using the rdatamarket package (covered here in August) to easily download public data sets into R for analysis. The tutorial describes how to install the rdatamarket package, how to extract metadata for data sets, and how to download the ... [Read more...]

match vs. %in%

November 4, 2011 | Xianjun Dong

match and %in% are two very commonly-used function in R. So, what's the difference of them?First, how to use them -- (copy from R manual)match returns a vector of the positions of (first) matches of its first argument in its second.%in% is a ... [Read more...]

Factor to class-membership matrix

November 4, 2011 | Bogumił Kamiński

Recently on R-bloggers I found a post from chem-bla-ics blog concerning conversion of factors to integer vectors. At the end it stated a problem of conversion of factor variable to class-membership matrix. In comments several nice solutions were p...
[Read more...]

Help: stemming and stem completion with package tm in R

November 3, 2011 | Yanchang Zhao

I came across a problem below when doing stemming and stem completion with package tm in R. Word “mining” was stemmed to “mine” with stemDocument(), and then completed to “miners”with stemCompletion(). However, I prefer to keep “mining” intact. For stemCompletion(), … Continue reading → [Read more...]

Webinar on Portfolio Rebalancing with R and Sybase

November 3, 2011 | David Smith

R users in the financial industry may be interested in the following webinar hosted by Revolution Analytics' partner Sybase on November 10: Portfolio Rebalancing Using R and Sybase RAP for Intraday Risk Management With volatility and violent intraday swings becoming the new normal, intraday risk controls are now needed to not ... [Read more...]

Variability of volatility estimates from daily returns

November 3, 2011 | Pat

Investment Performance Guy has a post “Periodicity of risk statistcs (and other measures)” in which it is wondered how valid volatility estimates are from a month of daily returns. Here is a quick look.  Figure 1 shows the variability (and a 95% confidence interval) of volatility estimates for the S&P 500 index ... [Read more...]

Maximizing Omega Ratio

November 3, 2011 | systematicinvestor

The Omega Ratio was introduced by Keating and Shadwick in 2002. It measures the ratio of average portfolio wins over average portfolio losses for a given target return L. Let x.i, i= 1,…,n be weights of instruments in the portfolio. We suppose that j= 1,…,T scenarios of returns with equal ... [Read more...]

First thoughts on R

November 2, 2011 | DomPazz

Having worked just a little with R, I have some first impressions to share.  I'll give you some links to resources I found helpful with writing the previous project. First, the documentation is not very good.  I struggled on previous attempts to figure things out.  I still find it crap ... [Read more...]
1 10 11 12 13 14

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)