Category Archives: R

Separating Blocks of Numbers in Columns of Data

More and more I'm using the 'apply' functions in R (apply, mapply, sapply, lappy,...). The help functions on these are hard to decipher. Not till I read a post by Neil Saunders, did I really start using them instead of … Continue reading

Posted in data, R | Tagged , | Leave a comment

Prime Time Calculation

Number theory has always interested me, specifically irrational numbers and prime numbers.   I was messing around with functions in R and came up with a very neat ‘one line’ function in R that checks if a number is prime.  See … Continue reading

Posted in analysis, math, R | Tagged , , , | Leave a comment