background preloader

Stats

Facebook Twitter

Home | Integromics® | IT for Life Sciences. GO... Don't Panic . Learn Statistics. Using R for statistical analyses - Introduction. Help and Documentation My Publications See my books about R at my Publications Page: Statistics for Ecologists using R and Excel. Published December 2011 Beginning R: The Statistical Progreamming Language. The Essential R Reference. Documents There are plenty of sources of help and information regarding R. “Using R for Data Analysis and Graphics - Introduction, Examples and Commentary” by John Maindonald [PDF]. These are available via the 'Contributed Documentation' section. Courses From 2009 I am going to be running a series of short courses in data analyses for conservation biologists. Help within R The help system within R is comprehensive. Click on the 'Help' menu. If you want help on a specific command you can enter a search directly from the keyboard: help(keyword) A shortcut is to type: ?

This is fine if you know the command you want. Apropos("part.word") You type in a part.word and R will list all commands that contain that string of letters. R comes with a number of data sets. Oracle Forms PJCs/Java Beans - Version 1.5.1 (Español) - Oracle Forms PJC/BEAN - Excel Project. The R programming language for programmers coming from other programming languages. IntroductionAssignment and underscoreVariable name gotchasVectorsSequencesTypesBoolean operatorsListsMatricesMissing values and NaNsCommentsFunctionsScopeMisc.Other resources Ukrainian translation Other languages: Fourni par Traduction Introduction I have written software professionally in perhaps a dozen programming languages, and the hardest language for me to learn has been R.

R is more than a programming language. This document is a work in progress. Assignment and underscore The assignment operator in R is <- as in e <- m*c^2. It is also possible, though uncommon, to reverse the arrow and put the receiving variable on the right, as in m*c^2 -> e. It is sometimes possible to use = for assignment, though I don't understand when this is and is not allowed. However, when supplying default function arguments or calling functions with named arguments, you must use the = operator and cannot use the arrow.

At some time in the past R, or its ancestor S, used underscore as assignment. Vectors Sequences. R and JAVA. Biocep. JavaGD - Java Graphics Device - RForge.net. rJava - Low-level R to Java interface - RForge.net. If you want to run R within a Java application, please see the JRI pages for details. rJava allows you to use R code to create Java objects, call Java methods and pass data between R and Java. Most functions are already documented by the corresponding help pages in R, but here is a very basic crashcourse: The following gives a quick guide to the use of rJava. If you have questions about installation, please visit the R Wiki - rJava package. Let's start with some low-level examples. Remember, this is all essentially a JNI interface, so you may encounter new things if you used Java from high level only. library(rJava).jinit() # this starts the JVMs <- .jnew("java/lang/String", "Hello World! ") Ok, here we have our first Java object.

Next, we will call a simple method: .jcall(s,"I","length")[1] 12 This is equivalent to s.length(), but it is a bit more complex than expected. .jcall(s,"I","indexOf","World")[1] 6 .jcall(s,"Ljava/lang/String;","concat",s)[1] "Hello World! iPlots - High interaction graphics for R. The Omega Project for Statistical Computing.