# Make a vector
<- c("a", "b", "c", "d", "e")
my_vec
# Use bracket notation to retrieve one element
3] my_vec[
[1] "c"
After today’s session you will be able to:
install.packages
requires the package name be in quotes
library
requires requires unquoted names.install.packages
= buying a set of tools from the store and putting them in your home
library
= moving the tools that you already own to your workbench
palmerpenguins
package
library
function
?palmerpenguins
to see the package-level help file
package::function()
palmerpenguins
includes an example dataset on penguinspeng_df <- palmerpenguins::penguins
dplyr
package
dplyr
has a function called glimpse
that shows you core structures of data
glimpse
and run it on peng_df
class(class)
str(str)
letters
letters
to an object called my_vec
my_vec
using the length
function
my_vec
using bracket notation
my_vec
c
)!