Introduction to R and RStudio
-Last updated on 2024-07-02 | +
Last updated on 2024-08-06 | Edit this page
@@ -1109,7 +1109,7 @@OUTPUT< } else all.names } -<bytecode: 0x561d3e951d80> +<bytecode: 0x559ed2a8ed80> <environment: namespace:base>
What’s going on here?
@@ -1466,7 +1466,7 @@Key Points
Project Management With RStudio
- Last updated on 2024-07-02 |
+
Last updated on 2024-08-06 |
Edit this page
@@ -629,7 +629,7 @@ SH<
OUTPUT
--rw-r--r-- 1 runner docker 80K Jul 2 11:37 data/gapminder_data.csv
+-rw-r--r-- 1 runner docker 80K Aug 6 12:20 data/gapminder_data.csv
The file size is 80K.
Seeking Help
- Last updated on 2024-07-02 |
+
Last updated on 2024-08-06 |
Edit this page
@@ -594,8 +594,8 @@ OUTPUT<
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
-[1] compiler_4.4.1 tools_4.4.1 yaml_2.3.8 knitr_1.47
-[5] xfun_0.45 renv_1.0.7 evaluate_0.24.0
+[1] compiler_4.4.1 tools_4.4.1 yaml_2.3.10 knitr_1.48
+[5] xfun_0.46 renv_1.0.7 evaluate_0.24.0
Will print out your current version of R, as well as any packages you
have loaded. This can be useful for others to help reproduce and debug
@@ -628,7 +628,7 @@
Solution to Challenge 1
-
+
The c()
function creates a vector, in which all elements
are of the same type. In the first case, the elements are numeric, in
@@ -659,7 +659,7 @@
Solution to Challenge 2
-
+
To look at the help for the paste()
function, use:
@@ -769,7 +769,7 @@
Solution to Challenge 3
-
+
The standard R function for reading tab-delimited files with a period
decimal separator is read.delim(). You can also do this with
@@ -857,7 +857,7 @@
Key Points
Data Structures
- Last updated on 2024-07-02 |
+
Last updated on 2024-08-06 |
Edit this page
@@ -848,7 +848,7 @@
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
@@ -1075,7 +1075,7 @@
Tip 1.1
-
+
Show the content of any variable by typing its name.
@@ -1109,7 +1109,7 @@
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
@@ -1150,7 +1150,7 @@
Tip 1.3
-
+
Scroll up to the section about the type
hierarchy to review the available data types
@@ -1165,7 +1165,7 @@
Solution to Challenge 1.3
-
+
- Weight is expressed on a continuous scale (real numbers). The R data
type for this is “double” (also known as “numeric”).
@@ -1199,7 +1199,7 @@
Tip 1.4
-
+
Revisit the hierarchy of data types when two different data types are
combined.
@@ -1239,7 +1239,7 @@
Tip 1.5
-
+
The functions to convert data types start with as.
. You
can look for the function further up in the manuscript or use the
@@ -1431,7 +1431,7 @@
Solution to Challenge 2
-
+
R
@@ -1657,7 +1657,7 @@
Solution to Challenge 3
-
+
You get the names of an object by wrapping the object name inside
names(...)
. Similarly, you get the data type of the names
@@ -1702,7 +1702,7 @@
Solution to Challenge 4
-
+
letter_no <- 1:26 # or seq(1,26)
names(letter_no) <- LETTERS
@@ -1892,7 +1892,7 @@
Solution to Challenge 5
-
+
R
@@ -2154,7 +2154,7 @@
Solution to Challenge 6
-
+
What do you think will be the result of
length(matrix_example)
?
@@ -2200,7 +2200,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
@@ -2242,7 +2242,7 @@
Solution to Challenge 8
-
+
R
@@ -2294,7 +2294,7 @@
Solution to Challenge 9
-
+
Consider the R output of the matrix below:
Exploring Data Frames
- Last updated on 2024-07-02 |
+
Last updated on 2024-08-06 |
Edit this page
@@ -1184,7 +1184,7 @@ Key Points
Subsetting Data
- Last updated on 2024-07-02 |
+
Last updated on 2024-08-06 |
Edit this page
@@ -726,7 +726,7 @@
Solution to challenge 1
-
+
R
@@ -915,7 +915,7 @@
Solution to challenge 2
-
+
R
@@ -1170,7 +1170,7 @@
Solution to challenge 3
-
+
- The wrong way to do this problem is
countries==seAsia
. This gives a warning
@@ -1453,7 +1453,7 @@
Solution to challenge 4
-
+
D
@@ -1600,7 +1600,7 @@
Solution to challenge 5
-
+
R
@@ -1666,7 +1666,7 @@
Solution to challenge 6
-
+
R
@@ -1822,7 +1822,7 @@
Solution to challenge 7
-
+
Fix each of the following common data frame subsetting errors:
- Extract observations collected for the year 1957
@@ -1896,7 +1896,7 @@
Solution to challenge 8
-
+
Creating Publication-Quality Graphics with ggplot2
- Last updated on 2024-07-02 |
+
Last updated on 2024-08-06 |
Edit this page
@@ -526,7 +526,7 @@
Solution to challenge 1
-
+
Here is one possible solution:
@@ -567,7 +567,7 @@
Solution to challenge 2
-
+
The solution presented below adds color=continent
to the
call of the aes
function. The general trend seems to
@@ -678,7 +678,7 @@
Solution to challenge 3
-
+
The lines now get drawn over the points!
@@ -809,7 +809,7 @@
Solution to challenge 4a
-
+
Here a possible solution: Notice that the color
argument
is supplied outside of the aes()
function. This means that
@@ -853,7 +853,7 @@
Solution to challenge 4b
-
+
Here is a possible solution: Notice that supplying the
color
argument inside the aes()
functions
@@ -1007,7 +1007,7 @@
Solution to Challenge 5
-
+
Here a possible solution: xlab()
and ylab()
set labels for the x and y axes, respectively The axis title, text and
@@ -1100,7 +1100,7 @@
Key Points
Writing Data
- Last updated on 2024-07-02 |
+
Last updated on 2024-08-06 |
Edit this page
@@ -684,7 +684,7 @@ Key Points
Data Frame Manipulation with dplyr
- Last updated on 2024-07-02 |
+
Last updated on 2024-08-06 |
Edit this page
@@ -1241,7 +1241,7 @@ Key Points
Data Frame Manipulation with tidyr
- Last updated on 2024-07-02 |
+
Last updated on 2024-08-06 |
Edit this page
@@ -1161,7 +1161,7 @@ Key Points
Producing Reports With knitr
- Last updated on 2024-07-02 |
+
Last updated on 2024-08-06 |
Edit this page
@@ -572,7 +572,7 @@
Solution to Challenge 1
-
+
In RStudio, select File > New file > R Markdown…
Delete the placeholder text and add the following:
@@ -651,7 +651,7 @@
Solution to Challenge 2
-
+
```{r load-ggplot2}
@@ -739,7 +739,7 @@
Solution to Challenge 3
-
+
```{r echo = FALSE, fig.width = 3}
@@ -789,7 +789,7 @@
Solution to Challenge 4
-
+
Writing Good Software
- Last updated on 2024-07-02 |
+
Last updated on 2024-08-06 |
Edit this page
@@ -583,7 +583,7 @@ Key Points
Contributor Code of Conduct
- Last updated on 2024-07-02 |
+
Last updated on 2024-08-06 |
Edit this page
@@ -447,7 +447,7 @@ Contributor Code of Conduct
"url": "https://UCL.github.io/ClinicianCoders/CODE_OF_CONDUCT.html",
"identifier": "https://UCL.github.io/ClinicianCoders/CODE_OF_CONDUCT.html",
"dateCreated": "2023-10-26",
- "dateModified": "2024-07-02",
+ "dateModified": "2024-08-06",
"datePublished": "2024-08-06"
}
diff --git a/LICENSE.html b/LICENSE.html
index 871a9a859..6234807af 100644
--- a/LICENSE.html
+++ b/LICENSE.html
@@ -368,7 +368,7 @@
Licenses
- Last updated on 2024-07-02 |
+
Last updated on 2024-08-06 |
Edit this page
@@ -498,7 +498,7 @@ Licenses
"url": "https://UCL.github.io/ClinicianCoders/LICENSE.html",
"identifier": "https://UCL.github.io/ClinicianCoders/LICENSE.html",
"dateCreated": "2023-10-26",
- "dateModified": "2024-07-02",
+ "dateModified": "2024-08-06",
"datePublished": "2024-08-06"
}
diff --git a/aio.html b/aio.html
index 8947e021e..8e65f110d 100644
--- a/aio.html
+++ b/aio.html
@@ -445,7 +445,7 @@
Content from Introduction to R and RStudio
-Last updated on 2024-07-02 |
+
Last updated on 2024-08-06 |
Edit this page
@@ -1201,7 +1201,7 @@ OUTPUT<
}
else all.names
}
-<bytecode: 0x561d3e951d80>
+<bytecode: 0x559ed2a8ed80>
<environment: namespace:base>
What’s going on here?
@@ -1508,7 +1508,7 @@ Key PointsContent from Project Management With RStudio
-Last updated on 2024-07-02 |
+
Last updated on 2024-08-06 |
Edit this page
@@ -1778,7 +1778,7 @@ SH<
OUTPUT
--rw-r--r-- 1 runner docker 80K Jul 2 11:37 data/gapminder_data.csv
+-rw-r--r-- 1 runner docker 80K Aug 6 12:20 data/gapminder_data.csv
The file size is 80K.
@@ -1916,7 +1916,7 @@ Key PointsContent from Seeking Help
-Last updated on 2024-07-02 |
+
Last updated on 2024-08-06 |
Edit this page
@@ -2137,8 +2137,8 @@ OUTPUT<
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
-[1] compiler_4.4.1 tools_4.4.1 yaml_2.3.8 knitr_1.47
-[5] xfun_0.45 renv_1.0.7 evaluate_0.24.0
+[1] compiler_4.4.1 tools_4.4.1 yaml_2.3.10 knitr_1.48
+[5] xfun_0.46 renv_1.0.7 evaluate_0.24.0
Will print out your current version of R, as well as any packages you
have loaded. This can be useful for others to help reproduce and debug
@@ -2171,7 +2171,7 @@
Solution to Challenge 1
-
+
The c()
function creates a vector, in which all elements
are of the same type. In the first case, the elements are numeric, in
@@ -2202,7 +2202,7 @@
Solution to Challenge 2
-
+
To look at the help for the paste()
function, use:
@@ -2312,7 +2312,7 @@
Solution to Challenge 3
-
+
The standard R function for reading tab-delimited files with a period
decimal separator is read.delim(). You can also do this with
@@ -2350,7 +2350,7 @@
Key PointsContent from Data Structures
-Last updated on 2024-07-02 |
+
Last updated on 2024-08-06 |
Edit this page
@@ -2820,7 +2820,7 @@
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
@@ -3052,7 +3052,7 @@
Tip 1.1
-
+
Show the content of any variable by typing its name.
@@ -3087,7 +3087,7 @@
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
@@ -3131,7 +3131,7 @@
Tip 1.3
-
+
Scroll up to the section about the type
hierarchy to review the available data types
@@ -3146,7 +3146,7 @@
Solution to Challenge 1.3
-
+
- Weight is expressed on a continuous scale (real numbers). The R data
@@ -3182,7 +3182,7 @@
Tip 1.4
-
+
Revisit the hierarchy of data types when two different data types are
combined.
@@ -3223,7 +3223,7 @@
Tip 1.5
-
+
The functions to convert data types start with as.
. You
can look for the function further up in the manuscript or use the
@@ -3416,7 +3416,7 @@
Solution to Challenge 2
-
+
R
@@ -3649,7 +3649,7 @@
Solution to Challenge 3
-
+
You get the names of an object by wrapping the object name inside
names(...)
. Similarly, you get the data type of the names
@@ -3696,7 +3696,7 @@
Solution to Challenge 4
-
+
letter_no <- 1:26 # or seq(1,26)
names(letter_no) <- LETTERS
@@ -3890,7 +3890,7 @@
Solution to Challenge 5
-
+
R
@@ -4153,7 +4153,7 @@
Solution to Challenge 6
-
+
What do you think will be the result of
length(matrix_example)
?
@@ -4199,7 +4199,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
@@ -4243,7 +4243,7 @@
Solution to Challenge 8
-
+
R
@@ -4297,7 +4297,7 @@
Solution to Challenge 9
-
+
Consider the R output of the matrix below:
@@ -4342,7 +4342,7 @@ Key PointsContent from Exploring Data Frames
-Last updated on 2024-07-02 |
+
Last updated on 2024-08-06 |
Edit this page
@@ -5108,7 +5108,7 @@ Key PointsContent from Subsetting Data
-Last updated on 2024-07-02 |
+
Last updated on 2024-08-06 |
Edit this page
@@ -5448,7 +5448,7 @@
Solution to challenge 1
-
+
R
@@ -5645,7 +5645,7 @@
Solution to challenge 2
-
+
R
@@ -5903,7 +5903,7 @@
Solution to challenge 3
-
+
- The wrong way to do this problem is
@@ -6199,7 +6199,7 @@
Solution to challenge 4
-
+
D
@@ -6348,7 +6348,7 @@
Solution to challenge 5
-
+
Project Management With RStudio
-Last updated on 2024-07-02 | +
Last updated on 2024-08-06 | Edit this page
@@ -629,7 +629,7 @@SH<
OUTPUT
--rw-r--r-- 1 runner docker 80K Jul 2 11:37 data/gapminder_data.csv
+-rw-r--r-- 1 runner docker 80K Aug 6 12:20 data/gapminder_data.csv
OUTPUT
--rw-r--r-- 1 runner docker 80K Jul 2 11:37 data/gapminder_data.csv
+-rw-r--r-- 1 runner docker 80K Aug 6 12:20 data/gapminder_data.csv
The file size is 80K.
Seeking Help
-Last updated on 2024-07-02 | +
Last updated on 2024-08-06 | Edit this page
@@ -594,8 +594,8 @@OUTPUT< [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): -[1] compiler_4.4.1 tools_4.4.1 yaml_2.3.8 knitr_1.47 -[5] xfun_0.45 renv_1.0.7 evaluate_0.24.0 +[1] compiler_4.4.1 tools_4.4.1 yaml_2.3.10 knitr_1.48 +[5] xfun_0.46 renv_1.0.7 evaluate_0.24.0
Will print out your current version of R, as well as any packages you have loaded. This can be useful for others to help reproduce and debug @@ -628,7 +628,7 @@
Solution to Challenge 1
-The c()
function creates a vector, in which all elements
are of the same type. In the first case, the elements are numeric, in
@@ -659,7 +659,7 @@
Solution to Challenge 2
-To look at the help for the paste()
function, use:
Solution to Challenge 3
-The standard R function for reading tab-delimited files with a period decimal separator is read.delim(). You can also do this with @@ -857,7 +857,7 @@
Key Points
Data Structures
-Last updated on 2024-07-02 | +
Last updated on 2024-08-06 | Edit this page
@@ -848,7 +848,7 @@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 @@ -1075,7 +1075,7 @@
Tip 1.1
-Show the content of any variable by typing its name.
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 @@ -1150,7 +1150,7 @@
Tip 1.3
-Scroll up to the section about the type hierarchy to review the available data types
@@ -1165,7 +1165,7 @@Solution to Challenge 1.3
-- Weight is expressed on a continuous scale (real numbers). The R data type for this is “double” (also known as “numeric”). @@ -1199,7 +1199,7 @@
- The wrong way to do this problem is
countries==seAsia
. This gives a warning @@ -1453,7 +1453,7 @@Solution to challenge 4
-+D
Solution to challenge 5
-+R @@ -1666,7 +1666,7 @@
Solution to challenge 6
-+R @@ -1822,7 +1822,7 @@
Solution to challenge 7
-+Fix each of the following common data frame subsetting errors:
- Extract observations collected for the year 1957 @@ -1896,7 +1896,7 @@
- Weight is expressed on a continuous scale (real numbers). The R data
@@ -3182,7 +3182,7 @@
Tip 1.4
-+Revisit the hierarchy of data types when two different data types are combined.
@@ -3223,7 +3223,7 @@Tip 1.5
-+The functions to convert data types start with
as.
. You can look for the function further up in the manuscript or use the @@ -3416,7 +3416,7 @@Solution to Challenge 2
-+R @@ -3649,7 +3649,7 @@
Solution to Challenge 3
-+You get the names of an object by wrapping the object name inside
names(...)
. Similarly, you get the data type of the names @@ -3696,7 +3696,7 @@Solution to Challenge 4
-+letter_no <- 1:26 # or seq(1,26) names(letter_no) <- LETTERS @@ -3890,7 +3890,7 @@
Solution to Challenge 5
-+R @@ -4153,7 +4153,7 @@
Solution to Challenge 6
-+What do you think will be the result of
@@ -4199,7 +4199,7 @@length(matrix_example)
?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 @@ -4243,7 +4243,7 @@Solution to Challenge 8
-+R @@ -4297,7 +4297,7 @@
Solution to Challenge 9
-+Consider the R output of the matrix below:
@@ -4342,7 +4342,7 @@Key Points
Content from Exploring Data Frames
-Last updated on 2024-07-02 | +
Last updated on 2024-08-06 | Edit this page
@@ -5108,7 +5108,7 @@Key Points
Content from Subsetting Data
-Last updated on 2024-07-02 | +
Last updated on 2024-08-06 | Edit this page
@@ -5448,7 +5448,7 @@Solution to challenge 1
-+R @@ -5645,7 +5645,7 @@
Solution to challenge 2
-+R @@ -5903,7 +5903,7 @@
Solution to challenge 3
-+- The wrong way to do this problem is
@@ -6199,7 +6199,7 @@
Solution to challenge 4
-+D
Solution to challenge 5
-+
- The wrong way to do this problem is
@@ -6199,7 +6199,7 @@
Solution to challenge 8
-+Creating Publication-Quality Graphics with ggplot2
-Last updated on 2024-07-02 | +
Last updated on 2024-08-06 | Edit this page
@@ -526,7 +526,7 @@Solution to challenge 1
-+Here is one possible solution:
@@ -567,7 +567,7 @@Solution to challenge 2
-+The solution presented below adds
color=continent
to the call of theaes
function. The general trend seems to @@ -678,7 +678,7 @@Solution to challenge 3
-+The lines now get drawn over the points!
@@ -809,7 +809,7 @@Solution to challenge 4a
-+Here a possible solution: Notice that the
color
argument is supplied outside of theaes()
function. This means that @@ -853,7 +853,7 @@Solution to challenge 4b
-+Here is a possible solution: Notice that supplying the
color
argument inside theaes()
functions @@ -1007,7 +1007,7 @@Solution to Challenge 5
-+Here a possible solution:
xlab()
andylab()
set labels for the x and y axes, respectively The axis title, text and @@ -1100,7 +1100,7 @@Key Points
Writing Data
-Last updated on 2024-07-02 | +
Last updated on 2024-08-06 | Edit this page
@@ -684,7 +684,7 @@Key Points
Data Frame Manipulation with dplyr
-Last updated on 2024-07-02 | +
Last updated on 2024-08-06 | Edit this page
@@ -1241,7 +1241,7 @@Key Points
Data Frame Manipulation with tidyr
-Last updated on 2024-07-02 | +
Last updated on 2024-08-06 | Edit this page
@@ -1161,7 +1161,7 @@Key Points
Producing Reports With knitr
-Last updated on 2024-07-02 | +
Last updated on 2024-08-06 | Edit this page
@@ -572,7 +572,7 @@Solution to Challenge 1
-+In RStudio, select File > New file > R Markdown…
Delete the placeholder text and add the following:
@@ -651,7 +651,7 @@Solution to Challenge 2
-+```{r load-ggplot2} @@ -739,7 +739,7 @@
Solution to Challenge 3
-+```{r echo = FALSE, fig.width = 3} @@ -789,7 +789,7 @@
Solution to Challenge 4
-+Writing Good Software
-Last updated on 2024-07-02 | +
Last updated on 2024-08-06 | Edit this page
@@ -583,7 +583,7 @@Key Points
Contributor Code of Conduct
-Last updated on 2024-07-02 | +
Last updated on 2024-08-06 | Edit this page
@@ -447,7 +447,7 @@Contributor Code of Conduct
"url": "https://UCL.github.io/ClinicianCoders/CODE_OF_CONDUCT.html", "identifier": "https://UCL.github.io/ClinicianCoders/CODE_OF_CONDUCT.html", "dateCreated": "2023-10-26", - "dateModified": "2024-07-02", + "dateModified": "2024-08-06", "datePublished": "2024-08-06" } diff --git a/LICENSE.html b/LICENSE.html index 871a9a859..6234807af 100644 --- a/LICENSE.html +++ b/LICENSE.html @@ -368,7 +368,7 @@Licenses
-Last updated on 2024-07-02 | +
Last updated on 2024-08-06 | Edit this page
@@ -498,7 +498,7 @@Licenses
"url": "https://UCL.github.io/ClinicianCoders/LICENSE.html", "identifier": "https://UCL.github.io/ClinicianCoders/LICENSE.html", "dateCreated": "2023-10-26", - "dateModified": "2024-07-02", + "dateModified": "2024-08-06", "datePublished": "2024-08-06" } diff --git a/aio.html b/aio.html index 8947e021e..8e65f110d 100644 --- a/aio.html +++ b/aio.html @@ -445,7 +445,7 @@Content from Introduction to R and RStudio
-Last updated on 2024-07-02 | +
Last updated on 2024-08-06 | Edit this page
@@ -1201,7 +1201,7 @@OUTPUT< } else all.names } -<bytecode: 0x561d3e951d80> +<bytecode: 0x559ed2a8ed80> <environment: namespace:base>
What’s going on here?
@@ -1508,7 +1508,7 @@Key Points
Content from Project Management With RStudio
-Last updated on 2024-07-02 | +
Last updated on 2024-08-06 | Edit this page
@@ -1778,7 +1778,7 @@SH<
OUTPUT
-
+-rw-r--r-- 1 runner docker 80K Jul 2 11:37 data/gapminder_data.csv
-rw-r--r-- 1 runner docker 80K Aug 6 12:20 data/gapminder_data.csv
The file size is 80K.
@@ -1916,7 +1916,7 @@Key Points
Content from Seeking Help
-Last updated on 2024-07-02 | +
Last updated on 2024-08-06 | Edit this page
@@ -2137,8 +2137,8 @@OUTPUT< [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): -[1] compiler_4.4.1 tools_4.4.1 yaml_2.3.8 knitr_1.47 -[5] xfun_0.45 renv_1.0.7 evaluate_0.24.0 +[1] compiler_4.4.1 tools_4.4.1 yaml_2.3.10 knitr_1.48 +[5] xfun_0.46 renv_1.0.7 evaluate_0.24.0
Will print out your current version of R, as well as any packages you have loaded. This can be useful for others to help reproduce and debug @@ -2171,7 +2171,7 @@
Solution to Challenge 1
-+The
c()
function creates a vector, in which all elements are of the same type. In the first case, the elements are numeric, in @@ -2202,7 +2202,7 @@Solution to Challenge 2
-+To look at the help for the
paste()
function, use:@@ -2312,7 +2312,7 @@Solution to Challenge 3
-+The standard R function for reading tab-delimited files with a period decimal separator is read.delim(). You can also do this with @@ -2350,7 +2350,7 @@
Key Points
Content from Data Structures
-Last updated on 2024-07-02 | +
Last updated on 2024-08-06 | Edit this page
@@ -2820,7 +2820,7 @@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 @@ -3052,7 +3052,7 @@
Tip 1.1
-+Show the content of any variable by typing its name.
@@ -3087,7 +3087,7 @@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 @@ -3131,7 +3131,7 @@
Tip 1.3
-+Scroll up to the section about the type hierarchy to review the available data types
@@ -3146,7 +3146,7 @@Solution to Challenge 1.3
-+
Tip 1.4
-Revisit the hierarchy of data types when two different data types are combined.
@@ -1239,7 +1239,7 @@Tip 1.5
-The functions to convert data types start with as.
. You
can look for the function further up in the manuscript or use the
@@ -1431,7 +1431,7 @@
Solution to Challenge 2
-R
@@ -1657,7 +1657,7 @@
Solution to Challenge 3
-
+
You get the names of an object by wrapping the object name inside
names(...)
. Similarly, you get the data type of the names
@@ -1702,7 +1702,7 @@
Solution to Challenge 4
-
+
letter_no <- 1:26 # or seq(1,26)
names(letter_no) <- LETTERS
@@ -1892,7 +1892,7 @@
Solution to Challenge 5
-
+
R
@@ -2154,7 +2154,7 @@
Solution to Challenge 6
-
+
What do you think will be the result of
length(matrix_example)
?
@@ -2200,7 +2200,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
@@ -2242,7 +2242,7 @@
Solution to Challenge 8
-
+
R
@@ -2294,7 +2294,7 @@
Solution to Challenge 9
-
+
Consider the R output of the matrix below:
Exploring Data Frames
- Last updated on 2024-07-02 |
+
Last updated on 2024-08-06 |
Edit this page
@@ -1184,7 +1184,7 @@ Key Points
Subsetting Data
- Last updated on 2024-07-02 |
+
Last updated on 2024-08-06 |
Edit this page
@@ -726,7 +726,7 @@
Solution to challenge 1
-
+
R
@@ -915,7 +915,7 @@
Solution to challenge 2
-
+
R
@@ -1170,7 +1170,7 @@
Solution to challenge 3
-
+
You get the names of an object by wrapping the object name inside
names(...)
. Similarly, you get the data type of the names
@@ -1702,7 +1702,7 @@
Solution to Challenge 4
-letter_no <- 1:26 # or seq(1,26)
names(letter_no) <- LETTERS
@@ -1892,7 +1892,7 @@
Solution to Challenge 5
-
+
R
@@ -2154,7 +2154,7 @@
Solution to Challenge 6
-
+
What do you think will be the result of
length(matrix_example)
?
@@ -2200,7 +2200,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
@@ -2242,7 +2242,7 @@
Solution to Challenge 8
-
+
R
@@ -2294,7 +2294,7 @@
Solution to Challenge 9
-
+
Consider the R output of the matrix below:
Exploring Data Frames
- Last updated on 2024-07-02 |
+
Last updated on 2024-08-06 |
Edit this page
@@ -1184,7 +1184,7 @@ Key Points
Subsetting Data
- Last updated on 2024-07-02 |
+
Last updated on 2024-08-06 |
Edit this page
@@ -726,7 +726,7 @@
Solution to challenge 1
-
+
R
@@ -915,7 +915,7 @@
Solution to challenge 2
-
+
R
@@ -1170,7 +1170,7 @@
Solution to challenge 3
-
+