A Report Generated by knitr

This report is automatically generated with the R package knitr (version `1.5`) .

    # 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
    RSiteSearch("cluster analysis")

    ## A search query has been submitted to http://search.r-project.org
    ## The results page should open in your browser shortly

    install.packages("sos")

    ## Installing package into 'C:/Users/Andrie/Documents/R/win-library/3.0'
    ## (as 'lib' is unspecified)

    ## Warning in install.packages :
    ##   package 'sos' is in use and will not be installed

    library("sos")
    findFn("cluster")

    ## found 4392 matches;  retrieving 20 pages, 400 matches.
    ## 2 3 4 5 6 7 8 9 10
    ## 11 12 13 14 15 16 17 18 19 20
    ##
    ## Downloaded 354 links in 170 packages.

    # 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, ])

    ## structure(list(speed = c(4, 4, 7, 7), dist = c(2, 10, 4, 22)), .Names = c("speed",
    ## "dist"), row.names = c(NA, 4L), class = "data.frame")

    ## Creating sample data with random values
    set.seed(1)
    x <- rnorm(5)
    x

    ## [1] -0.6265  0.1836 -0.8356  1.5953  0.3295

    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)

    ## [1] "Diamonds 2" "Clubs 2"    "Diamonds 8" "Clubs 5"    "Clubs 7"    "Spades 3"
    ## [7] "Diamonds K"

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

    ##  [1] "A" "C" "C" "A" "A" "C" "B" "C" "C" "A" "A" "B"

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

    ##   x   y
    ## 1 5  no
    ## 2 4  no
    ## 3 1 yes
    ## 4 2  no
    ## 5 3  no

    dput(cars[1:4, ])

    ## structure(list(speed = c(4, 4, 7, 7), dist = c(2, 10, 4, 22)), .Names = c("speed",
    ## "dist"), row.names = c(NA, 4L), class = "data.frame")

    ## Producing minimal code Providing the necessary information
    sessionInfo()

    ## R version 3.0.2 (2013-09-25)
    ## Platform: x86_64-w64-mingw32/x64 (64-bit)
    ##
    ## locale:
    ## [1] LC_COLLATE=English_United Kingdom.1252  LC_CTYPE=English_United Kingdom.1252
    ## [3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C
    ## [5] LC_TIME=English_United Kingdom.1252
    ##
    ## attached base packages:
    ## [1] stats     graphics  grDevices utils     datasets  methods   base
    ##
    ## other attached packages:
    ##  [1] BiocInstaller_1.12.1 ggplot2_0.9.3.1      reshape2_1.2.2       sos_1.3-8
    ##  [5] brew_1.0-6           stringr_0.6.2        knitr_1.5            plyr_1.8
    ##  [9] Revobase_7.1.0       RevoMods_7.1.0       RevoScaleR_7.1.0     lattice_0.20-27
    ## [13] rpart_4.1-2
    ##
    ## loaded via a namespace (and not attached):
    ##  [1] codetools_0.2-8    colorspace_1.2-4   dichromat_2.0-0    digest_0.6.4
    ##  [5] evaluate_0.5.1     foreach_1.4.1      formatR_0.10       fortunes_1.5-2
    ##  [9] grid_3.0.2         gtable_0.1.2       highr_0.3          iterators_1.0.6
    ## [13] labeling_0.2       MASS_7.3-29        munsell_0.4.2      proto_0.3-10
    ## [17] RColorBrewer_1.0-5 scales_0.2.3       tools_3.0.2

The R session information (including the OS info, R version and all packages used):

    sessionInfo()

    ## R version 3.0.2 (2013-09-25)
    ## Platform: x86_64-w64-mingw32/x64 (64-bit)
    ##
    ## locale:
    ## [1] LC_COLLATE=English_United Kingdom.1252  LC_CTYPE=English_United Kingdom.1252
    ## [3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C
    ## [5] LC_TIME=English_United Kingdom.1252
    ##
    ## attached base packages:
    ## [1] stats     graphics  grDevices utils     datasets  methods   base
    ##
    ## other attached packages:
    ##  [1] BiocInstaller_1.12.1 ggplot2_0.9.3.1      reshape2_1.2.2       sos_1.3-8
    ##  [5] brew_1.0-6           stringr_0.6.2        knitr_1.5            plyr_1.8
    ##  [9] Revobase_7.1.0       RevoMods_7.1.0       RevoScaleR_7.1.0     lattice_0.20-27
    ## [13] rpart_4.1-2
    ##
    ## loaded via a namespace (and not attached):
    ##  [1] codetools_0.2-8    colorspace_1.2-4   dichromat_2.0-0    digest_0.6.4
    ##  [5] evaluate_0.5.1     foreach_1.4.1      formatR_0.10       fortunes_1.5-2
    ##  [9] grid_3.0.2         gtable_0.1.2       highr_0.3          iterators_1.0.6
    ## [13] labeling_0.2       MASS_7.3-29        munsell_0.4.2      proto_0.3-10
    ## [17] RColorBrewer_1.0-5 scales_0.2.3       tools_3.0.2

    Sys.time()

    ## [1] "2014-05-13 15:06:04 BST"