Articles by wrathematics

Comparing Symmetric Eigenvalue Performance

October 28, 2016 | wrathematics

Lazy reader’s guide: skip to the pretty pictures, skim the conclusions section, ignore the rest. Background I think a lot about eigenvalue and singular value decompositions. I won’t get into it right now, but I have been quoted in the past as sa...
[Read more...]

Password Input with getPass

April 26, 2016 | wrathematics

As of this morning, the getPass package version 0.1-1 is available on CRAN. The package offers a portable way to read user input without echoing the text, for the purposes of reading passwords. Some screenshots from various platforms are given below.... [Read more...]

Password Input with getPass

April 26, 2016 | wrathematics

As of this morning, the getPass package version 0.1-1 is available on CRAN. The package offers a portable way to read user input without echoing the text, for the purposes of reading passwords. Some screenshots from various platforms are given below. ...
[Read more...]

Perform co-operations with the coop package

April 6, 2016 | wrathematics

About The coop package does co-operations: covariance, correlation, and cosine, and it does them quickly. The package is available on CRAN and GitHub, and has two vignettes: Introducing coop: Fast Covariance, Correlation, and Cosine Operations Algorithms and Benchmarks for the coop Package Incidentally, the vignettes don't render correctly on CRAN's ... [Read more...]

Cache Rules Everything Around Me

February 12, 2015 | wrathematics

Title with apologies to the Wu-Tang Clan. In this post, we're going to be discussing: Rcpp R's C interface The importance of CPU caches Performance benchmarking If none of these things is of interest you and you clicked anyway, please enjoy this picture of a cat: Background Cache is like ... [Read more...]

One of My Favorite R Oddities: dump()

January 26, 2015 | wrathematics

R is full of things that make "real programmers" (I dislike this term) turn their noses up in disgust. One of my favorites is the dump() function. It is...odd. I think the best way to introduce it to people is without context, because it's just so bizarre: That's right; ... [Read more...]

A “did you mean?” Feature for R

December 10, 2014 | wrathematics

Most search engines have a "did you mean?" feature, where suggestions are given in the presence of likely typos. And while search engines use sophisticated NLP methods on their vast amounts of user-generated data to create accurate suggestions, you can get by with some ancient spellchecker techniques. So a little ... [Read more...]

A New Use for Pipes in R: Forkbombs

August 6, 2014 | wrathematics

Almost 3 years ago, I wrote about how to forkbomb with R. A quick recap is that a forkbomb is a low-tier, malicious misuse of a system; sort of a "baby's first denial of service". The idea is that you write a program that will start an entirely new copy of ... [Read more...]

Advanced R Profiling with pbdPAPI

July 22, 2014 | wrathematics

R has some extremely useful utilities for profiling, such as system.time(), Rprof(), the often overlooked tracemem(), and the rbenchmark package. But if you want more than just simple timings of code execution, you will mostly have to look elsewhere. One of the best sources for profiling data is hardware ... [Read more...]

Modern Applied Statistics in R’lyeh

June 30, 2014 | wrathematics

So you've probably heard of King James Programming; if not, you should check it out because it's great. A quick summary is that someone took the King James Bible and Sussman's Structure and Interpretation of Computer Programs (SICP) and used an n-gram babbler to generate new sentences that combine the ... [Read more...]

Searching an R Function’s Source Code

May 1, 2014 | wrathematics

This is not nearly as interesting as it might first sound, but every function in R contains R code; this is true of core R code as well as extension packages. Sometimes the R code is just a very shallow wrapper around some compiled code, such as in sum() and ... [Read more...]

How to Make a Bad Password with R

February 24, 2014 | wrathematics

I have a lot of projects that will take ages to finish (some are in such poor shape that I tuck them away in private repositories, so no one can see my shame).  So sometimes it's nice to just take a weekend and crank out something start to finish, even ... [Read more...]

Rules for Naming Objects in R

December 16, 2013 | wrathematics

Naming Rules in R How are objects allowed to be named in R? As it turns out, this is a very different question from how should objects be named. This isn't about style conventions, camelCase, dots.verus_underscores, or anything like that; this is about what is strictly possible. I ... [Read more...]

Intentionally Writing Obtuse Code

December 9, 2013 | wrathematics

Sometimes intentionally writing bad code can be a lot of fun. Now here, when I say "bad", I mean something that's functional but completely incoherent to anything but the machine. There are even competitions for this kind of thing, but I only consider myself a dabbler in this dark art. ... [Read more...]

pbdR Updates – Distributed lm.fit() and More

December 3, 2012 | wrathematics

Over the weekend, we updated all of the pbdR packages currently available on the CRAN.  The updates include tons of internal housecleaning as well as many new features. Notably, pbdBASE_0.1-1 and pbdDMAT_0.1-1 were released, which contain lm.fit() methods.  This function in particular has been available at my ... [Read more...]
1 2

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)