Skip to content

Commit

Permalink
Merge pull request #134 from OxfordIHTM/dev
Browse files Browse the repository at this point in the history
edit session 2
  • Loading branch information
ernestguevarra authored Oct 12, 2024
2 parents c95554f + 4f08016 commit d8d2d07
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@
/session*_files/

README.html

/.quarto/
12 changes: 10 additions & 2 deletions session2.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ In R, try to answer the following questions:

Logical operators are used to carry out Boolean operations like AND, OR etc.

```{r, echo = FALSE}
operator <- c("!", "&", "&&", "\\|", "\\|\\|")
```{r, echo = FALSE, eval = FALSE}
operator <- c("!", "&", "&&", "|", "||")
description <- c("Logical NOT", "Element-wise logical AND", "Logical AND", "Element-wise logical OR", "Logical OR")
data.frame(operator, description) |>
Expand All @@ -224,6 +224,14 @@ data.frame(operator, description) |>
)
```

Operator | Description
:--- | :---
! | Logical NOT
& | Element-wise logical AND
&& | Logical AND
&#124; | Element-wise logical OR
&#124;&#124; | Logical OR

---

# Logical operators - application
Expand Down

0 comments on commit d8d2d07

Please sign in to comment.