Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
b4b649bccb50f7ccb28876fa9d22efc4
mooc-rr
Commits
7e60ad71
Commit
7e60ad71
authored
Mar 23, 2020
by
Pe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ajout de la fonction round pour arrondir à 2 chiffres signicatifs
parent
2f09639d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
exercice_fr.Rmd
module2/exo2/exercice_fr.Rmd
+4
-3
No files found.
module2/exo2/exercice_fr.Rmd
View file @
7e60ad71
...
@@ -18,9 +18,9 @@ liste = c(14.0, 7.6, 11.2, 12.8, 12.5, 9.9, 14.9, 9.4, 16.9, 10.2, 14.9, 18.1, 7
...
@@ -18,9 +18,9 @@ liste = c(14.0, 7.6, 11.2, 12.8, 12.5, 9.9, 14.9, 9.4, 16.9, 10.2, 14.9, 18.1, 7
1. Quelle est la moyenne ?
1. Quelle est la moyenne ?
```{r}
```{r}
mean(liste
)
round(mean(liste), 2
)
```
```
La fonction round(x, digits =2) permet d'afficher 2 chiffres significatifs
2. Quel est le minimum ?
2. Quel est le minimum ?
```{r}
```{r}
min(liste)
min(liste)
...
@@ -38,8 +38,9 @@ median(liste)
...
@@ -38,8 +38,9 @@ median(liste)
5. Quel est l'écart-type ?
5. Quel est l'écart-type ?
```{r}
```{r}
sd(liste
)
round(sd(liste),2
)
```
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment