Index
A
- abind package / Load the package
- abline(...) function
- using / Time for action – customizing a scatterplot
- about / abline(...)
- arguments / abline(...)
- syntax / abline(...)
- example / abline(...)
- abline(...) function, arguments
- reg / abline(...)
- lty / abline(...)
- AIC
- about / Time for action – model development
- procedure / Time for action – model development
- using / AIC(object, ...)
- AIC(object, ...) function / AIC(object, ...)
- ambush model / Ambush
- analysis of variance (ANOVA)
- about / Interpreting the ANOVA results
- interpreting / Interpreting the ANOVA results
- angle argument
- shade, changing for bar chart / Time for action – customizing a bar chart, density and angle
- about / density and angle, legend(...) with density, angle, and cex
- anova(object, ...) function / anova(object, ...), AIC(object, ...)
- as.numeric(data) function
- about / as.numeric(data)
- example / as.numeric(data)
- attach(variable) function / Time for action – accessing data within variables, attach(variable) function
- axis(...) function
- custom axes, creating for box plot / Time for action – customizing a box plot, axis(...)
- using / axis(...)
B
- bar chart
- creating, in R / Time for action – creating a bar chart, What just happened?
- about / Time for action – creating a bar chart
- customizing / Time for action – customizing a bar chart
- legend, adding / Time for action – customizing a bar chart
- text labels, adding / names
- bar chart, customizing
- main argument / Graphic customization arguments, main, xlab, and ylab
- xlab argument / Graphic customization arguments, main, xlab, and ylab
- ylab argument / Graphic customization arguments, main, xlab, and ylab
- xlim argument / Graphic customization arguments, xlim and ylim
- ylim argument / Graphic customization arguments, xlim and ylim
- col argument / Graphic customization arguments, Col
- barplot(...) function
- bar chart, creating / Time for action – creating a bar chart, What just happened?
- about / barplot(...), Time for action – customizing graphics, What just happened?, Time for action – customizing a bar chart
- arguments / width and space, horiz
- barplot(...) function, arguments
- names / names
- space / width and space
- width / width and space
- horiz / horiz
- battle data
- importing, into R / Time for action – data setup
- battle plan
- selecting / Have a go hero—choosing a battle plan
- battle strategy
- logistical considerations / Logistical considerations, Soldiers
- resource map / Resource map
- viability, assessing / Assessing viability, Time for action – assessing the viability of potential strategies
- beside argument
- stacked bar chart, creating / Time for action – customizing a bar chart, beside
- about / beside
- blogs
- about / Blogs
- R bloggers / R bloggers
- R Tutorial Series / R Tutorial Series
- box plot
- creating / Time for action – creating a box plot, What just happened?
- customizing / Time for action – customizing a box plot
- boxplot(...) function
- box plot, creating / Time for action – creating a box plot, What just happened?
- about / boxplot(...)
- breaks argument
- histogram's columns, separating / Time for action – customizing a histogram
- using / breaks
- built-in resources, R
- about / R's built-in resources
- help(...) command / Time for action – using R's help function, help(...)
- packages / Time for action – expanding R with packages
C
- .csv files / comma-separated values (csv) files
- c(...) function / Vectors, Pop quiz
- calculations / Calculations
- performing, on dataset / Performing a calculation on an entire dataset
- performing, on row / Performing a calculation on a row, column, or cell
- performing, on column / Performing a calculation on a row, column, or cell
- performing, on cell / Performing a calculation on a row, column, or cell
- categorical variables
- quantifying / Time for action – quantifying categorical variables
- causation / Interpreting correlations
- cell
- calculations, performing on / Performing a calculation on a row, column, or cell
- centering
- need for / What just happened?
- about / What just happened?
- cex argument / legend(...) with density, angle, and cex
- scatterplot's point markers, customizing / Time for action – customizing a scatterplot
- about / pch and cex
- chooseCRANmirror() command
- CRAN mirror window, opening / Time for action – expanding R with packages
- chooseCRANmirror() function
- using / Choose a CRAN mirror
- coef(object) command
- about / coef(object)
- using / coef(object)
- col argument
- about / Graphic customization arguments, Col
- rainbow colors, generating / Rainbow colors
- specific colors, generating / Specific colors
- column
- calculations, performing on / Performing a calculation on a row, column, or cell
- comment / Comments
- content, R workspace
- listing / Listing the contents of the R workspace
- saving / Saving the contents of the R workspace
- loading / Loading the contents of the R workspace
- cor() function / What just happened?
- cor(data) function
- cor(x,y) function / cor(x, y)
- correlations
- about / Time for action – correlating variables
- interpreting / Interpreting correlations
- correlations, interpreting
- about / Interpreting correlations
- examples / Interpreting correlations
- count / freq
- CRAN / Time for action – downloading and installing R, Choose a CRAN mirror
- CRAN mirror
- selecting / Choose a CRAN mirror
- about / Choose a CRAN mirror
- Crantastic!
- URL / Crantastic!
- about / Crantastic!
- custom functions
- creating / Time for action – creating custom functions, Time for action – model deployment
- example / function()
D
- data
- external data, importing / Time for action – importing external data, What just happened?
- accessing, within variables / Time for action – accessing data within variables, attach(variable) function, variable[row, column] notation
- initial reference, making / Time for action – making an initial inference from our data
- examining / Examining our data
- setting up / Time for action – first steps
- analyzing / Time for action – first steps
- exploring / Time for action – data exploration, What just happened?, Step 3: Explore your data
- importing / Step 2: Import your data (or load an existing workspace)
- dataset
- calculation, performing on / Performing a calculation on an entire dataset
- subset, creating / Time for action – creating a subset from a large dataset
- date() command / What just happened?
- date() function / Multi-argument functions
- density / freq
- density argument
- shade, changing for bar chart / Time for action – customizing a bar chart, density and angle
- about / density and angle, legend(...) with density, angle, and cex
- dependencies / Install a package
- detach(variable) function / attach(variable) function
- dichotomous / Have a go hero
- dir argument / What just happened?
E
- equivalency operator / Equivalency operators
- extended lines
- about / Extended lines
- formatting value / Extended lines
- external data
F
- fire model / Fire
- freq argument
- densities, plotting / Time for action – customizing a histogram
- using / freq
- function() command
- function arguments
- variable data, using / Using variable data in function arguments
G
- getwd() command / What just happened?, Time for action – first steps
- glm(formula, data) function
- using / Time for action – model development
- about / glm(...)
- graphic device
- creating / What just happened?
- graphics
- customizing / Time for action – customizing graphics, What just happened?
- exporting / Time for action – exporting graphics
- creating / What just happened?, Time for action – building a graphic
- axes, adding / Time for action – building a graphic, What just happened?
- data, adding / Time for action – building a graphic, What just happened?
- legend, adding / Time for action – building a graphic, What just happened?
- creating, with multiple visuals / Time for action – building a graphic with multiple visuals
- about / Graphics
- vertical lines / Horizontal and vertical lines
- horizontal lines / Horizontal and vertical lines
- nested functions / Nested functions
- graphic window
- about / Graphic window
- Quartz / Graphic window
- working / Graphic window
- graphics, customizing / Time for action – customizing graphics, What just happened?
- multiple graphics, displaying / Time for action – building a graphic with multiple visuals
H
- head to head model / Head to head
- height argument / barplot(...)
- help(...) command
- using / Time for action – using R's help function, help(...)
- executing, topic argument used / Time for action – using R's help function
- about / help(...)
- executing / help(...)
- features / help(...)
- hierarchical linear regression (HLR)
- models, comparing / Time for action – comparing and choosing models
- hist(...) function
- histogram, creating / Time for action – creating a histogram, What just happened?
- about / hist(...)
- histogram
- about / Time for action – creating a histogram
- creating / Time for action – creating a histogram, What just happened?
- customizing / Time for action – customizing a histogram
- horiz argument
- bar chart orientation, changing / Time for action – customizing a bar chart
- about / horiz
- working / horiz
I
- initial reference
- making, for data / Time for action – making an initial inference from our data
- install.packages() command
- package window, opening / Time for action – expanding R with packages, Install a package
- installation, R
- about / Time for action – downloading and installing R
- CRAN link, clicking / Time for action – downloading and installing R
- CRAN link, displaying / Time for action – downloading and installing R
- installation, R-2.11.1.pkg
- Mac OS X 10.5, used / Example: R 2.11.1 Mac OS X 10.5+ installation wizard demonstration
- interaction effects / Time for action – modelling interactions
- interaction variable
- about / Time for action – modelling interactions
- creating / Time for action – modelling interactions, What just happened?
- incorporating, in regression model / Time for action – modelling interactions, What just happened?
- interpreting / Interpreting interaction variables
- interquartile range / range
L
- labels argument
- percentages, adding to pie chart / Time for action – customizing a pie chart
- legend
- adding, to bar chart / Time for action – customizing a bar chart, legend(...) with density, angle, and cex
- adding, to scatterplot / Time for action – customizing a scatterplot
- adding, to pie chart / Time for action – customizing a pie chart, What just happened?
- adding, to graphics / Time for action – building a graphic, What just happened?
- legend(...) function
- about / legend(...), legend(...) with density, angle, and cex
- arguments / legend(...)
- format / legend(...)
- example / legend(...), legend(...)
- using / legend(...)
- legend(...) function, arguments
- x position / legend(...)
- y position / legend(...)
- legend / legend(...)
- fill / legend(...)
- length(object) command / Rainbow colors
- library(...) function
- package, loading / Time for action – expanding R with packages, Load the package
- linear regression model
- interpreting / Interpreting a linear regression model
- line chart
- about / Time for action – creating a line chart
- creating / Time for action – creating a line chart, What just happened?
- customizing / Time for action – customizing a line chart
- additional data, incorporating / Time for action – customizing a line chart
- displaying, in graphic window / Time for action – customizing a line chart
- lines(...) function, using / Time for action – customizing a line chart
- legend, adding / Time for action – customizing a line chart
- lwd argument, using / lwd
- lines / Lines
- lines(...) function
- using / Time for action – customizing a line chart
- about / lines(...)
- arguments / lines(...)
- syntax / lines(...)
- example / lines(...)
- lines(...) function, arguments
- x / lines(...)
- y / lines(...)
- type / lines(...)
- col / lines(...)
- lm(formula, data) function / lm(formula, data), glm(...)
- load(file) function / Time for action – managing the R workspace, Loading the contents of the R workspace, Time for action – making an initial inference from our data
- logistics
- considering / Logistical considerations
- logistics, considering
- about / Logistical considerations
- gold / Gold
- provisions / Provisions
- equipment / Equipment
- soldiers / Soldiers
- ls() command / Time for action – managing the R workspace
- ls() function / Time for action – managing the R workspace
- lwd argument
- line width, setting / Time for action – customizing a line chart
- using, in line chart / lwd
M
- Mac OS X 10.5
- R-2.11.1.pkg, installing / Example: R 2.11.1 Mac OS X 10.5+ installation wizard demonstration
- magic(n) function
- magic squares sequence, generating / Time for action – expanding R with packages, Use the package
- main argument / Graphic customization arguments, main, xlab, and ylab
- matrix(...) function
- mean(data) function / Using variable data in function arguments
- meanDurationAmbush variable / Duration of battle
- meanDurationFire variable / Duration of battle
- meanDurationHeadToHead variable / Duration of battle
- meanDurationSurround variable / Duration of battle
- model
- developing / Time for action – model development
- deplolying / Time for action – model deployment
- model summaries
- interpreting / Interpreting the model summaries
- moderation effect / Interpreting interaction variables
- multi-argument function
- about / Multi-argument functions
- multicollinearity / What just happened?
- multiple linear regression
N
- names argument
- text labels, adding to bar chart / names
- non-equivalency operator / Equivalency operators
- number-colon-number notation
- about / Number-colon-number notation
- benefits / Number-colon-number notation
O
- online communities
- R-help mailing list / R-help mailing list
- online resources, R
- websites / Websites, Quick-R
- blogs / R Tutorial Series
- online communities / Online communities
- output / Output
P
- packages
- about / Time for action – expanding R with packages
- CRAN mirror, selecting / Choose a CRAN mirror
- installing / Install a package
- loading / Load the package
- using / Use the package
- par(mfcol) command
- about / par(mfcol)
- using / par(mfcol)
- paste(...) function
- arguments / Custom labels
- about / Custom labels
- syntax / Custom labels
- paste(...) function, arguments
- originalValues / Custom labels
- appendText / Custom labels
- sep / Custom labels
- pch argument
- scatterplot's point markers, customizing / Time for action – customizing a scatterplot
- about / pch and cex
- pie(...) function
- pie chart, creating / Time for action – creating a pie chart
- about / pie(...)
- pie chart
- about / Time for action – creating a pie chart
- creating / Time for action – creating a pie chart
- customizing / Time for action – customizing a pie chart
- legend, adding / Time for action – customizing a pie chart, What just happened?
- plot(...) function
- scatterplot, creating / Time for action – creating a scatterplot, What just happened?
- relationship, exploring among dataset / Multiple scatterplots
- line chart, creating / Time for action – creating a line chart, What just happened?
- type argument / type
- about / Number-colon-number notation
- using / Time for action – building a graphic, What just happened?
- points(...) function
- relationships, adding / Time for action – customizing a scatterplot
- arguments / points(...)
- executing / points(...)
- about / points(...)
- syntax / points(...)
- points(...) function, arguments
- x / points(...)
- y / points(...)
- type / points(...)
- col / points(...)
- predictions
- resource constraints, incorporating into / Time for action – incorporating resource constraints into predictions
- probabilitySuccessAmbush variable / Successfully executed
- probabilitySuccessFire variable / Successfully executed
- probabilitySuccessHeadToHead variable / Successfully executed
- probabilitySuccessSurround variable / Successfully executed
- probability values
- calculating / Successfully executed
Q
- q() command / Time for action – managing the R workspace
- Quartz / Graphic window
- Quick-R
R
- R
- about / What is R?
- URL / What is R?
- benefits / What are the benefits of using R?
- need for / Why should I use R?
- homepage, URL / Time for action – downloading and installing R
- commands, issuing / Time for action – issuing your first R command
- working directory, setting / Time for action – setting your R working directory, Time for action – making an initial inference from our data
- Zhuge Liang's magic square, deciphering / Deciphering Zhuge Liang's magic square
- 4x4 Magic Square puzzle, solving / Time for action – solving the first 4x4 magic square
- external data, importing / Time for action – importing external data, What just happened?
- variables, creating / Time for action – creating and calling variables, What just happened?
- variables, calling / Time for action – creating and calling variables, What just happened?
- data, accessing within variables / Time for action – accessing data within variables, attach(variable) function, variable[row, column] notation
- workspace, managing / Time for action – managing the R workspace
- quitting / Quitting R
- initial reference, making for data / Time for action – making an initial inference from our data
- regression models / Regression, Review of models
- function() command / Time for action – creating custom functions
- battle data, importing / Time for action – data setup
- bar chart, creating / Time for action – creating a bar chart, What just happened?
- graphics, exporting / Time for action – exporting graphics
- bar chart, customizing / Time for action – customizing a bar chart
- help(...) command, using / Time for action – using R's help function, help(...)
- expanding, with packages / Time for action – expanding R with packages
- R, analyzing
- about / The common steps to all R analyses
- working directory, setting up / Step 1: Set your working directory
- data, importing / Step 2: Import your data (or load an existing workspace)
- data, exploring / Step 3: Explore your data
- console files, saving / Step 5: Save your workspace and console files
- workspace, saving / Step 5: Save your workspace and console files
- R, benefits
- about / What are the benefits of using R?
- free / What are the benefits of using R?
- cross-platform / What are the benefits of using R?
- open source / What are the benefits of using R?
- programmable / What are the benefits of using R?
- extendable / What are the benefits of using R?
- graphical / What are the benefits of using R?
- community-supported / What are the benefits of using R?
- R, fundamental elements
- lines / Lines
- comment / Comments
- calculations / Calculations
- output / Output
- R, installing
- about / Time for action – downloading and installing R
- CRAN link, clicking / Time for action – downloading and installing R
- CRAN link, displaying / Time for action – downloading and installing R
- R-2.11.1.pkg, installing
- Mac OS X 10.5, used / Example: R 2.11.1 Mac OS X 10.5+ installation wizard demonstration
- R-help mailing list
- about / R-help mailing list
- URL / R-help mailing list
- rainbow(...) function / Rainbow colors, legend(...)
- range(data) function / Ranges
- range argument
- whisker length, altering for box / Time for action – customizing a box plot
- about / range
- Rating value / Rating
- ratioWeiShuSoldiersAmbush variable / Number of Wei soldiers
- ratioWeiShuSoldiersFire variable / Number of Wei soldiers
- ratioWeiShuSoldiersHeadToHead variable / Number of Wei soldiers
- ratioWeiShuSoldiersSurround variable / Number of Wei soldiers
- R bloggers
- about / R bloggers
- URL / R bloggers
- R command
- R console
- visualizing / Visualizing the R console
- versus R workspace / Distinguishing between the R console and workspace
- saving / Saving the R console
- read.csv(file) command
- about / read.csv(file)
- resource file, reading into R / read.csv(file)
- read.table(...) function
- about / read.table(...)
- arguments / read.table(...)
- read.table(...) function, arguments
- file / read.table(...)
- header / read.table(...)
- sep / read.table(...)
- regression equation
- format / Linear model output
- regression line / abline(...)
- regression models
- about / Regression, Review of models
- simple linear regression / Time for action – modelling with simple linear regression
- selecting / Time for action – comparing and choosing models
- comparing / Time for action – comparing and choosing models
- head to head / Head to head
- surround / Surround
- ambush / Ambush
- fire / Fire
- probability values, calculating / Successfully executed
- outcomes, calculating from / Time for action – calculating outcomes from regression models
- resource-focused custom functions
- resource constraints
- incorporating, into predictions / Time for action – incorporating resource constraints into predictions
- resource map / Resource map
- R Graph Gallery
- URL / R Graph Gallery
- about / R Graph Gallery
- R Help window / Time for action – using R's help function
- round(x, digits) function / Custom labels
- row
- calculations, performing on / Performing a calculation on a row, column, or cell
- R Programming wikibook
- about / R Programming wikibook
- URL / R Programming wikibook
- R Project for Statistical Computing
- R Seek
- R Tutorial Series
- URL / R Tutorial Series
- about / R Tutorial Series
- R workspace
- managing / Time for action – managing the R workspace
- contents, listing / Listing the contents of the R workspace
- contents, saving / Saving the contents of the R workspace
- contents, loading / Loading the contents of the R workspace
- versus R console / Distinguishing between the R console and workspace
- saving / Step 5: Save your workspace and console files
S
- save.image(file) command / Step 5: Save your workspace and console files
- save.image(file) function / Time for action – managing the R workspace, Loading the contents of the R workspace, Time for action – last steps
- scatterplot
- about / Time for action – creating a scatterplot, Time for action – customizing a scatterplot
- creating / Time for action – creating a scatterplot, What just happened?
- single scatterplot / Single scatterplot
- multiple scatterplot / Multiple scatterplots
- customizing / Time for action – customizing a scatterplot
- additional data, incorporating / Time for action – customizing a scatterplot
- displayong, in graphic window / Time for action – customizing a scatterplot
- points, adding / Time for action – customizing a scatterplot
- legend, adding / Time for action – customizing a scatterplot
- sd(data) function
- using / Standard deviations
- about / Standard deviations
- search engines
- about / Search engines
- R Seek / R Seek
- Google / Google
- setwd(dir) function / What just happened?, Time for action – importing external data, Time for action – first steps
- simple linear regression
- space argument / width and space
- standard deviation / Standard deviations
- subset
- creating, from dataset / Time for action – creating a subset from a large dataset
- subset(data, ...) function / Time for action – creating a subset from a large dataset, Equivalency operators, subset(data, ...)
- SuccessfullyExecuted variable / Surround
- summary(object) function / summary(object)
- using / Linear model summary, What just happened?, coef(object)
- about / Step 3: Explore your data
- summary output
- R-squared / Linear model summary
- p-value / Linear model summary
- interpreting / Interpreting the summary output
- summary statistics
- deriving / Time for action – deriving summary statistics
- need for / Why use summary statistics?
- examining / Time for action – data exploration, What just happened?
- sunflowerplot(...) function
- using / Have a go hero
- surround model / Surround
T
- topic argument
- help(...), executing / Time for action – using R's help function
- type argument / type
U
- update.packages() command / Load the package
V
- variable$column notation / variable$column notation
- variable-argument function
- about / Variable-argument functions
- anova(object, ...) / anova(object, ...)
- variable data
- manipulating / Time for action – manipulating variable data
- using, in function arguments / Using variable data in function arguments
- variables
- creating / Time for action – creating and calling variables, What just happened?
- calling / Time for action – creating and calling variables, What just happened?
- data, accessing within / Time for action – accessing data within variables, attach(variable) function, variable[row, column] notation
- variable calculation, saving / Saving a variable calculation into a new variable, Pop quiz
- categorical variables, quantifying / Time for action – quantifying categorical variables
- overwriting / Overwriting variables
- correlating / Time for action – correlating variables
- interaction variables / Time for action – modelling interactions
- variable[row, column] notation / variable[row, column] notation
- vector variable / Vectors
- viability
W
- websites
- R Project for Statistical Computing / The R Project for Statistical Computing
- Quick-R / Quick-R
- R Programming wikibook / R Programming wikibook
- R Graph Gallery / R Graph Gallery
- Crantastic! / Crantastic!
- width argument / width and space
- working directory
- setting / Time for action – setting your R working directory, What just happened?
- about / What just happened?
- setting up / Step 1: Set your working directory
X
- 4x4 Magic Square puzzle
- xlab argument / Graphic customization arguments, main, xlab, and ylab
- xlim argument / Graphic customization arguments, xlim and ylim, width and space
Y
- ylab argument / Graphic customization arguments, main, xlab, and ylab
- ylim argument / Graphic customization arguments, xlim and ylim
Z
- Zhuge Liang's magic square puzzle
- about / Deciphering Zhuge Liang's magic square
- deciphering / Deciphering Zhuge Liang's magic square