Introduction to R and RStudio
-Last updated on 2024-10-03 | +
Last updated on 2024-11-05 | Edit this page
@@ -1110,7 +1110,7 @@OUTPUT< } else all.names } -<bytecode: 0x55a7b6ed0d80> +<bytecode: 0x5595a5fd3d80> <environment: namespace:base>
What’s going on here?
@@ -1460,7 +1460,7 @@Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/01-rstudio-intro.html", "identifier": "https://swcarpentry.github.io/r-novice-gapminder/01-rstudio-intro.html", "dateCreated": "2015-04-18", - "dateModified": "2024-10-03", + "dateModified": "2024-11-05", "datePublished": "2024-11-05" } diff --git a/02-project-intro.html b/02-project-intro.html index d8ebf4598..4daae6104 100644 --- a/02-project-intro.html +++ b/02-project-intro.html @@ -399,7 +399,7 @@
Project Management With RStudio
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -639,7 +639,7 @@ SH<
OUTPUT
--rw-r--r-- 1 runner docker 80K Oct 3 05:23 data/gapminder_data.csv
+-rw-r--r-- 1 runner docker 80K Nov 5 02:52 data/gapminder_data.csv
The file size is 80K.
@@ -821,7 +821,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/02-project-intro.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/02-project-intro.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/03-seeking-help.html b/03-seeking-help.html
index 4e9670da4..a772a9413 100644
--- a/03-seeking-help.html
+++ b/03-seeking-help.html
@@ -403,7 +403,7 @@
Seeking Help
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -604,8 +604,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.10 knitr_1.48 xfun_0.47
-[6] renv_1.0.9 evaluate_1.0.0
+[1] compiler_4.4.1 tools_4.4.1 yaml_2.3.10 knitr_1.48 xfun_0.49
+[6] renv_1.0.11 evaluate_1.0.1
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
@@ -637,7 +637,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
@@ -667,7 +667,7 @@
Solution to Challenge 2
-
+
To look at the help for the paste()
function, use:
@@ -776,7 +776,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
@@ -862,7 +862,7 @@
Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/03-seeking-help.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/03-seeking-help.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/04-data-structures-part1.html b/04-data-structures-part1.html
index 06d9506cb..d72fc94e6 100644
--- a/04-data-structures-part1.html
+++ b/04-data-structures-part1.html
@@ -398,7 +398,7 @@
Data Structures
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -863,7 +863,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
@@ -1089,7 +1089,7 @@
Tip 1.1
-
+
Show the content of any variable by typing its name.
@@ -1122,7 +1122,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
@@ -1163,7 +1163,7 @@
Tip 1.3
-
+
Scroll up to the section about the type
hierarchy to review the available data types
@@ -1178,7 +1178,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”).
@@ -1211,7 +1211,7 @@
Tip 1.4
-
+
Revisit the hierarchy of data types when two different data types are
combined.
@@ -1251,7 +1251,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
@@ -1442,7 +1442,7 @@
Solution to Challenge 2
-
+
R
@@ -1666,7 +1666,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
@@ -1710,7 +1710,7 @@
Solution to Challenge 4
-
+
letter_no <- 1:26 # or seq(1,26)
names(letter_no) <- LETTERS
@@ -1898,7 +1898,7 @@
Solution to Challenge 5
-
+
R
@@ -2158,7 +2158,7 @@
Solution to Challenge 6
-
+
What do you think will be the result of
length(matrix_example)
?
@@ -2203,7 +2203,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
@@ -2244,7 +2244,7 @@
Solution to Challenge 8
-
+
R
@@ -2295,7 +2295,7 @@
Solution to Challenge 9
-
+
Consider the R output of the matrix below:
@@ -2393,7 +2393,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/04-data-structures-part1.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/04-data-structures-part1.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/05-data-structures-part2.html b/05-data-structures-part2.html
index b24ec9c5d..801b46130 100644
--- a/05-data-structures-part2.html
+++ b/05-data-structures-part2.html
@@ -401,7 +401,7 @@
Exploring Data Frames
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1191,7 +1191,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/05-data-structures-part2.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/05-data-structures-part2.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/06-data-subsetting.html b/06-data-subsetting.html
index 549e8b6a4..7712df531 100644
--- a/06-data-subsetting.html
+++ b/06-data-subsetting.html
@@ -406,7 +406,7 @@
Subsetting Data
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1980,7 +1980,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/06-data-subsetting.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/06-data-subsetting.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/07-control-flow.html b/07-control-flow.html
index dcd77fa79..453306600 100644
--- a/07-control-flow.html
+++ b/07-control-flow.html
@@ -397,7 +397,7 @@
Control Flow
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1252,7 +1252,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/07-control-flow.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/07-control-flow.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/08-plot-ggplot2.html b/08-plot-ggplot2.html
index bdb56db8c..118658bd3 100644
--- a/08-plot-ggplot2.html
+++ b/08-plot-ggplot2.html
@@ -401,7 +401,7 @@
Creating Publication-Quality Graphics with ggplot2
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -543,7 +543,7 @@
Solution to challenge 1
-
+
Here is one possible solution:
@@ -583,7 +583,7 @@
Solution to challenge 2
-
+
The solution presented below adds color=continent
to the
call of the aes
function. The general trend seems to
@@ -691,7 +691,7 @@
Solution to challenge 3
-
+
The lines now get drawn over the points!
@@ -813,7 +813,7 @@
Solution to challenge 4a
-
+
Here a possible solution: Notice that the color
argument
is supplied outside of the aes()
function. This means that
@@ -856,7 +856,7 @@
Solution to challenge 4b
-
+
Here is a possible solution: Notice that supplying the
color
argument inside the aes()
functions
@@ -1005,7 +1005,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
@@ -1097,7 +1097,7 @@
Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/08-plot-ggplot2.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/08-plot-ggplot2.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/09-vectorization.html b/09-vectorization.html
index adf7bf82b..b15d398ca 100644
--- a/09-vectorization.html
+++ b/09-vectorization.html
@@ -390,7 +390,7 @@
Vectorization
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1024,7 +1024,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/09-vectorization.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/09-vectorization.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/10-functions.html b/10-functions.html
index 1fd6b6763..4e81913ba 100644
--- a/10-functions.html
+++ b/10-functions.html
@@ -400,7 +400,7 @@
Functions Explained
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1220,7 +1220,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/10-functions.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/10-functions.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/11-writing-data.html b/11-writing-data.html
index 4046e90db..fb05f36cb 100644
--- a/11-writing-data.html
+++ b/11-writing-data.html
@@ -398,7 +398,7 @@
Writing Data
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -697,7 +697,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/11-writing-data.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/11-writing-data.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/12-dplyr.html b/12-dplyr.html
index 91aff24ce..9c7abc233 100644
--- a/12-dplyr.html
+++ b/12-dplyr.html
@@ -406,7 +406,7 @@
Data Frame Manipulation with dplyr
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1247,7 +1247,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/12-dplyr.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/12-dplyr.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/13-tidyr.html b/13-tidyr.html
index 9abf0f080..b8a571c70 100644
--- a/13-tidyr.html
+++ b/13-tidyr.html
@@ -400,7 +400,7 @@
Data Frame Manipulation with tidyr
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1171,7 +1171,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/13-tidyr.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/13-tidyr.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/14-knitr-markdown.html b/14-knitr-markdown.html
index dcb9d85f0..971fa64af 100644
--- a/14-knitr-markdown.html
+++ b/14-knitr-markdown.html
@@ -408,7 +408,7 @@
Producing Reports With knitr
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -584,7 +584,7 @@
Solution to Challenge 1
-
+
In RStudio, select File > New file > R Markdown…
Delete the placeholder text and add the following:
@@ -660,7 +660,7 @@
Solution to Challenge 2
-
+
```{r load-ggplot2}
@@ -745,7 +745,7 @@
Solution to Challenge 3
-
+
```{r echo = FALSE, fig.width = 3}
@@ -793,7 +793,7 @@
Solution to Challenge 4
-
+
Here’s some inline code to determine that 2 + 2 = 4
.
@@ -935,7 +935,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/14-knitr-markdown.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/14-knitr-markdown.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/15-wrap-up.html b/15-wrap-up.html
index c389bc760..d5205d8da 100644
--- a/15-wrap-up.html
+++ b/15-wrap-up.html
@@ -404,7 +404,7 @@
Writing Good Software
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -591,7 +591,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/15-wrap-up.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/15-wrap-up.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/CODE_OF_CONDUCT.html b/CODE_OF_CONDUCT.html
index eb2580825..bfe3bc0ac 100644
--- a/CODE_OF_CONDUCT.html
+++ b/CODE_OF_CONDUCT.html
@@ -386,7 +386,7 @@
Contributor Code of Conduct
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -465,7 +465,7 @@ Contributor Code of Conduct
"url": "https://swcarpentry.github.io/r-novice-gapminder/CODE_OF_CONDUCT.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/CODE_OF_CONDUCT.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/LICENSE.html b/LICENSE.html
index 733a11620..c1eb3ef6e 100644
--- a/LICENSE.html
+++ b/LICENSE.html
@@ -386,7 +386,7 @@
Licenses
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -513,7 +513,7 @@ Licenses
"url": "https://swcarpentry.github.io/r-novice-gapminder/LICENSE.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/LICENSE.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/aio.html b/aio.html
index e790fc8cd..a878a4c50 100644
--- a/aio.html
+++ b/aio.html
@@ -469,7 +469,7 @@
Content from Introduction to R and RStudio
-Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1208,7 +1208,7 @@ OUTPUT<
}
else all.names
}
-<bytecode: 0x55a7b6ed0d80>
+<bytecode: 0x5595a5fd3d80>
<environment: namespace:base>
What’s going on here?
@@ -1508,7 +1508,7 @@ Key Points
Content from Project Management With RStudio
-Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1770,7 +1770,7 @@ SH<
OUTPUT
--rw-r--r-- 1 runner docker 80K Oct 3 05:23 data/gapminder_data.csv
+-rw-r--r-- 1 runner docker 80K Nov 5 02:52 data/gapminder_data.csv
The file size is 80K.
@@ -1904,7 +1904,7 @@ Key Points
Content from Seeking Help
-Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -2117,8 +2117,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.10 knitr_1.48 xfun_0.47
-[6] renv_1.0.9 evaluate_1.0.0
+[1] compiler_4.4.1 tools_4.4.1 yaml_2.3.10 knitr_1.48 xfun_0.49
+[6] renv_1.0.11 evaluate_1.0.1
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
@@ -2150,7 +2150,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
@@ -2180,7 +2180,7 @@
Solution to Challenge 2
-
+
To look at the help for the paste()
function, use:
@@ -2289,7 +2289,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
@@ -2325,7 +2325,7 @@
Key Points
Content from Data Structures
-Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -2792,7 +2792,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
@@ -3023,7 +3023,7 @@
Tip 1.1
-
+
Show the content of any variable by typing its name.
@@ -3057,7 +3057,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
@@ -3101,7 +3101,7 @@
Tip 1.3
-
+
Scroll up to the section about the type
hierarchy to review the available data types
@@ -3116,7 +3116,7 @@
Solution to Challenge 1.3
-
+
- Weight is expressed on a continuous scale (real numbers). The R data
@@ -3151,7 +3151,7 @@
Tip 1.4
-
+
Revisit the hierarchy of data types when two different data types are
combined.
@@ -3192,7 +3192,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
@@ -3384,7 +3384,7 @@
Solution to Challenge 2
-
+
R
@@ -3615,7 +3615,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
@@ -3661,7 +3661,7 @@
Solution to Challenge 4
-
+
letter_no <- 1:26 # or seq(1,26)
names(letter_no) <- LETTERS
@@ -3853,7 +3853,7 @@
Solution to Challenge 5
-
+
R
@@ -4114,7 +4114,7 @@
Solution to Challenge 6
-
+
What do you think will be the result of
length(matrix_example)
?
@@ -4159,7 +4159,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
@@ -4202,7 +4202,7 @@
Solution to Challenge 8
-
+
R
@@ -4255,7 +4255,7 @@
Solution to Challenge 9
-
+
Consider the R output of the matrix below:
@@ -4299,7 +4299,7 @@ Key Points
Content from Exploring Data Frames
-Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -5054,7 +5054,7 @@ Key Points
Content from Subsetting Data
-Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -6628,7 +6628,7 @@ Key Points
Content from Control Flow
-Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -7431,7 +7431,7 @@ Key Points
Content from Creating Publication-Quality Graphics with ggplot2
-Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -7573,7 +7573,7 @@
Solution to challenge 1
-
+
Here is one possible solution:
@@ -7614,7 +7614,7 @@
Solution to challenge 2
-
+
The solution presented below adds color=continent
to the
call of the aes
function. The general trend seems to
@@ -7725,7 +7725,7 @@
Solution to challenge 3
-
+
The lines now get drawn over the points!
@@ -7850,7 +7850,7 @@
Solution to challenge 4a
-
+
Here a possible solution: Notice that the color
argument
is supplied outside of the aes()
function. This means that
@@ -7894,7 +7894,7 @@
Solution to challenge 4b
-
+
Here is a possible solution: Notice that supplying the
color
argument inside the aes()
functions
@@ -8052,7 +8052,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
@@ -8091,7 +8091,7 @@
Key Points
Content from Vectorization
-Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -8674,7 +8674,7 @@ Key Points
Content from Functions Explained
-Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -9453,7 +9453,7 @@ Key Points
Content from Writing Data
-Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -9700,7 +9700,7 @@ Key Points
Content from Data Frame Manipulation with dplyr
-Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -10509,7 +10509,7 @@ Key Points
Content from Data Frame Manipulation with tidyr
-Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -11236,7 +11236,7 @@ Key Points
Content from Producing Reports With knitr
-Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -11424,7 +11424,7 @@
Solution to Challenge 1
-
+
In RStudio, select File > New file > R Markdown…
Delete the placeholder text and add the following:
@@ -11506,7 +11506,7 @@
Solution to Challenge 2
-
+
```{r load-ggplot2}
@@ -11597,7 +11597,7 @@
Solution to Challenge 3
-
+
```{r echo = FALSE, fig.width = 3}
@@ -11647,7 +11647,7 @@
Solution to Challenge 4
-
+
Here’s some inline code to determine that 2 + 2 = 4
.
@@ -11741,7 +11741,7 @@ Key Points
Content from Writing Good Software
-Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
diff --git a/discuss.html b/discuss.html
index 0a5df5085..449d11ed7 100644
--- a/discuss.html
+++ b/discuss.html
@@ -386,7 +386,7 @@
Discussion
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -459,7 +459,7 @@ Discussion
"url": "https://swcarpentry.github.io/r-novice-gapminder/discuss.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/discuss.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/instructor/01-rstudio-intro.html b/instructor/01-rstudio-intro.html
index 3d9c401e8..987d2ef8d 100644
--- a/instructor/01-rstudio-intro.html
+++ b/instructor/01-rstudio-intro.html
@@ -408,7 +408,7 @@
Introduction to R and RStudio
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1112,7 +1112,7 @@ OUTPUT<
}
else all.names
}
-<bytecode: 0x55a7b6ed0d80>
+<bytecode: 0x5595a5fd3d80>
<environment: namespace:base>
What’s going on here?
@@ -1483,7 +1483,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/instructor/01-rstudio-intro.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/instructor/01-rstudio-intro.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/instructor/02-project-intro.html b/instructor/02-project-intro.html
index 169b45930..20a5e2bff 100644
--- a/instructor/02-project-intro.html
+++ b/instructor/02-project-intro.html
@@ -399,7 +399,7 @@
Project Management With RStudio
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -641,7 +641,7 @@ SH<
OUTPUT
--rw-r--r-- 1 runner docker 80K Oct 3 05:23 data/gapminder_data.csv
+-rw-r--r-- 1 runner docker 80K Nov 5 02:52 data/gapminder_data.csv
The file size is 80K.
@@ -823,7 +823,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/instructor/02-project-intro.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/instructor/02-project-intro.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/instructor/03-seeking-help.html b/instructor/03-seeking-help.html
index e7686ee6a..a46841f84 100644
--- a/instructor/03-seeking-help.html
+++ b/instructor/03-seeking-help.html
@@ -403,7 +403,7 @@
Seeking Help
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -606,8 +606,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.10 knitr_1.48 xfun_0.47
-[6] renv_1.0.9 evaluate_1.0.0
+[1] compiler_4.4.1 tools_4.4.1 yaml_2.3.10 knitr_1.48 xfun_0.49
+[6] renv_1.0.11 evaluate_1.0.1
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
@@ -639,7 +639,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
@@ -669,7 +669,7 @@
Solution to Challenge 2
-
+
To look at the help for the paste()
function, use:
@@ -778,7 +778,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
@@ -864,7 +864,7 @@
Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/instructor/03-seeking-help.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/instructor/03-seeking-help.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/instructor/04-data-structures-part1.html b/instructor/04-data-structures-part1.html
index 43cb2f858..8edb77e78 100644
--- a/instructor/04-data-structures-part1.html
+++ b/instructor/04-data-structures-part1.html
@@ -398,7 +398,7 @@
Data Structures
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -865,7 +865,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
@@ -1091,7 +1091,7 @@
Tip 1.1
-
+
Show the content of any variable by typing its name.
@@ -1124,7 +1124,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
@@ -1165,7 +1165,7 @@
Tip 1.3
-
+
Scroll up to the section about the type
hierarchy to review the available data types
@@ -1180,7 +1180,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”).
@@ -1213,7 +1213,7 @@
Tip 1.4
-
+
Project Management With RStudio
-Last updated on 2024-10-03 | +
Last updated on 2024-11-05 | Edit this page
@@ -639,7 +639,7 @@SH<
OUTPUT
--rw-r--r-- 1 runner docker 80K Oct 3 05:23 data/gapminder_data.csv
+-rw-r--r-- 1 runner docker 80K Nov 5 02:52 data/gapminder_data.csv
OUTPUT
--rw-r--r-- 1 runner docker 80K Oct 3 05:23 data/gapminder_data.csv
+-rw-r--r-- 1 runner docker 80K Nov 5 02:52 data/gapminder_data.csv
The file size is 80K.
Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/02-project-intro.html", "identifier": "https://swcarpentry.github.io/r-novice-gapminder/02-project-intro.html", "dateCreated": "2015-04-18", - "dateModified": "2024-10-03", + "dateModified": "2024-11-05", "datePublished": "2024-11-05" } diff --git a/03-seeking-help.html b/03-seeking-help.html index 4e9670da4..a772a9413 100644 --- a/03-seeking-help.html +++ b/03-seeking-help.html @@ -403,7 +403,7 @@Seeking Help
-Last updated on 2024-10-03 | +
Last updated on 2024-11-05 | Edit this page
@@ -604,8 +604,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.10 knitr_1.48 xfun_0.47 -[6] renv_1.0.9 evaluate_1.0.0 +[1] compiler_4.4.1 tools_4.4.1 yaml_2.3.10 knitr_1.48 xfun_0.49 +[6] renv_1.0.11 evaluate_1.0.1
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 @@ -637,7 +637,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
@@ -667,7 +667,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 @@ -862,7 +862,7 @@
Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/03-seeking-help.html", "identifier": "https://swcarpentry.github.io/r-novice-gapminder/03-seeking-help.html", "dateCreated": "2015-04-18", - "dateModified": "2024-10-03", + "dateModified": "2024-11-05", "datePublished": "2024-11-05" } diff --git a/04-data-structures-part1.html b/04-data-structures-part1.html index 06d9506cb..d72fc94e6 100644 --- a/04-data-structures-part1.html +++ b/04-data-structures-part1.html @@ -398,7 +398,7 @@Data Structures
-Last updated on 2024-10-03 | +
Last updated on 2024-11-05 | Edit this page
@@ -863,7 +863,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 @@ -1089,7 +1089,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 @@ -1163,7 +1163,7 @@
Tip 1.3
-Scroll up to the section about the type hierarchy to review the available data types
@@ -1178,7 +1178,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”). @@ -1211,7 +1211,7 @@
- Weight is expressed on a continuous scale (real numbers). The R data
@@ -3151,7 +3151,7 @@
Tip 1.4
-+Revisit the hierarchy of data types when two different data types are combined.
@@ -3192,7 +3192,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 @@ -3384,7 +3384,7 @@Solution to Challenge 2
-+R @@ -3615,7 +3615,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 @@ -3661,7 +3661,7 @@Solution to Challenge 4
-+letter_no <- 1:26 # or seq(1,26) names(letter_no) <- LETTERS @@ -3853,7 +3853,7 @@
Solution to Challenge 5
-+R @@ -4114,7 +4114,7 @@
Solution to Challenge 6
-+What do you think will be the result of
@@ -4159,7 +4159,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 @@ -4202,7 +4202,7 @@Solution to Challenge 8
-+R @@ -4255,7 +4255,7 @@
Solution to Challenge 9
-+Consider the R output of the matrix below:
@@ -4299,7 +4299,7 @@Key Points
Content from Exploring Data Frames
-Last updated on 2024-10-03 | +
Last updated on 2024-11-05 | Edit this page
@@ -5054,7 +5054,7 @@Key Points
Content from Subsetting Data
-Last updated on 2024-10-03 | +
Last updated on 2024-11-05 | Edit this page
@@ -6628,7 +6628,7 @@Key Points
Content from Control Flow
-Last updated on 2024-10-03 | +
Last updated on 2024-11-05 | Edit this page
@@ -7431,7 +7431,7 @@Key Points
Content from Creating Publication-Quality Graphics with ggplot2
-Last updated on 2024-10-03 | +
Last updated on 2024-11-05 | Edit this page
@@ -7573,7 +7573,7 @@Solution to challenge 1
-+Here is one possible solution:
@@ -7614,7 +7614,7 @@Solution to challenge 2
-+The solution presented below adds
color=continent
to the call of theaes
function. The general trend seems to @@ -7725,7 +7725,7 @@Solution to challenge 3
-+The lines now get drawn over the points!
@@ -7850,7 +7850,7 @@Solution to challenge 4a
-+Here a possible solution: Notice that the
color
argument is supplied outside of theaes()
function. This means that @@ -7894,7 +7894,7 @@Solution to challenge 4b
-+Here is a possible solution: Notice that supplying the
color
argument inside theaes()
functions @@ -8052,7 +8052,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 @@ -8091,7 +8091,7 @@Key Points
Content from Vectorization
-Last updated on 2024-10-03 | +
Last updated on 2024-11-05 | Edit this page
@@ -8674,7 +8674,7 @@Key Points
Content from Functions Explained
-Last updated on 2024-10-03 | +
Last updated on 2024-11-05 | Edit this page
@@ -9453,7 +9453,7 @@Key Points
Content from Writing Data
-Last updated on 2024-10-03 | +
Last updated on 2024-11-05 | Edit this page
@@ -9700,7 +9700,7 @@Key Points
Content from Data Frame Manipulation with dplyr
-Last updated on 2024-10-03 | +
Last updated on 2024-11-05 | Edit this page
@@ -10509,7 +10509,7 @@Key Points
Content from Data Frame Manipulation with tidyr
-Last updated on 2024-10-03 | +
Last updated on 2024-11-05 | Edit this page
@@ -11236,7 +11236,7 @@Key Points
Content from Producing Reports With knitr
-Last updated on 2024-10-03 | +
Last updated on 2024-11-05 | Edit this page
@@ -11424,7 +11424,7 @@Solution to Challenge 1
-+In RStudio, select File > New file > R Markdown…
Delete the placeholder text and add the following:
@@ -11506,7 +11506,7 @@Solution to Challenge 2
-+```{r load-ggplot2} @@ -11597,7 +11597,7 @@
Solution to Challenge 3
-+```{r echo = FALSE, fig.width = 3} @@ -11647,7 +11647,7 @@
Solution to Challenge 4
-+Here’s some inline code to determine that 2 + 2 =
4
.Key Points
Content from Writing Good Software
-Last updated on 2024-10-03 | +
Last updated on 2024-11-05 | Edit this page
diff --git a/discuss.html b/discuss.html index 0a5df5085..449d11ed7 100644 --- a/discuss.html +++ b/discuss.html @@ -386,7 +386,7 @@Discussion
-Last updated on 2024-10-03 | +
Last updated on 2024-11-05 | Edit this page
@@ -459,7 +459,7 @@Discussion
"url": "https://swcarpentry.github.io/r-novice-gapminder/discuss.html", "identifier": "https://swcarpentry.github.io/r-novice-gapminder/discuss.html", "dateCreated": "2015-04-18", - "dateModified": "2024-10-03", + "dateModified": "2024-11-05", "datePublished": "2024-11-05" } diff --git a/instructor/01-rstudio-intro.html b/instructor/01-rstudio-intro.html index 3d9c401e8..987d2ef8d 100644 --- a/instructor/01-rstudio-intro.html +++ b/instructor/01-rstudio-intro.html @@ -408,7 +408,7 @@Introduction to R and RStudio
-Last updated on 2024-10-03 | +
Last updated on 2024-11-05 | Edit this page
@@ -1112,7 +1112,7 @@OUTPUT< } else all.names } -<bytecode: 0x55a7b6ed0d80> +<bytecode: 0x5595a5fd3d80> <environment: namespace:base>
What’s going on here?
@@ -1483,7 +1483,7 @@Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/instructor/01-rstudio-intro.html", "identifier": "https://swcarpentry.github.io/r-novice-gapminder/instructor/01-rstudio-intro.html", "dateCreated": "2015-04-18", - "dateModified": "2024-10-03", + "dateModified": "2024-11-05", "datePublished": "2024-11-05" } diff --git a/instructor/02-project-intro.html b/instructor/02-project-intro.html index 169b45930..20a5e2bff 100644 --- a/instructor/02-project-intro.html +++ b/instructor/02-project-intro.html @@ -399,7 +399,7 @@Project Management With RStudio
-Last updated on 2024-10-03 | +
Last updated on 2024-11-05 | Edit this page
@@ -641,7 +641,7 @@SH<
OUTPUT
-
+-rw-r--r-- 1 runner docker 80K Oct 3 05:23 data/gapminder_data.csv
-rw-r--r-- 1 runner docker 80K Nov 5 02:52 data/gapminder_data.csv
The file size is 80K.
@@ -823,7 +823,7 @@Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/instructor/02-project-intro.html", "identifier": "https://swcarpentry.github.io/r-novice-gapminder/instructor/02-project-intro.html", "dateCreated": "2015-04-18", - "dateModified": "2024-10-03", + "dateModified": "2024-11-05", "datePublished": "2024-11-05" } diff --git a/instructor/03-seeking-help.html b/instructor/03-seeking-help.html index e7686ee6a..a46841f84 100644 --- a/instructor/03-seeking-help.html +++ b/instructor/03-seeking-help.html @@ -403,7 +403,7 @@Seeking Help
-Last updated on 2024-10-03 | +
Last updated on 2024-11-05 | Edit this page
@@ -606,8 +606,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.10 knitr_1.48 xfun_0.47 -[6] renv_1.0.9 evaluate_1.0.0 +[1] compiler_4.4.1 tools_4.4.1 yaml_2.3.10 knitr_1.48 xfun_0.49 +[6] renv_1.0.11 evaluate_1.0.1
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 @@ -639,7 +639,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 @@ -669,7 +669,7 @@Solution to Challenge 2
-+To look at the help for the
paste()
function, use:@@ -778,7 +778,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 @@ -864,7 +864,7 @@
Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/instructor/03-seeking-help.html", "identifier": "https://swcarpentry.github.io/r-novice-gapminder/instructor/03-seeking-help.html", "dateCreated": "2015-04-18", - "dateModified": "2024-10-03", + "dateModified": "2024-11-05", "datePublished": "2024-11-05" } diff --git a/instructor/04-data-structures-part1.html b/instructor/04-data-structures-part1.html index 43cb2f858..8edb77e78 100644 --- a/instructor/04-data-structures-part1.html +++ b/instructor/04-data-structures-part1.html @@ -398,7 +398,7 @@Data Structures
-Last updated on 2024-10-03 | +
Last updated on 2024-11-05 | Edit this page
@@ -865,7 +865,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 @@ -1091,7 +1091,7 @@
Tip 1.1
-+Show the content of any variable by typing its name.
@@ -1124,7 +1124,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 @@ -1165,7 +1165,7 @@
Tip 1.3
-+Scroll up to the section about the type hierarchy to review the available data types
@@ -1180,7 +1180,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”). @@ -1213,7 +1213,7 @@
Tip 1.4
-+
Tip 1.4
-Revisit the hierarchy of data types when two different data types are combined.
@@ -1251,7 +1251,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
@@ -1442,7 +1442,7 @@
Solution to Challenge 2
-R
@@ -1666,7 +1666,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
@@ -1710,7 +1710,7 @@
Solution to Challenge 4
-
+
letter_no <- 1:26 # or seq(1,26)
names(letter_no) <- LETTERS
@@ -1898,7 +1898,7 @@
Solution to Challenge 5
-
+
R
@@ -2158,7 +2158,7 @@
Solution to Challenge 6
-
+
What do you think will be the result of
length(matrix_example)
?
@@ -2203,7 +2203,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
@@ -2244,7 +2244,7 @@
Solution to Challenge 8
-
+
R
@@ -2295,7 +2295,7 @@
Solution to Challenge 9
-
+
Consider the R output of the matrix below:
@@ -2393,7 +2393,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/04-data-structures-part1.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/04-data-structures-part1.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/05-data-structures-part2.html b/05-data-structures-part2.html
index b24ec9c5d..801b46130 100644
--- a/05-data-structures-part2.html
+++ b/05-data-structures-part2.html
@@ -401,7 +401,7 @@
Exploring Data Frames
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1191,7 +1191,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/05-data-structures-part2.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/05-data-structures-part2.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/06-data-subsetting.html b/06-data-subsetting.html
index 549e8b6a4..7712df531 100644
--- a/06-data-subsetting.html
+++ b/06-data-subsetting.html
@@ -406,7 +406,7 @@
Subsetting Data
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1980,7 +1980,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/06-data-subsetting.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/06-data-subsetting.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/07-control-flow.html b/07-control-flow.html
index dcd77fa79..453306600 100644
--- a/07-control-flow.html
+++ b/07-control-flow.html
@@ -397,7 +397,7 @@
Control Flow
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1252,7 +1252,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/07-control-flow.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/07-control-flow.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/08-plot-ggplot2.html b/08-plot-ggplot2.html
index bdb56db8c..118658bd3 100644
--- a/08-plot-ggplot2.html
+++ b/08-plot-ggplot2.html
@@ -401,7 +401,7 @@
Creating Publication-Quality Graphics with ggplot2
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -543,7 +543,7 @@
Solution to challenge 1
-
+
Here is one possible solution:
@@ -583,7 +583,7 @@
Solution to challenge 2
-
+
The solution presented below adds color=continent
to the
call of the aes
function. The general trend seems to
@@ -691,7 +691,7 @@
Solution to challenge 3
-
+
The lines now get drawn over the points!
@@ -813,7 +813,7 @@
Solution to challenge 4a
-
+
Here a possible solution: Notice that the color
argument
is supplied outside of the aes()
function. This means that
@@ -856,7 +856,7 @@
Solution to challenge 4b
-
+
Here is a possible solution: Notice that supplying the
color
argument inside the aes()
functions
@@ -1005,7 +1005,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
@@ -1097,7 +1097,7 @@
Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/08-plot-ggplot2.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/08-plot-ggplot2.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/09-vectorization.html b/09-vectorization.html
index adf7bf82b..b15d398ca 100644
--- a/09-vectorization.html
+++ b/09-vectorization.html
@@ -390,7 +390,7 @@
Vectorization
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1024,7 +1024,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/09-vectorization.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/09-vectorization.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/10-functions.html b/10-functions.html
index 1fd6b6763..4e81913ba 100644
--- a/10-functions.html
+++ b/10-functions.html
@@ -400,7 +400,7 @@
Functions Explained
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1220,7 +1220,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/10-functions.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/10-functions.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/11-writing-data.html b/11-writing-data.html
index 4046e90db..fb05f36cb 100644
--- a/11-writing-data.html
+++ b/11-writing-data.html
@@ -398,7 +398,7 @@
Writing Data
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -697,7 +697,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/11-writing-data.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/11-writing-data.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/12-dplyr.html b/12-dplyr.html
index 91aff24ce..9c7abc233 100644
--- a/12-dplyr.html
+++ b/12-dplyr.html
@@ -406,7 +406,7 @@
Data Frame Manipulation with dplyr
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1247,7 +1247,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/12-dplyr.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/12-dplyr.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/13-tidyr.html b/13-tidyr.html
index 9abf0f080..b8a571c70 100644
--- a/13-tidyr.html
+++ b/13-tidyr.html
@@ -400,7 +400,7 @@
Data Frame Manipulation with tidyr
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1171,7 +1171,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/13-tidyr.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/13-tidyr.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/14-knitr-markdown.html b/14-knitr-markdown.html
index dcb9d85f0..971fa64af 100644
--- a/14-knitr-markdown.html
+++ b/14-knitr-markdown.html
@@ -408,7 +408,7 @@
Producing Reports With knitr
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -584,7 +584,7 @@
Solution to Challenge 1
-
+
In RStudio, select File > New file > R Markdown…
Delete the placeholder text and add the following:
@@ -660,7 +660,7 @@
Solution to Challenge 2
-
+
```{r load-ggplot2}
@@ -745,7 +745,7 @@
Solution to Challenge 3
-
+
```{r echo = FALSE, fig.width = 3}
@@ -793,7 +793,7 @@
Solution to Challenge 4
-
+
Here’s some inline code to determine that 2 + 2 = 4
.
@@ -935,7 +935,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/14-knitr-markdown.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/14-knitr-markdown.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/15-wrap-up.html b/15-wrap-up.html
index c389bc760..d5205d8da 100644
--- a/15-wrap-up.html
+++ b/15-wrap-up.html
@@ -404,7 +404,7 @@
Writing Good Software
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -591,7 +591,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/15-wrap-up.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/15-wrap-up.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/CODE_OF_CONDUCT.html b/CODE_OF_CONDUCT.html
index eb2580825..bfe3bc0ac 100644
--- a/CODE_OF_CONDUCT.html
+++ b/CODE_OF_CONDUCT.html
@@ -386,7 +386,7 @@
Contributor Code of Conduct
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -465,7 +465,7 @@ Contributor Code of Conduct
"url": "https://swcarpentry.github.io/r-novice-gapminder/CODE_OF_CONDUCT.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/CODE_OF_CONDUCT.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/LICENSE.html b/LICENSE.html
index 733a11620..c1eb3ef6e 100644
--- a/LICENSE.html
+++ b/LICENSE.html
@@ -386,7 +386,7 @@
Licenses
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -513,7 +513,7 @@ Licenses
"url": "https://swcarpentry.github.io/r-novice-gapminder/LICENSE.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/LICENSE.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/aio.html b/aio.html
index e790fc8cd..a878a4c50 100644
--- a/aio.html
+++ b/aio.html
@@ -469,7 +469,7 @@
Content from Introduction to R and RStudio
-Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1208,7 +1208,7 @@ OUTPUT<
}
else all.names
}
-<bytecode: 0x55a7b6ed0d80>
+<bytecode: 0x5595a5fd3d80>
<environment: namespace:base>
What’s going on here?
@@ -1508,7 +1508,7 @@ Key Points
Content from Project Management With RStudio
-Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1770,7 +1770,7 @@ SH<
OUTPUT
--rw-r--r-- 1 runner docker 80K Oct 3 05:23 data/gapminder_data.csv
+-rw-r--r-- 1 runner docker 80K Nov 5 02:52 data/gapminder_data.csv
The file size is 80K.
@@ -1904,7 +1904,7 @@ Key Points
Content from Seeking Help
-Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -2117,8 +2117,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.10 knitr_1.48 xfun_0.47
-[6] renv_1.0.9 evaluate_1.0.0
+[1] compiler_4.4.1 tools_4.4.1 yaml_2.3.10 knitr_1.48 xfun_0.49
+[6] renv_1.0.11 evaluate_1.0.1
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
@@ -2150,7 +2150,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
@@ -2180,7 +2180,7 @@
Solution to Challenge 2
-
+
To look at the help for the paste()
function, use:
@@ -2289,7 +2289,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
@@ -2325,7 +2325,7 @@
Key Points
Content from Data Structures
-Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -2792,7 +2792,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
@@ -3023,7 +3023,7 @@
Tip 1.1
-
+
Show the content of any variable by typing its name.
@@ -3057,7 +3057,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
@@ -3101,7 +3101,7 @@
Tip 1.3
-
+
Scroll up to the section about the type
hierarchy to review the available data types
@@ -3116,7 +3116,7 @@
Solution to Challenge 1.3
-
+
You get the names of an object by wrapping the object name inside
names(...)
. Similarly, you get the data type of the names
@@ -1710,7 +1710,7 @@
Solution to Challenge 4
-letter_no <- 1:26 # or seq(1,26)
names(letter_no) <- LETTERS
@@ -1898,7 +1898,7 @@
Solution to Challenge 5
-
+
R
@@ -2158,7 +2158,7 @@
Solution to Challenge 6
-
+
What do you think will be the result of
length(matrix_example)
?
@@ -2203,7 +2203,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
@@ -2244,7 +2244,7 @@
Solution to Challenge 8
-
+
R
@@ -2295,7 +2295,7 @@
Solution to Challenge 9
-
+
Consider the R output of the matrix below:
@@ -2393,7 +2393,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/04-data-structures-part1.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/04-data-structures-part1.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/05-data-structures-part2.html b/05-data-structures-part2.html
index b24ec9c5d..801b46130 100644
--- a/05-data-structures-part2.html
+++ b/05-data-structures-part2.html
@@ -401,7 +401,7 @@
Exploring Data Frames
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1191,7 +1191,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/05-data-structures-part2.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/05-data-structures-part2.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/06-data-subsetting.html b/06-data-subsetting.html
index 549e8b6a4..7712df531 100644
--- a/06-data-subsetting.html
+++ b/06-data-subsetting.html
@@ -406,7 +406,7 @@
Subsetting Data
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1980,7 +1980,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/06-data-subsetting.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/06-data-subsetting.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/07-control-flow.html b/07-control-flow.html
index dcd77fa79..453306600 100644
--- a/07-control-flow.html
+++ b/07-control-flow.html
@@ -397,7 +397,7 @@
Control Flow
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1252,7 +1252,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/07-control-flow.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/07-control-flow.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/08-plot-ggplot2.html b/08-plot-ggplot2.html
index bdb56db8c..118658bd3 100644
--- a/08-plot-ggplot2.html
+++ b/08-plot-ggplot2.html
@@ -401,7 +401,7 @@
Creating Publication-Quality Graphics with ggplot2
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -543,7 +543,7 @@
Solution to challenge 1
-
+
Here is one possible solution:
@@ -583,7 +583,7 @@
Solution to challenge 2
-
+
The solution presented below adds color=continent
to the
call of the aes
function. The general trend seems to
@@ -691,7 +691,7 @@
Solution to challenge 3
-
+
The lines now get drawn over the points!
@@ -813,7 +813,7 @@
Solution to challenge 4a
-
+
Here a possible solution: Notice that the color
argument
is supplied outside of the aes()
function. This means that
@@ -856,7 +856,7 @@
Solution to challenge 4b
-
+
Here is a possible solution: Notice that supplying the
color
argument inside the aes()
functions
@@ -1005,7 +1005,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
@@ -1097,7 +1097,7 @@
Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/08-plot-ggplot2.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/08-plot-ggplot2.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/09-vectorization.html b/09-vectorization.html
index adf7bf82b..b15d398ca 100644
--- a/09-vectorization.html
+++ b/09-vectorization.html
@@ -390,7 +390,7 @@
Vectorization
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1024,7 +1024,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/09-vectorization.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/09-vectorization.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/10-functions.html b/10-functions.html
index 1fd6b6763..4e81913ba 100644
--- a/10-functions.html
+++ b/10-functions.html
@@ -400,7 +400,7 @@
Functions Explained
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1220,7 +1220,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/10-functions.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/10-functions.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/11-writing-data.html b/11-writing-data.html
index 4046e90db..fb05f36cb 100644
--- a/11-writing-data.html
+++ b/11-writing-data.html
@@ -398,7 +398,7 @@
Writing Data
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -697,7 +697,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/11-writing-data.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/11-writing-data.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/12-dplyr.html b/12-dplyr.html
index 91aff24ce..9c7abc233 100644
--- a/12-dplyr.html
+++ b/12-dplyr.html
@@ -406,7 +406,7 @@
Data Frame Manipulation with dplyr
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1247,7 +1247,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/12-dplyr.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/12-dplyr.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/13-tidyr.html b/13-tidyr.html
index 9abf0f080..b8a571c70 100644
--- a/13-tidyr.html
+++ b/13-tidyr.html
@@ -400,7 +400,7 @@
Data Frame Manipulation with tidyr
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1171,7 +1171,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/13-tidyr.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/13-tidyr.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/14-knitr-markdown.html b/14-knitr-markdown.html
index dcb9d85f0..971fa64af 100644
--- a/14-knitr-markdown.html
+++ b/14-knitr-markdown.html
@@ -408,7 +408,7 @@
Producing Reports With knitr
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -584,7 +584,7 @@
Solution to Challenge 1
-
+
In RStudio, select File > New file > R Markdown…
Delete the placeholder text and add the following:
@@ -660,7 +660,7 @@
Solution to Challenge 2
-
+
```{r load-ggplot2}
@@ -745,7 +745,7 @@
Solution to Challenge 3
-
+
```{r echo = FALSE, fig.width = 3}
@@ -793,7 +793,7 @@
Solution to Challenge 4
-
+
Here’s some inline code to determine that 2 + 2 = 4
.
@@ -935,7 +935,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/14-knitr-markdown.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/14-knitr-markdown.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/15-wrap-up.html b/15-wrap-up.html
index c389bc760..d5205d8da 100644
--- a/15-wrap-up.html
+++ b/15-wrap-up.html
@@ -404,7 +404,7 @@
Writing Good Software
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -591,7 +591,7 @@ Key Points
"url": "https://swcarpentry.github.io/r-novice-gapminder/15-wrap-up.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/15-wrap-up.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/CODE_OF_CONDUCT.html b/CODE_OF_CONDUCT.html
index eb2580825..bfe3bc0ac 100644
--- a/CODE_OF_CONDUCT.html
+++ b/CODE_OF_CONDUCT.html
@@ -386,7 +386,7 @@
Contributor Code of Conduct
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -465,7 +465,7 @@ Contributor Code of Conduct
"url": "https://swcarpentry.github.io/r-novice-gapminder/CODE_OF_CONDUCT.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/CODE_OF_CONDUCT.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/LICENSE.html b/LICENSE.html
index 733a11620..c1eb3ef6e 100644
--- a/LICENSE.html
+++ b/LICENSE.html
@@ -386,7 +386,7 @@
Licenses
- Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -513,7 +513,7 @@ Licenses
"url": "https://swcarpentry.github.io/r-novice-gapminder/LICENSE.html",
"identifier": "https://swcarpentry.github.io/r-novice-gapminder/LICENSE.html",
"dateCreated": "2015-04-18",
- "dateModified": "2024-10-03",
+ "dateModified": "2024-11-05",
"datePublished": "2024-11-05"
}
diff --git a/aio.html b/aio.html
index e790fc8cd..a878a4c50 100644
--- a/aio.html
+++ b/aio.html
@@ -469,7 +469,7 @@
Content from Introduction to R and RStudio
-Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1208,7 +1208,7 @@ OUTPUT<
}
else all.names
}
-<bytecode: 0x55a7b6ed0d80>
+<bytecode: 0x5595a5fd3d80>
<environment: namespace:base>
What’s going on here?
@@ -1508,7 +1508,7 @@ Key Points
Content from Project Management With RStudio
-Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -1770,7 +1770,7 @@ SH<
OUTPUT
--rw-r--r-- 1 runner docker 80K Oct 3 05:23 data/gapminder_data.csv
+-rw-r--r-- 1 runner docker 80K Nov 5 02:52 data/gapminder_data.csv
The file size is 80K.
@@ -1904,7 +1904,7 @@ Key Points
Content from Seeking Help
-Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -2117,8 +2117,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.10 knitr_1.48 xfun_0.47
-[6] renv_1.0.9 evaluate_1.0.0
+[1] compiler_4.4.1 tools_4.4.1 yaml_2.3.10 knitr_1.48 xfun_0.49
+[6] renv_1.0.11 evaluate_1.0.1
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
@@ -2150,7 +2150,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
@@ -2180,7 +2180,7 @@
Solution to Challenge 2
-
+
To look at the help for the paste()
function, use:
@@ -2289,7 +2289,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
@@ -2325,7 +2325,7 @@
Key Points
Content from Data Structures
-Last updated on 2024-10-03 |
+
Last updated on 2024-11-05 |
Edit this page
@@ -2792,7 +2792,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
@@ -3023,7 +3023,7 @@
Tip 1.1
-
+
Show the content of any variable by typing its name.
@@ -3057,7 +3057,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
@@ -3101,7 +3101,7 @@
Tip 1.3
-
+
Scroll up to the section about the type
hierarchy to review the available data types
@@ -3116,7 +3116,7 @@
Solution to Challenge 1.3
-
+