viernes, 29 de agosto de 2014

LED is my new Hello World - R Time

Yep...as I have said many times before, the LED Number application has become my new Hello World...whenever I learn a new programming language I try to build this, because it compromises several language constructs and makes you learn more by trying to figure out how to build it again...

Yesterday I blog about how to build it using Haskell...and...I'm still learning Haskell...so I thought..."It's cool that I'm using this for my new programming languages...but what about the old ones?"

I suddenly realized that I had never wrote this using R...and that's really sad...I love R -:)

Not at all...should work fine on either RStudio or Command Line R...in your case it looks like "\n" is being replaced by a single "n"...if you're using Linux I guess you might need to change the code to this...

Hey there, I findyour LED generating script very interesting. But on the second glance i saw that you missed some very useful R functions. further you should use a second for loop. this would improve the generalisation to more lines.