-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revision session 1.1 and 1.2 #47
base: main
Are you sure you want to change the base?
Conversation
Added slides part 1.1 Revisions rmd files session 1.1 and 1.2
Thank you!Thank you for your pull request 😃 🤖 This automated message can help you check the rendered files in your submission for clarity. If you have any questions, please feel free to open an issue in {sandpaper}. If you have files that automatically render output (e.g. R Markdown), then you should check for the following:
Rendered Changes🔍 Inspect the changes: https://github.com/carpentries-incubator/r-geospatial-urban/compare/md-outputs..md-outputs-PR-47 The following changes were observed in the rendered markdown documents:
What does this mean?If you have source files that require output and figures to be generated (e.g. R Markdown), then it is important to make sure the generated figures and output are reproducible. This output provides a way for you to inspect the output in a diff-friendly manner so that it's easy to see the changes that occur due to new software versions or randomisation. ⏱️ Updated at 2024-05-07 09:59:52 +0000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @KyriJanssen! I left some comments and suggestions.
@@ -317,6 +304,7 @@ download.file( | |||
) | |||
|
|||
``` | |||
The data we just downloaded is data about country statistics, containing information on, for instance, GDP and life-expectancy. We will work with this data later this morning |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, I would remove references to dayparts (e.g., "this morning") as the lesson should fit any other set-up (e.g., run in four afternoons) when run by others.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: callout | ||
|
||
### Escaping | ||
|
||
The console shows it's ready to get new commands with `>` sign. | ||
It will show `+` sign if it still requires input for the command to be executed. | ||
|
||
Sometimes you don't know what is missing/ you change your mind and | ||
want to run something else, or your code is running much too long | ||
and you just want it to stop. | ||
The way to do it is to press <kbd>Esc</kbd>. | ||
|
||
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this callout deleted entirely? What's the reason?
You can also inspect vectors with `str()` function. In factor vectors, | ||
it shows the underlying values of each category. | ||
You can also see the structure in the environment tab of RStudio. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can also inspect vectors with `str()` function. In factor vectors, | |
it shows the underlying values of each category. | |
You can also see the structure in the environment tab of RStudio. | |
You can also inspect vectors with the `str()` function. In factor vectors, | |
it shows the underlying values of each category. | |
The structure of an object can also be examined in the Environment tab of RStudio. |
@@ -139,7 +147,13 @@ is.na(with_na) # This will produce a vector of logical values, | |||
# stating if a statement 'This element of the vector is a missing value' | |||
# is true or not | |||
|
|||
#in order to see how many values are missing in our with_na vector, we can use the sum function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#in order to see how many values are missing in our with_na vector, we can use the sum function | |
# to see how many values are missing in our with_na vector, we can use the sum function |
So far we've looked on individual values, such as x <- 100. Now we will move to a data structure | ||
called vectors. Vectors are arrays of values of the same data type. So now we combine multiple values into one object: | ||
x <- c(100, 200) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far we've looked on individual values, such as x <- 100. Now we will move to a data structure | |
called vectors. Vectors are arrays of values of the same data type. So now we combine multiple values into one object: | |
x <- c(100, 200) | |
So far we've looked at individual values, such as x <- 100. Now we will move to a data structure | |
called vectors. Vectors are arrays of values of the same data type. So now we combine multiple values into one object: | |
x <- c(100, 200) |
Added slides part 1.1
Revisions rmd files session 1.1 and 1.2