SplusRev

SplusRev - (AlsoRandS References VenablesandRipley,2003...

This preview shows pages 1–16. Sign up to view the full content.

Computational Statistics Review of Splus Commands  (Also R and S) Also Check Online Manuals

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
References Venables and Ripley, 2003 Modern Applied Statistics with S  If you decide that you wish to continue  to use R in your research, this is a good  reference book to have on your shelf.
GUI Graphical User Interface GUI The next six slides are for Splus only. The slides after that are general for both  softwares except where indicated.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Command Line Commands A First Session Elementary Commands
Arithmetic Operators 2+3   5 2-3   -1 2*3   6 2/3   0.6666667 2^3   8 2**3   8 2+3*4^2   50 50 )) 4 ( 3 ( 2 4 3 2 8 2 667 . 0 3 2 3 / 2 6 3 2 1 3 2 5 3 2 2 2 3 = × + = × + = = ÷ = = × - = - = +

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Assignment Operator x<-9 x  9 rm(x) x Problem: Object "x" not found  Use traceback() to see the call stack x_9     # This is no longer used in R x   9 x=9 x   9 sqrt(x)   3
Objects objects(pat="x*")  [1] "x"              "x.025"           [3] "x.95"           "x.975"           [5] "x.bar"          "x.bar.minus.mu"  [7] "x.breaks"       "x.cuts"          [9] "x.loc"          "x.new"          [11] "x.new1"         "x.new2"         [13] "x.new3"         "x1"             [15] "x1.max"         "x1.min"         [17] "x2"             "xbar"           [19] "xbar1"          "xbar2"

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Object Types x = 24 x  24 x = c(1,5,9) x  1 5 9 x = matrix(1:12,nrow=3,ncol=4) x      [,1] [,2] [,3] [,4]  [1,]    1    4    7   10 [2,]    2    5    8   11 [3,]    3    6    9   12 x = matrix(1:12,nrow=3,ncol=4,byrow=T) x      [,1] [,2] [,3] [,4]  [1,]    1    2    3    4 [2,]    5    6    7    8 [3,]    9   10   11   12 Scalar Vector Matrix
Object Types x = list(males=c(1,5,9),females=c(2,4,9,3)) x \$males:  1 5 9 \$females:  2 4 9 3 x = data.frame(males=c(1,5,9),females=c(2,4,9)) x   males females  1     1       2 2     5       4 3     9       9 List Data Frame

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/17/2010 for the course STSCI 3200 taught by Professor Sullivan during the Spring '10 term at Cornell.

Page1 / 47

SplusRev - (AlsoRandS References VenablesandRipley,2003...

This preview shows document pages 1 - 16. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online