Showing posts with label R. Show all posts
Showing posts with label R. Show all posts

Monday, June 21, 2010

Tweeted from R

Today, I tweeted from R. HML.

library(twitteR)
tweet("R one-liner", session=initSession("username","password"))
http://twitter.com/kzfm/status/16724542437

Thursday, March 25, 2010

LU-decomposition

Today, I decomposed a matrix into an LU-decomposition in R. HML

library(Matrix)
x <- Matrix(rnorm(9), 3, 3)
elu <- expand(lu(x,sparse=F))
y <- elu$L %*% elu$U