From 41e84491bf4df7b864cc42d2d8bf997b6a06db75 Mon Sep 17 00:00:00 2001 From: Peter Hurford Date: Wed, 16 Dec 2015 10:39:26 -0600 Subject: [PATCH 1/3] Typofix: Juli -> Julia --- intro.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intro.Rmd b/intro.Rmd index 587c35f..fcabdd4 100644 --- a/intro.Rmd +++ b/intro.Rmd @@ -71,7 +71,7 @@ Another class of big data problem consists of many small data problems. Each ind ### Python -In this book, you won't learn anything about Python, Juli, or any other programming language useful for data science. This isn't because we think these tools are bad. They're not! And in practice, most data science teams use a mix of languages, often at least R and Python. +In this book, you won't learn anything about Python, Julia, or any other programming language useful for data science. This isn't because we think these tools are bad. They're not! And in practice, most data science teams use a mix of languages, often at least R and Python. However, we strongly believe that it's best to master one tool at a time. You will get better faster if you dive deep, rather than spreading yourself thinly over many topics. This doesn't mean you should be only know one thing, just that you'll generally learn faster if you stick to one thing at a time. From 1c37fa049338b03cc00324c46e4e51b927df34c5 Mon Sep 17 00:00:00 2001 From: Kirill Sevastyanenko Date: Wed, 16 Dec 2015 18:25:30 -0500 Subject: [PATCH 2/3] Update lists.Rmd I would imagine this was the intention --- lists.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lists.Rmd b/lists.Rmd index 8350760..aedf831 100644 --- a/lists.Rmd +++ b/lists.Rmd @@ -49,7 +49,7 @@ x <- list(1, 2, 3) str(x) x_named <- list(a = 1, b = 2, c = 3) -str(x) +str(x_named) ``` Unlike atomic vectors, `lists()` can contain a mix of objects: From 43978e440569b27383adb0f52ca0a652f44c1272 Mon Sep 17 00:00:00 2001 From: Kirill Sevastyanenko Date: Thu, 17 Dec 2015 11:29:47 -0500 Subject: [PATCH 3/3] Update lists.Rmd typo --- lists.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lists.Rmd b/lists.Rmd index 8350760..4a5a722 100644 --- a/lists.Rmd +++ b/lists.Rmd @@ -541,7 +541,7 @@ You'll see an example of this in the next section, as `transpose()` is particula It's called transpose by analogy to matrices. When you subset a transposed matrix, you switch indices: `x[i, j]` is the same as `t(x)[j, i]`. It's the same idea when transposing a list, but the subsetting looks a little different: `x[[i]][[j]]` is equivalent to `transpose(x)[[j]][[i]]`. Similarly, a transpose is its own inverse so `transpose(transpose(x))` is equal to `x`. -Tranpose is also useful when working with JSON apis. Many JSON APIs represent data frames in a row-based format, rather than R's column-based format. `transpose()` makes it easy to switch between the two: +Transpose is also useful when working with JSON apis. Many JSON APIs represent data frames in a row-based format, rather than R's column-based format. `transpose()` makes it easy to switch between the two: ```{r} df <- dplyr::data_frame(x = 1:3, y = c("a", "b", "c"))