Vectorize

Outer Product of Character Vectors in R

July 19, 2012 | Isomorphismes

What follows is like a kata to strengthen your R fundamentals. The lovely stats in the wild recently posted some hott data analysis of Olympians’ ages and sexes. Because I’m annoyingly picky about graphics, I asked for his code so I could ... [Read more...]

Vectorize!

February 20, 2011 | xi'an

Here is an email sent by one of my students a few days ago: Do you know how to integrate a function with an  “if”? For instance: __X=rnorm(100) __Femp=function(x){ +   return(sum(Xintegrate(Femp,0,1)$value does not work. My reply was that the fundamental reason it does not ... [Read more...]

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)