Skip to content

Commit 24c2015

Browse files
committed
Update for fourth edition of the book
1 parent 31aa8b3 commit 24c2015

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+5095
-3007
lines changed

BioStatR.Rproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ UseSpacesForTab: Yes
99
NumSpacesForTab: 2
1010
Encoding: UTF-8
1111

12-
RnwWeave: Sweave
12+
RnwWeave: knitr
1313
LaTeX: pdfLaTeX
1414

1515
BuildType: Package

DESCRIPTION

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
Package: BioStatR
22
Type: Package
33
Title: Initiation à La Statistique Avec R
4-
Version: 4.0.0
5-
Date: 2022-11-28
4+
Version: 4.0.1
5+
Date: 2023-03-21
66
Depends: R (>= 2.10)
77
Imports: ggplot2
88
Authors@R: c(
99
person(given = "Frederic", family= "Bertrand", role = c("cre", "aut"), email = "[email protected]", comment = c(ORCID = "0000-0002-0837-8281")),
1010
person(given = "Myriam", family= "Maumy-Bertrand", role = c("aut"), email = "[email protected]", comment = c(ORCID = "0000-0002-4615-1512")))
1111
Author: Frederic Bertrand [cre, aut] (<https://orcid.org/0000-0002-0837-8281>), Myriam Maumy-Bertrand [aut] (<https://orcid.org/0000-0002-4615-1512>)
1212
Maintainer: Frederic Bertrand <[email protected]>
13-
Description: Datasets and functions for the book "Initiation à la Statistique avec R", F. Bertrand and M. Maumy-Bertrand (2022, ISBN:978-2100782826 Dunod, 4ème edition).
13+
Description: Datasets and functions for the book "Initiation à la Statistique avec R", F. Bertrand and M. Maumy-Bertrand (2022, ISBN:978-2100782826 Dunod, fourth edition).
1414
LazyLoad: yes
1515
LazyData: yes
1616
License: GPL-3

NEWS.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# BioStatR 4.0.1
2+
3+
* Update links to the webpage of the 4th edition of the book of the package. Update cover page image of the book. Update demo code. A few code fixes to cope with new CRAN requirements.
4+
15
# BioStatR 4.0.0
26

37
* Upgrade of the package for the fourth edition of the book. Update maintainer email address.

R/BioStatR-package.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
#' @name BioStatR
99
#' @docType package
1010
#' @references F. Bertrand, M. Maumy-Bertrand, Initiation à la Statistique avec
11-
#' R, 3ème edition, ISBN:9782100782826, Dunod, Paris, 2018.
11+
#' R, 4ème édition, ISBN:9782100847945, Dunod, Paris, 2023
1212
#' @references \emph{Initiation à la Statistique avec R}, Frédéric Bertrand,
13-
#' Myriam Maumy-Bertrand, 2018, ,
14-
#' \url{https://www.dunod.com/sciences-techniques/initiation-statistique-avec-r-cours-exemples-exercices-et-problemes-corriges-0},
13+
#' Myriam Maumy-Bertrand, 2023, ,
14+
#' \url{https://www.dunod.com/sciences-techniques/initiation-statistique-avec-r-cours-exemples-exercices-et-problemes-corriges-1},
1515
#' \url{https://github.com/fbertran/BioStatR/} et
1616
#' \url{https://fbertran.github.io/BioStatR/}
1717
#'

R/binom.ci.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#' @seealso \code{\link{binom.test}}, \code{\link{binom.ci}},
1919
#' \code{\link{poi.ci}}
2020
#' @references F. Bertrand, M. Maumy-Bertrand, Initiation à la Statistique avec
21-
#' R, Dunod, 3ème edition, 2018.
21+
#' R, Dunod, 4ème édition, 2023.
2222
#' @keywords univar
2323
#' @examples
2424
#'

R/cvar.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#' \url{http://www-irma.u-strasbg.fr/~mmaumy/}
1414
#' @seealso \code{\link{mean}}, \code{\link{sd}}
1515
#' @references F. Bertrand, M. Maumy-Bertrand, Initiation à la Statistique avec
16-
#' R, Dunod, 3ème edition, 2018.
16+
#' R, Dunod, 4ème édition, 2023.
1717
#' @keywords univar
1818
#' @examples
1919
#'

R/datasets.R

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#' \describe{ \item{Pays}{a factor with the some of the European
1414
#' countries as levels} \item{Duree}{weekly cumulative work duration} }
1515
#' @references F. Bertrand, M. Maumy-Bertrand, Initiation à la Statistique avec
16-
#' R, Dunod, 3ème edition, 2018.
16+
#' R, Dunod, 4ème édition, 2023.
1717
#' @keywords datasets
1818
#' @examples
1919
#'
@@ -41,7 +41,7 @@ NULL
4141
#' numeric vector} \item{espece}{a factor with levels \code{bignone},
4242
#' \code{glycine blanche}, \code{glycine violette} and \code{lauriers roses}} }
4343
#' @references F. Bertrand, M. Maumy-Bertrand, Initiation à la Statistique avec
44-
#' R, Dunod, 3ème edition, 2018.
44+
#' R, Dunod, 4ème édition, 2023.
4545
#' @keywords datasets
4646
#' @examples
4747
#'
@@ -69,7 +69,7 @@ NULL
6969
#' numeric vector} \item{espece}{a factor with levels \code{bignone},
7070
#' \code{glycine blanche}, \code{glycine violette} and \code{lauriers roses}} }
7171
#' @references F. Bertrand, M. Maumy-Bertrand, Initiation à la Statistique avec
72-
#' R, Dunod, 3ème edition, 2018.
72+
#' R, Dunod, 4ème édition, 2023.
7373
#' @keywords datasets
7474
#' @examples
7575
#'
@@ -99,7 +99,7 @@ NULL
9999
#' with levels \code{bignone}, \code{glycine blanche}, \code{glycine violette}
100100
#' and \code{lauriers roses}} }
101101
#' @references F. Bertrand, M. Maumy-Bertrand, Initiation à la Statistique avec
102-
#' R, Dunod, 3ème edition, 2018.
102+
#' R, Dunod, 4ème édition, 2023.
103103
#' @keywords datasets
104104
#' @examples
105105
#'
@@ -127,7 +127,7 @@ NULL
127127
#' \item{poids}{le poids de l'individu} \item{taille}{la
128128
#' hauteur de l'individu} }
129129
#' @references F. Bertrand, M. Maumy-Bertrand, Initiation à la Statistique avec
130-
#' R, Dunod, 3ème edition, 2018.
130+
#' R, Dunod, 4ème édition, 2023.
131131
#' @keywords datasets
132132
#' @examples
133133
#'

R/eta2.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#' Maumy-Bertrand\cr \email{myriam.maumy@@utt.fr}\cr
1414
#' \url{http://www-irma.u-strasbg.fr/~mmaumy/}
1515
#' @references F. Bertrand, M. Maumy-Bertrand, Initiation à la Statistique avec
16-
#' R, Dunod, 3ème edition, 2018.
16+
#' R, Dunod, 4ème édition, 2023.
1717
#' @keywords univar
1818
#' @examples
1919
#'

R/panel.hist.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#' \url{http://www-irma.u-strasbg.fr/~mmaumy/}
1414
#' @seealso \code{\link{pairs}}, \code{\link{hist}}
1515
#' @references F. Bertrand, M. Maumy-Bertrand, Initiation à la Statistique avec
16-
#' R, Dunod, 3ème edition, 2018.
16+
#' R, Dunod, 4ème édition, 2023.
1717
#' @keywords univar
1818
#' @examples
1919
#'

R/plotcdf2.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#' Maumy-Bertrand\cr \email{myriam.maumy@@utt.fr}\cr
2727
#' \url{http://www-irma.u-strasbg.fr/~mmaumy/}
2828
#' @references F. Bertrand, M. Maumy-Bertrand, Initiation à la Statistique avec
29-
#' R, Dunod, 3ème edition, 2018.
29+
#' R, Dunod, 4ème édition, 2023.
3030
#' @keywords univar
3131
#' @examples
3232
#'

R/poi.ci.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#' @seealso \code{\link{binom.test}}, \code{\link{binom.ci}},
1414
#' \code{\link{poi.ci}}
1515
#' @references F. Bertrand, M. Maumy-Bertrand, Initiation à la Statistique avec
16-
#' R, Dunod, 3ème edition, 2018.
16+
#' R, Dunod, 4ème édition, 2023.
1717
#' @keywords univar
1818
#' @examples
1919
#'

README.Rmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ knitr::opts_chunk$set(
2727
<!-- badges: end -->
2828

2929

30-
Le package BioStatR est un compagnon pour le livre [Initiation à la Statistique avec R](https://www.dunod.com/sciences-techniques/initiation-statistique-avec-r-cours-exemples-exercices-et-problemes-corriges-0).
30+
Le package BioStatR est un compagnon pour le livre [Initiation à la Statistique avec R](https://www.dunod.com/sciences-techniques/initiation-statistique-avec-r-cours-exemples-exercices-et-problemes-corriges-1).
3131

32-
[![ImageLivreR4ed](https://www.dunod.com/sites/default/files/styles/principal_desktop/public/thumbnails/image/9782100782826-001-X.jpeg)]
32+
[![ImageLivreR4ed](https://www.dunod.com/sites/default/files/styles/principal_desktop/public/thumbnails/image/9782100847945-001-X.jpeg)]
3333

3434
Ce site et les exemples qui y sont reproduits ont été créés par F. Bertrand and M. Maumy-Bertrand.
3535

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
<!-- badges: end -->
1919

2020

21-
Le package BioStatR est un compagnon pour le livre [Initiation à la Statistique avec R](https://www.dunod.com/sciences-techniques/initiation-statistique-avec-r-cours-exemples-exercices-et-problemes-corriges-0).
21+
Le package BioStatR est un compagnon pour le livre [Initiation à la Statistique avec R](https://www.dunod.com/sciences-techniques/initiation-statistique-avec-r-cours-exemples-exercices-et-problemes-corriges-1).
2222

23-
[![ImageLivreR4ed](https://www.dunod.com/sites/default/files/styles/principal_desktop/public/thumbnails/image/9782100782826-001-X.jpeg)]
23+
[![ImageLivreR4ed](https://www.dunod.com/sites/default/files/styles/principal_desktop/public/thumbnails/image/9782100847945-001-X.jpeg)]
2424

2525
Ce site et les exemples qui y sont reproduits ont été créés par F. Bertrand and M. Maumy-Bertrand.
2626

demo/Chapitre1.R

+12-32
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,26 @@
11
#' ---
2-
#' title: "Initiation \`a la statistique avec R, code et compl\'ements chapitre 1"
3-
#' author: "Fr\'ed\'eric Bertrand et Myriam Maumy-Bertrand"
4-
#' date: "04 octobre 2022"
2+
#' title: "Initiation \u00e0 la statistique avec R, code et compl\u00e9ments chapitre 1"
3+
#' author: "Fr\u00e9d\u00e9ric Bertrand et Myriam Maumy-Bertrand"
4+
#' date: "20 mars 2023"
55
#' ---
66

7-
#Chapitre 1
8-
#page 9
9-
q()
10-
#page 10
11-
?read.table
12-
help(read.table)
13-
help(package="package")
14-
example(plot)
15-
16-
#page 11
17-
help("read.table",help_type="html")
18-
help("read.table",help_type="text")
19-
help.start()
20-
21-
options(help_type="html")
22-
options(help_type="text")
23-
247
#Chapitre 1
258
#page 9
269
#q()
10+
?read.table
2711

2812
#page 10
29-
?read.table
3013
help(read.table)
31-
32-
#aide pour le package dont le nom est "stats"
33-
help(package="stats")
14+
#help(package="package")
3415
example(plot)
16+
help("read.table",help_type="html")
3517

3618
#page 11
37-
help("read.table",help_type="html")
3819
help("read.table",help_type="text")
3920
help.start()
4021
options(help_type="html")
4122
options(help_type="text")
23+
2+8
4224

4325
#page 12
4426
2+8
@@ -48,33 +30,31 @@ sqrt(4)
4830
#page 13
4931
#source(file="C://chemin//vers//nomdefichier//fichier.R",echo=TRUE)
5032
#source(file=".../repertoire/fichier.R",echo=TRUE)
51-
52-
#page 14
5333
#source(file="fichier.R",echo=TRUE)
5434
## Si "fichier.R" est dans le r\'epertoire de travail
5535

5636
# Exercice 1.1
5737
#page 18
5838
#install.packages("BioStatR")
39+
help(package="BioStatR")
5940
#install.packages("devtools")
6041
#library(devtools)
6142
#install_github("fbertran/BioStatR")
6243

63-
#page 19
64-
help(package="BioStatR")
65-
6644
# Exercice 1.2
6745
# 1)
6846
10:25
47+
48+
#page 19
6949
seq(from=10,to=25,by=1)
7050
seq(10,25,1)
7151
# 2)
7252
seq(from=20,to=40,by=5)
73-
74-
#page 20
7553
seq(20,40,5)
7654
# 3)
7755
rep(x=28,times=10)
56+
57+
#page 20
7858
rep(28,10)
7959

8060

0 commit comments

Comments
 (0)