Skip to content

Commit

Permalink
Update chapter03.qmd
Browse files Browse the repository at this point in the history
Minor typos
  • Loading branch information
carlosarcila authored Dec 1, 2023
1 parent 14466db commit db9dbd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/chapter03.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ you need to specify the encoding (usually UTF-8).
However, both Python and R also allow you to work with the raw data
(e.g. before decoding) in the form of *bytes* (Python) or *raw* (R) data,
which is sometimes necessary if there are encoding problems.
This is shown briefly in the bottom part of *var4*.
This is shown briefly in the bottom part of example [-@exm-var4].
Note that while R shows the underlying hexadecimal byte values of the raw data (so 54 is `T`, 68 is `h` and so on) and Python
displays the bytes as text characters, in both cases the underlying data type is the same: raw (non-decoded) bytes.

Expand Down Expand Up @@ -1459,16 +1459,16 @@ more insights into R and Python, respectively. In the next chapter, we
will go deeper into the world of code in order to learn how and why
you should re-use existing code, what to do if you get stuck during your
programming journey and what are the best practices when coding.

:::
[^1]: In both R and Python, the equals
sign (`=`) can be used to assign values. In R, however, the
traditional way of doing this is using an arrow (`<-`). In
this book we will use the equals sign for assignment in both
languages, but remember that for R, `x=10` and
`x<-10` are essentially the same.

[^2]: This is related to the
reason why Python starts counting with zero. If you are interested
in this, have a look at [www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html](https://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html)

[^3]: Newer versions of Python actually do remember the order in which items are inserted into a dictionary. However, for the purpose of this introduction, you can assume that you hardly ever care about the order of elements in a dictionary.

0 comments on commit db9dbd8

Please sign in to comment.