Wednesday, January 30, 2013

sample from discrete distribution in R


 Basically use sample function:

refer to this very useful blog:

http://msenux.redwoods.edu/math/R/SampleDiscrete.php

How to rename files in linux (regular expression)

Here is a very useful link to this question, just need to download their perl script and then use perl regular expression to rename file!! ...