-
Richard Feynman’s letter to his student
physiologically No problem is too small or too trivial if we can really do something about it. For the full text: http://genius.cat-v.org/richard-feynman/writtings/letters/problems?utm_source=hackernewsletter&utm_medium=email&utm_term=fav
-
Array construction in R, Perl, and Python
http://glassmusic.org/?molodoypidaras=rencontrer-un-mec-a-la-fac&5cf=e6 Array construction in R, Perl, and Python R: data Perl: @data = (1, 2, 3) @data[2..3] %hash = (‘a’ =>; ‘b’) $hash{a} Python: data = [1, 2, 3, ‘a’, ‘b’, ‘c’] data[2:3] tuple = (1, 2, 3, ‘a’, ‘b’, https://buycbdproducts.com # immutable dict = {‘a’: ‘America’, ‘c’: ‘Canada’} dict[‘a’]
-
Perl one liner executing a shell command on…
Perl one liner executing a shell command on files. e.g. copy all *.c files to new names, *.R. perl -de ‘foreach (@ARGV) {($new = $_) =~ s/c$/R/; system(“cp $_ $new”);}’ *c
-
Debugging R scripts with command line arguments 1…
Debugging R scripts with command line arguments. 1. Break up the script into two parts: one for reading the arguments, another one for the analysis. 2. Run R with *-args option. It enters the interactive R session. Example. R –args -p ../../input/M00724-foxa1.mat -s ../../input/mouse_promoter_seqs_EPD.fasta -c 0.55 -o testing_ 3. Source the the file reading https://buycbdproducts.com…
-
showMethods and selectMethod to find the functions and…
showMethods() and selectMethod() to find the functions and sources of S3 object in R. http://tolstoy.newcastle.edu.au/R/help/05/09/12506.html
-
Shuffle sequences in DNASequenceSet lapply or sapply return…
Shuffle sequences in DNASequenceSet. lapply() or sapply() return list. endoapply() returns the same data class, DNASequenceSet. It is way slower, though. shuffled.seqs
-
A clever use of geom smooth position =…
A clever use of geom_smooth(position = ‘jitter’) for plots looking like hand-written. test.dframe
-
R 11/07/2013
R apply functions tags: R tutorials Google’s R Style Guide tags: r styleguide coding Posted from Diigo. The rest of my favorite links are here.
-
R 11/06/2013
R apply functions tags: R tutorials Google’s R Style Guide tags: r styleguide coding Posted from Diigo. The rest of my favorite links are here.
-
https www writelatex com Online LaTeX editor which…
https://www.writelatex.com/ Online LaTeX editor which has Vim and Emacs flavored editor.