RObservations #48: Exploring All Possible Hands in 5 card Poker

Introduction Recently, I have been reading “Mathematical Statistics” by Professor Keith Knight and I noticed a interesting passage he mentions when discussing finite sample spaces: *In some cases, it may be possible to enumerate all possible outcomes, but in general such enumeration is physically impossible; for example, enumerating all possible 5 card poker hands dealt… Continue reading RObservations #48: Exploring All Possible Hands in 5 card Poker

RObservations #37: Demistifying the tapply() function and comparing it to the “tidy” approach.

Introduction Many seasoned base R users use the tapply() function to help them in many contexts and talk about how powerful it is. However, many new R users have either have never seen tapply() or they have and are unsure how it works. The documentation is not very helpful in explaining it either: [tapply() applies]… Continue reading RObservations #37: Demistifying the tapply() function and comparing it to the “tidy” approach.

RObservations #26-Turning Raffle Ticket Purchases info into Raffle Entries with Base R

Introduction Recently, a friend running a non-profit reached out to me for some help with transforming his data. He ran a raffle campaign where he sold tickets to donors and wanted to turn the record of ticket sales into a record of raffle entries. The problem usually would take the secretaries in the office a… Continue reading RObservations #26-Turning Raffle Ticket Purchases info into Raffle Entries with Base R

RObservations #4 Using Base R to Clean Data

A friend of mine had some data which was mixed with character strings and was interested in looking at the numeric data only; Because the data set was quite large, cleaning it manually wasn’t viable. Besides for being too great of a task to do manually – tampering with the raw data can be very… Continue reading RObservations #4 Using Base R to Clean Data

View post to subscribe to site newsletter.