Skip to content

Commit 1d4619d

Browse files
authored
Merge pull request rstudio-education#14 from psychometrician/patch-1
removing \ and replace 'pipe' with |
2 parents ab9935e + d37827e commit 1d4619d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modifying.rmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ Table: (\#tab:boole) Boolean operators
414414
|Operator|Syntax|Tests
415415
|--------|------|-----
416416
|`&`|`cond1 & cond2`|Are both `cond1` and `cond2` true?
417-
|`\|`|`cond1 pipe cond2`|Is one or more of `cond1` and `cond2` true?
417+
|`|`|`cond1 | cond2`|Is one or more of `cond1` and `cond2` true?
418418
|`xor`|`xor(cond1, cond2)`|Is exactly one of `cond1` and `cond2` true?
419419
|`!`|`!cond1`|Is `cond1` false? (e.g., `!` flips the results of a logical test)
420420
|`any`|`any(cond1, cond2, cond3, ...)`|Are any of the conditions true?
@@ -687,4 +687,4 @@ You can modify values in place inside an R object when you combine R's notation
687687

688688
When you work with large data sets, modifying and retrieving values creates a logistical problem of its own. How can you search through the data to find the values that you want to modify or retrieve? As an R user, you can do this with logical subsetting. Create a logical test with logical and Boolean operators and then use the test as an index in R's bracket notation. R will return the values that you are looking for, even if you do not know where they are.
689689

690-
Retrieving individual values will not be your only concern as an R programmer. You'll also need to retrieve entire data sets themselves; for example, you may call one in a function. [Environments] will teach you how R looks up and saves data sets and other R objects in its environment system. You'll then use this knowledge to fix the `deal` and `shuffle` functions.
690+
Retrieving individual values will not be your only concern as an R programmer. You'll also need to retrieve entire data sets themselves; for example, you may call one in a function. [Environments] will teach you how R looks up and saves data sets and other R objects in its environment system. You'll then use this knowledge to fix the `deal` and `shuffle` functions.

0 commit comments

Comments
 (0)