1958 search results for "twitteR"

Typo in Example 3.6

September 16, 2010
By
Typo in Example 3.6

Edward Kao pointed out the following difficulty about Example 3.6 in Chapter 3 of “Introducing Monte Carlo Methods with R”: I have two questions that have puzzled me for a while. I hope you can shed some lights. They are all about Example 3.6 of your book. 1. On page 74, there is a term

Read more »

Complex-valued linear models

September 16, 2010
By
Complex-valued linear models

Someone has probably already written code to do this. But I couldn’t find it in CRAN, so here goes. Oh no lm() won’t take complex numbers! (or rather, it’ll take them, but it’ll discard the imaginary part.) Easy enough fix. … Continue reading →

Read more »

Three dimensional plots using rgl package

September 15, 2010
By
Three dimensional plots using rgl package

We all know that R can do amazing things including 3 dimensional plots. scatterplot3d is probably the most popular package for doing this. But a few days ago I got introduced with rgl package which can do 3 dimensional graphs with some added advantages like we can rotate the plot using mouse, zoom in or out using the mouse...

Read more »

News on MCMSki III

September 14, 2010
By
News on MCMSki III

Here is a message sent by the organisers of MCMSki III in Utah next early January. When registering, make sure to tick the free registration for Adap’skiii as well! The fourth joint international meeting of the IMS (Institute of Mathematical Statistics) and ISBA (International Society for Bayesian Analysis), nicknamed “MCMSki III“, will be held at

Read more »

Which functions in R base call internal code?

September 14, 2010
By
Which functions in R base call internal code?

In a recent question on Stack Overflow about speeding up group-by operations, Marek wondered which functions called .Internal code (and consequently were fast). I was surprised to see that there appears to be no built-in way to check whether or not this is the case (though is.primitive is available for primitive functions).Writing such a function is quite straight forward....

Read more »

Some useful bar plots using R

September 14, 2010
By
Some useful bar plots using R

In this article I am trying to show how to produce bar plots using R. Many of my friends think SPSS is the most useful software for producing plots and they keep using it (some of them even use Excel!). My goal is to show that R can do every type of g...

Read more »

10w2170, Banff [2]

September 13, 2010
By
10w2170, Banff [2]

Over the two days of the Hierarchical Bayesian Methods in Ecology workshop, we managed to cover normal models, testing, regression, Gibbs sampling, generalised linear models, Metropolis-Hastings algorithms and of course a fair dose of hierarchical modelling. At the end of the Saturday marathon session, we spent one and half discussing some models studied by the

Read more »

Handling .Z files

September 13, 2010
By
Handling .Z files

A while back Steve Mcintyre was looking for a way to handle .Z files in R Ron Broberg over at the whiteboard had an approach that steve adopted both for untar and for uncompressing .Z files.  While the approach is slick, its somewhat of a hack. Nothing wrong with that, but I wanted something a

Read more »

“simply start over and build something better”

September 12, 2010
By
“simply start over and build something better”

The post on the shortcomings of R has attracted a huge number of readers and Ross Ihaka has now posted a detailed comment that is fairly pessimistic… Given the directions drafted in this comment from the father of R (along with Robert Gentleman), I once again re-post this comment as a main entry to advertise

Read more »

Preventing argument use in R

September 12, 2010
By
Preventing argument use in R

It sounds silly, but sometimes you don't want to let people use some arguments of a function. The canonical example is write.csv. The function is effectively a wrapper to write.table, but using "," as the separator and "." as the decimal.

Read more »