Posts Tagged ‘ paste() ’

The Need for paste2 (part II)

April 29, 2012
By
The Need for paste2 (part II)

This is Part II of a multi part blog on the paste2 function… In my first post on the paste2 function I promised a proof of a few practical uses.  The first example I have comes from psychometrics and comes out of … Continue reading →

Read more »

The Need for paste2 (part I)

April 29, 2012
By
The Need for paste2 (part I)

This is Part I of a multi part blog on the paste2 function… I recently generated a new paste function that takes an unspecified list of equal length variables (a column) or multiple columns of a data frame  and pastes … Continue reading →

Read more »

Example 9.21: The birthday "problem" re-examined

February 23, 2012
By
Example 9.21: The birthday "problem" re-examined

The so-called birthday paradox or birthday problem is simply the counter-intutitive discovery that the probability of (at least) two people in a group sharing a birthday goes up surprisingly fast as the group size increases. If the group is only 23 peo...

Read more »

Example 8.35: Grab true (not pseudo) random numbers; passing API URLs to functions or macros

April 19, 2011
By
Example 8.35: Grab true (not pseudo) random numbers; passing API URLs to functions or macros

Usually, we're content to use a pseudo-random number generator. But sometimes we may want numbers that are actually random-- an example might be for randomizing treatment status in a randomized controlled trial.The site Random.org provides truly rando...

Read more »

On the Gory Loops in R

October 17, 2010
By

his blog post is mainly for Stat 579 students on the homework for week 7, since I received too many “gory” loops in the homework submissions and I think it would help a bit to write my thoughts on R loops for beginners. The immortal motto for newbies in programming is: If you want to

Read more »