http://stackoverflow.com/questions/679189/formatting-code-snippets-for-blogging-on-blogger
This one is using gist
At this point these notes on R and statistics are mostly to myself. Hopefully over time they will evolve into something that can be more generally useful.
Thursday, November 21, 2013
Saturday, November 16, 2013
Exploring S4 Objects in R
Looking what is inside of a particular method.
Method - spectra
Class - MSnExp
If method is exported (check NAMESPACE) then this will work.
getMethod("spectra","MSnExp")
Method Definition:
function (object)
{
sl <- as.list(assayData(object))
fnames <- featureNames(object)
return(sl[fnames])
}
Signatures:
object
target "MSnExp"
defined "MSnExp"
Showing slots for a given class
showClass("MSnExp")
showMethods(classes="MSnExp", where="package:MSnbase")
Debugging
trace(show, tracer=browser, signature=c(x="eSet"), where=getNamespace("Biobase"))
Thursday, November 7, 2013
Where are the R libraries?
on Mac
/Library/Frameworks/R.framework/Versions/3.0/Resources/library
on Win
c:/Users/vlad/R/win-library/3.0
Subscribe to:
Posts (Atom)
Checking font availability on Mac fc-list : family | grep "Fira Code" or system_profiler -json SPFontsDataType | grep \...
-
http://www.liacs.nl/~hoogeboo/mcb/nature_primer.html
-
E.g. we have a list of dictionaries x = [{'a':1,'b':3}, {'a':3,'b':2}, {'a':2,'b':1}] x....