diff --git a/01-rstudio-intro.html b/01-rstudio-intro.html index 97313d322..b72730757 100644 --- a/01-rstudio-intro.html +++ b/01-rstudio-intro.html @@ -930,7 +930,7 @@
The following can be used as R variables:
One way of answering this question in R is to use the
>
to set up the following:
We can use the rm
command to accomplish this task
We can use the install.packages()
command to install the
required packages.
By keeping everything in a column the same, we allow ourselves to make simple assumptions about our data; if you can interpret one entry @@ -1041,7 +1041,7 @@
Show the content of any variable by typing its name.
In the chapter “Data types” we saw two functions that can show data types. One printed just a single word, the data type name. The other @@ -1112,7 +1112,7 @@
Scroll up to the section about the type hierarchy to review the available data types
@@ -1125,7 +1125,7 @@Revisit the hierarchy of data types when two different data types are combined.
@@ -1195,7 +1195,7 @@The functions to convert data types start with as.
. You
can look for the function further up in the manuscript or use the
@@ -1385,7 +1385,7 @@
You get the names of an object by wrapping the object name inside
names(...)
. Similarly, you get the data type of the names
@@ -1652,7 +1652,7 @@
letter_no <- 1:26 # or seq(1,26)
names(letter_no) <- LETTERS
@@ -1840,7 +1840,7 @@ Challenge 5
Solution to Challenge 5
-
+
R
@@ -2100,7 +2100,7 @@ Challenge 6
Solution to Challenge 6
-
+
What do you think will be the result of
length(matrix_example)
?
@@ -2144,7 +2144,7 @@ Challenge 7
Solution to Challenge 7
-
+
Make another matrix, this time containing the numbers 1:50, with 5
columns and 10 rows. Did the matrix
function fill your
@@ -2184,7 +2184,7 @@
Challenge 8
Solution to Challenge 8
-
+
R
@@ -2234,7 +2234,7 @@ OUTPUT<
-
+
Consider the R output of the matrix below:
diff --git a/06-data-subsetting.html b/06-data-subsetting.html
index 3a0239e15..73edbab0b 100644
--- a/06-data-subsetting.html
+++ b/06-data-subsetting.html
@@ -694,7 +694,7 @@ OUTPUT<
-
+
R
@@ -881,7 +881,7 @@ OUTPUT<
-
+
R
@@ -1134,7 +1134,7 @@ R
Solution to challenge 3
-
+
- The wrong way to do this problem is
countries==seAsia
. This gives a warning
@@ -1415,7 +1415,7 @@ OUTPUT<
-
+
D
@@ -1560,7 +1560,7 @@ R
Solution to challenge 5
-
+
R
@@ -1624,7 +1624,7 @@ R
Solution to challenge 6
-
+
R
@@ -1778,7 +1778,7 @@ R
Solution to challenge 7
-
+
Fix each of the following common data frame subsetting errors:
- Extract observations collected for the year 1957
@@ -1850,7 +1850,7 @@ Challenge 8
Solution to challenge 8
-
+
gapminder
is a data.frame so needs to be subsetted
on two dimensions. gapminder[1:20, ]
subsets the data to
diff --git a/14-tidyr.html b/14-tidyr.html
index 77655a64e..da0a8beca 100644
--- a/14-tidyr.html
+++ b/14-tidyr.html
@@ -464,7 +464,7 @@
Challenge 1
Solution to Challenge 1
-
+
The original gapminder data.frame is in an intermediate format. It is
not purely long since it had multiple observation variables
@@ -656,7 +656,7 @@
Challenge 2
Solution to Challenge 2
-
+
R
@@ -952,7 +952,7 @@ Challenge 3
Solution to Challenge 3
-
+
R
diff --git a/aio.html b/aio.html
index 06cb776a8..c9ab300db 100644
--- a/aio.html
+++ b/aio.html
@@ -1015,7 +1015,7 @@ R
Solution to challenge 1
-
+
The following can be used as R variables:
@@ -1300,7 +1300,7 @@ R
Solution to challenge 2
-
+
R
@@ -1354,7 +1354,7 @@ Challenge 3
Solution to challenge 3
-
+
One way of answering this question in R is to use the
>
to set up the following:
@@ -1393,7 +1393,7 @@ Challenge 4
Solution to challenge 4
-
+
We can use the rm
command to accomplish this task
@@ -1424,7 +1424,7 @@ Challenge 5
Solution to challenge 5
-
+
We can use the install.packages()
command to install the
required packages.
@@ -2766,7 +2766,7 @@ Discussion 1
Discussion 1
-
+
By keeping everything in a column the same, we allow ourselves to
make simple assumptions about our data; if you can interpret one entry
@@ -2996,7 +2996,7 @@
1. Print the data
Tip 1.1
-
+
Show the content of any variable by typing its name.
@@ -3029,7 +3029,7 @@ 2. Overview of the data types
Tip 1.2
-
+
In the chapter “Data types” we saw two functions that can show data
types. One printed just a single word, the data type name. The other
@@ -3071,7 +3071,7 @@
3. Which data type do we need?
Tip 1.3
-
+
Scroll up to the section about the type
hierarchy to review the available data types
@@ -3084,7 +3084,7 @@ Tip 1.3
-
+
- Weight is expressed on a continuous scale (real numbers). The R data
@@ -3118,7 +3118,7 @@
4. Correct the problematic value
Tip 1.4
-
+
Revisit the hierarchy of data types when two different data types are
combined.
@@ -3157,7 +3157,7 @@ 5. Convert the colum
-
+
The functions to convert data types start with as.
. You
can look for the function further up in the manuscript or use the
@@ -3348,7 +3348,7 @@
Challenge 2
Solution to Challenge 2
-
+
R
@@ -3578,7 +3578,7 @@ Challenge 3