Blog Archives

Progress bar in R

February 20, 2013
By

A decent percentage of working time in R, I spend looping over chromosomes, transcription factors or tissues, usually, using parallelization.To get the stuff to run simultaneously I use the foreach function from the doMC package, and for monitoring of ...

Read more »

Sending commands from Notepad++ to a remote R session

December 14, 2012
By

If you have your working environment set up in a Windows operating system, it can be a bit of a hassle to work with R sessions on remote Linux servers.I use WinSCP + Notepad++ to handle my projects and Putty + screen to handle the R sessions. It become...

Read more »

R function for reading big tables

November 20, 2010
By

HugeFileLoader = function(path, sep = "\t", skip = 0, header = T, nrows = 10){### counts the number of lines using shell wc command, and converts the output to numericline.count = paste("wc -l ", path, sep = "")row.count = as.numeric(strsplit(system(li...

Read more »

R function for reading big tables

November 20, 2010
By

HugeFileLoader = function(path, sep = "\t", skip = 0, header = T, nrows = 10){### counts the number of lines using shell wc command, and converts the output to numericline.count = paste("wc -l ", path, sep = "")row.count = as.numeric(strsplit(system(li...

Read more »