An updated version of my package fancycut is on CRAN. The package has one function, fancycut(), that is more versatile than cut() for certain applications. cut() takes a numeric vector and turns it into a factor or categorical vector. It works best when they are no gaps in the intervals you have defined and when … Continue reading "fancycut"
I just wanted to share the good experience I have had with creating a virtual personal desktop on Paperspace. A few months ago I started researching whether there was anyone out there providing this service. Paperspace came up in the … Continue reading →
Unless you have configured R not to ask, every time you close R or RStudio you are prompted to save your workspace. This saves an RData file to the working directory. The functions save.image() and save() offer a little more … Continue reading →
I installed the “SQL Server 2016 Release Candidate” today to start playing around with Microsoft is calling “SQL Server R Services (In-Database)”. I think this is really going to change the way we do things at the office and it’s … Continue reading →
This is in response to Andrew Z’s post on R-Bloggers Friday about using recursion to calculate numbers in the Fibonacci sequence. http://heuristicandrew.blogspot.com/2014/12/fibonacci-sequence-in-r-and-sas.html I’ve re-written the author’s Fibonacci function here. The only really change is that this one is extended to … Continue reading →
I will be presenting with Simon Brickman today at the inaugural “R in Insurance” conference at the Cass Business School in London. You can download the content from my public Dropbox folder. There was a bit of magic in how … Continue reading →
Two of my favorite functions are copy.table() and paste.table(). I’m going to turn this story on its head and give you the ending first. The first allows you to copy a data frame to the clipboard in a format that … Continue reading →