Blog Archives

Catalan numbers for triangulations gambler’s ruin binary…

July 27, 2015
By
Catalan numbers for
triangulations
gambler’s ruin
binary…

Catalan numbers for triangulations gambler’s ruin binary trees trees …from the Flajolet/Sedgewick coursera analysis of algorithms in R: catalan % unlist %>% sum } (This is slow above catalan(10) though, so

Read more »

Hacks for thinking about high-dimensional space

June 2, 2015
By
Hacks for thinking about high-dimensional space

High-dimensional Euclidean space is ℝ×ℝ×ℝ×ℝ×ℝ×…. Cartesian product of many continuous quantities. You are already familiar with the concept via “an arbitrary...

Read more »

Treasury yield curve from the Volcker era through Greenspan,…

November 5, 2014
By
Treasury yield curve from the Volcker era through Greenspan,…

2006–2014 using FRBData 2006–2014 using FRBData packageTreasury yield curve from the Volcker era through Greenspan, Bernanke, and Yellen. require(YieldCurve) data(FedYieldCurve) maturities I can’t upload a larger view, but just run that code with a bigger width & height, you might get a ~10MB gif. I shrank it further with gifsicle. Here’s the animated history of the ECB yield curve,...

Read more »

List of R programmers

September 26, 2014
By

List of R programmers: Hello R people. In December of 2013 I posted a cheap-o wiki-editable (thank you github) contact list which recruiters can use to find you, if they’re looking for R programmers. In what I consider a resounding success, within a few weeks it got onto the first page of google (thank you github), and...

Read more »

√(x²−1)(x²−k²).      x,k∈ℂ (actually just going over the unit…

September 15, 2014
By
√(x²−1)(x²−k²).      x,k∈ℂ
(actually just going over the unit…

√(x²−1)(x²−k²), k∈ℂ x²√(x²−1)(x²−k²).      x,k∈ℂ (actually just going over the unit circle, not all of ℂ) edit: hey, are these showing up as moving gif’s for you? code: require(animation) source(wegert.R) #where I define "plat" and "Z", standard for...

Read more »

Measuring Fat Loss without the scale

July 30, 2014
By
Measuring Fat Loss without the scale

@tdhopper posted his self-measurements of weight loss a few months back. I recently decided also that I wanted to lose fat-weight—the infamous “I could stand to be a few kilos lighter”—and I think I came up with a more productive way of thinking about my progress: I’m not going to look at the scale at all....

Read more »

> plot( polyroot(choose(131,14:29)) ,pch=19,col=’red’) >…

July 23, 2014
By
> plot( polyroot(choose(131,14:29)) ,pch=19,col=’red’)
>…

29 39 59 79 99 119 "139"> plot( polyroot(choose(131,14:29)) ,pch=19,col='red') > plot( polyroot(choose(131,14:39)) ,pch=19,col='red') > plot( polyroot(choose(131,14:59)) ,pch=19,col='red') > plot( polyroot(choose(131,14:79)) ,pch=19,col='red') > plot( polyroot(choose(131,14:99)) ,pch=19,col='red') > plot( polyroot(choose(131,14:119)) ,pch=19,col='red') > plot( polyroot(choose(131,14:139)) ,pch=19,col='red')

Read more »

Size of each object in R’s workspace

July 22, 2014
By
Size of each object in R’s workspace

I’ve googled How do I find out how big my workspace is too many times … here’s the explicit code to run and hopefully the next googler sees this post: for (thing in ls()) { message(thing); print(object.size(get(thing)), units='auto') } Fin. You can stop there.   Or for a bit of context… Here’s an example code to generate objects of variable sizes where you...

Read more »

How do I open R help about a symbol or punctuation mark like ( parenthesis or [ bracket?

April 8, 2014
By

A question I’ve googled before without success. Hopefully this answer will show up for someone who needs it. I’ll also go over the better-known uses of ? just in case. To get help in R about a function like subset you type ?subset . That’s like man subset from the command line. If you only know roughly what you’re looking for use double...

Read more »

How do I open R help about a symbol, special character, or punctuation mark like ( parenthesis or [ bracket?

April 8, 2014
By

A question I’ve googled before without success. Hopefully this answer will show up for someone who needs it. I’ll also go over the better-known uses of ? just in case. To get help in R about a function like subset you type ?subset . That’s like man subset from the command line. If you only know roughly what you’re looking for use double...

Read more »