My R Codes Archive

This blog is developed as a personal library of R codes I have written. Even though this was meant to be a personal archive, I am having this blog open to public viewing in case any other R users find it useful. Hence, the codes may not be structured as neatly as online tutorial papers or blogs designed for educational purpose.

Friday, 18 September 2015

alarms, beeps and voice

›
The below is available in R's base package as a notification method, for example, to alert users that a long running script has finished...
Wednesday, 22 July 2015

reshape2 package - similar function to pivot table in Excel

›
recast() in "reshape2" package offers a function that can work like a pivot table in Excel. library(reshape2) recast(data = ...
Tuesday, 7 July 2015

connecting R to database

›
There are several ways to do this, but the following are what worked for me. Connections  Connecting to a database using ODBC: ...
Friday, 3 July 2015

Batch processing & scheduling of R

›
Scheduling R script runs in Windows 1. create a batch file (.bat) with the below command " Your path to R.exe (e.g. C:\Program Fi...
Monday, 20 April 2015

memory consumption and processing times

›
To measure a time taken by a process the following function can be useful system.time()   e.g.     system.time(sum(seq(1,10000000,by=...
‹
›
Home
View web version
Powered by Blogger.