Posts Tagged ‘ programming ’

static symbols too?

June 5, 2010
By

Continuing in the context of this previous post… 1. Select a static symbol from the R sources, like Connections $ grep "static Rconnection Connections" src/main/connections.c static Rconnection Connections; 2. Get its address $ objdump -t `R RHOME`/bin/exec/R | awk '/ Connections/ {print $1}' 000000000093b700 3. Use the symbol > library(inline) > code <- " +

Read more »

Plans for a Real tty Connection

June 2, 2010
By

I reverted the name of the tty connection that I described previously, to “serial” connection and updated the patch to R 2.11.1. This name is more appropriate to its function and also makes way for another patch I am working on which implements the full POSIX terminal interface (essentially all of termios.h). The connection provided

Read more »

Access attribute_hidden Functions in R Packages

June 1, 2010
By
Access attribute_hidden Functions in R Packages

Maybe the title should have been prepended with “Don’t…” The source code of R is littered with “attribute_hidden” declarations. These declarations attempt to ensure that the variable or function may only be accessed by code in the core R distribution, and not by R extension packages. Generally there is a good reason for this. For

Read more »

Must Have Software

May 28, 2010
By

Having worked with Unix (BSD, HPUX, IRIX, Linux and OSX), Windows (NT4, 2000, XP, Vista and 7) for quite a while I have seen a lot of different software tools. I would like to quickly exhibit my “must have” list. These are the packages that I find to be the single “must have offerings” inRelated posts:

Read more »

robot (SPX) DNA Management Techniques

May 18, 2010
By
robot (SPX) DNA Management Techniques

Yes, this is related to trading, but no, it is not my thesis on why the Euro is going to parity. Instead, it is sort of a workshop for robot(SPX) developers on how to organize their digital DNA. As you begin to use programming as a money extraction tool on the markets, you'll soon find...

Read more »

Collect and Parse GPS (NMEA0183) Data in R

May 11, 2010
By

I recently wrote a serial connection for R-2.11.0 so that I can communicate with serial devices, for example an old Garmin eTrex Legend. This GPS device is able to output NMEA0183 sentences to a standard serial port (4800,8,1,N). I hooked up the device and used the serial connection to collect some data using some R

Read more »

Computational Statistics

May 9, 2010
By
Computational Statistics

Do not resort to Monte Carlo methods unnecessarily. When I received this 2009 Springer-Verlag book, Computational Statistics, by James Gentle a while ago, I briefly took a look at the table of contents and decided to have a better look later… Now that I have gone through the whole book, I can write a short

Read more »

hash-2.0.0

April 30, 2010
By
hash-2.0.0

Come see my talk on hashes in R at useR! 2010. (http://user2010.org/) July 20-23 National Institute of Standards and Technology (NIST), Gaithersburg, Maryland, USA

Read more »

R : NA vs. NULL

April 25, 2010
By
R : NA vs. NULL

The R language has two closely related NULL-like values, NA and NULL ... Both are used to represent missing or undefined values. This has lead to much confusion.

Read more »

Doing Maximum Likelihood Estimation by Hand in R

April 21, 2010
By
Doing Maximum Likelihood Estimation by Hand in R

Lately I’ve been writing maximum likelihood estimation code by hand for some economic models that I’m working with. It’s actually a fairly simple task, so I thought that I would write up the basic approach in case there are readers who haven’t built a generic estimation system before. First, let’s start with a toy example

Read more »