Skip to content

Commit

Permalink
updated loop slides
Browse files Browse the repository at this point in the history
  • Loading branch information
RedondoMA committed Oct 17, 2024
1 parent 41f7e63 commit 9b0ece2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slide_r_elements_4.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ One way to repeat an action is to use the **for-loop**.

This is the general syntax:

```{r for.loop.general, eval=FALSE, echo=TRUE}
```
for (var in seq) {
expr
}
Expand Down Expand Up @@ -286,7 +286,7 @@ In R, we use the `if` clause for this purpose.

This is the general syntax:

```{r if.sintax, eval=F, echo=T}
```
if (condition) {
expr
}
Expand Down

0 comments on commit 9b0ece2

Please sign in to comment.