library(tidyverse)
data1 <- read_csv("/home/inqs/Repos/M408_S23/files/data/data_3_1.csv")
Rows: 1000 Columns: 10── Column specification ────────────────────────────────────────────────────
Delimiter: ","
chr (3): ID1, cat1, cat2
dbl (7): var1, var2, var3, var4, var5, var6, var7
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
data2 <- read_csv("/home/inqs/Repos/M408_S23/files/data/data_3_2.csv")
Rows: 1000 Columns: 5── Column specification ────────────────────────────────────────────────────
Delimiter: ","
chr (3): ID1, ID_1, ID_2
dbl (2): va1, va2
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
Load data data_3_1.csv
and
data_3_2.csv
.
data1
NA
Load the following data: https://m408.inqs.info/files/data/data_3_3.csv
Merge data sets data_3_1.csv
and
data_3_2.csv
using the full_join()
Using the penguins
dataset from
palmerpenguins
, create a new variable that is the ln of
flipper_length_mm
.
Using the penguins
dataset from
palmerpenguins
, only select the variables that are
continuous data points.
Using the penguins
dataset from
palmerpenguins
, filter the data set to look at penguins
that are a Gentoo species.
Using the penguins
dataset from
palmerpenguins
, create a new variable that dichotomizes a
penguin if their bill is longer than the average
bill_length_mm
.
Using the penguins
dataset from
palmerpenguins
, group by species and find the average ln
flipper_length_mm