Rcode - To get the 5# summary use: fivenum(data[ specify...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Basic R code To load data use: data <- as.matrix(read.table(“ file location ”, sep = “ comma-semi colon-tab “)) To get the number of rows use: nrow(data) To get the number of columns use: ncol(data) To sketch a stemplot use: stem(data[ specify rows , specify column ]) To sketch a histogram use: hist(data[ specify rows , specify column ])
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: To get the 5# summary use: fivenum(data[ specify rows , specify column ]) To sketch a boxplot use: boxplot(data[ specify rows , specify column ]) To compute the correlation use: cor(data) To compute the covariance use: cov(data) To sketch the normal quantile plot use: qqnorm(data[ specify rows , specify column ])...
View Full Document

This note was uploaded on 04/23/2011 for the course STAT 503 taught by Professor Staff during the Spring '08 term at Purdue.

Ask a homework question - tutors are online