Learn R Programming

rfordummies (version 0.1.6)

ch11: Print examples of chapter 11 of 'R for Dummies'.

Description

To print a listing of all examples of a chapter, use ch11(). To run all the examples of ch11(), use example(ch11).

Usage

ch11()

Arguments

See Also

toc

Other Chapters: ch01(), ch02(), ch03(), ch04(), ch05(), ch06(), ch07(), ch08(), ch09(), ch10(), ch12(), ch13(), ch14(), ch15(), ch16(), ch17(), ch18(), ch19(), ch20()

Examples

Run this code
# NOT RUN {
if (interactive()) {
# Chapter 11 - Getting Help


# Finding Information in the R Help Files

## When you know exactly what you're looking for

#?date

## When you don't know exactly what you're looking for

#??date


# Searching the Web for Help with R

# }
# NOT RUN {
RSiteSearch("cluster analysis")
# }
# NOT RUN {
# }
# NOT RUN {
install.packages("sos")
# }
# NOT RUN {
library("sos")
# }
# NOT RUN {
findFn("cluster")
# }
# NOT RUN {
# Getting Involved in the R Community

## Using the R mailing lists

## Discussing R on Stack Overflow and Stack Exchange

## Tweeting about R

# Making a Minimal Reproducible Example

dput(cars[1:4, ])

## Creating sample data with random values

set.seed(1)
x <- rnorm(5)
x

cards <- c(1:9, "J", "Q", "K", "A")
suits <- c("Spades", "Diamonds", "Hearts", "Clubs")
deck <- paste(rep(suits, each=13), cards)
set.seed(123)
sample(deck, 7)

set.seed(5)
sample(LETTERS[1:3], 12, replace=TRUE)

set.seed(42)
dat <- data.frame(
   x = sample(1:5),
   y = sample(c("yes", "no"), 5, replace = TRUE)
)
dat

dput(cars[1:4, ])

## Producing minimal code

## Providing the necessary information

sessionInfo()
}
# }

Run the code above in your browser using DataLab