Skip to content

Commit

Permalink
Update 5.function.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lkhamvongsa authored May 23, 2024
1 parent acddc73 commit f0a0e80
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions content/language/r/tutorials/1.Preambule/5.function.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ sum(17, 15)
---
consigne: "Utilisez la fonction `ls()` avec en lui passant l'argument `pattern='a'` pour lister l'ensemble des objets en mémoire possédant un 'a' dans leur noms. Stockez le résultat dans une variable nommée 'z'."
code: |
abc <- 3
bla <- 1
foo <- 2
bar <- 43
toto <- 56
tutu <- 23
var <- 7
abc <- 3
bla <- 1
foo <- 2
bar <- 43
toto <- 56
tutu <- 23
var <- 7
solution : |
abc <- 3
bla <- 1
foo <- 2
bar <- 43
toto <- 56
tutu <- 23
var <- 7
z <- ls(pattern='a')
abc <- 3
bla <- 1
foo <- 2
bar <- 43
toto <- 56
tutu <- 23
var <- 7
z <- ls(pattern='a')
---
::

Expand Down Expand Up @@ -71,10 +71,10 @@ class(y)
---
consigne: "En utilisant la fonction `class()`, stockez le type de x dans z."
code: |
x <- matrix()
x <- matrix()
solution: |
x <- matrix()
z <- class(x)
x <- matrix()
z <- class(x)
---
::

Expand Down

0 comments on commit f0a0e80

Please sign in to comment.