# Aufgabe 1
library(tidyverse)
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr 1.1.4 ✔ readr 2.1.5
✔ forcats 1.0.0 ✔ stringr 1.5.1
✔ ggplot2 3.5.1 ✔ tibble 3.2.1
✔ lubridate 1.9.3 ✔ tidyr 1.3.1
✔ purrr 1.0.2
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
#1.1
library(readr)
<- read_csv("https://raw.githubusercontent.com/raphaelbalzer/Tutorium_QM1_SoSe23/main/Jurassic_Park.csv") Jurassic_Park
New names:
Rows: 291 Columns: 11
── Column specification
──────────────────────────────────────────────────────── Delimiter: "," chr
(9): name, diet, period, lived_in, type, taxonomy, named_by, species, link dbl
(2): ...1, Length
ℹ 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.
• `` -> `...1`
#1.2
head(Jurassic_Park, n = 10)
...1 <dbl> | name <chr> | diet <chr> | |
---|---|---|---|
19 | confuciusornis | carnivorous | |
20 | shanag | carnivorous | |
21 | archaeopteryx | carnivorous | |
22 | microceratus | herbivorous | |
23 | compsognathus | carnivorous | |
24 | micropachycephalosaurus | herbivorous | |
25 | shuvuuia | omnivorous | |
26 | gasparinisaura | herbivorous | |
27 | juravenator | carnivorous | |
28 | microraptor | carnivorous |
#1.3
tail(Jurassic_Park, n = 10)
...1 <dbl> | name <chr> | diet <chr> | |
---|---|---|---|
300 | lurdusaurus | herbivorous | |
301 | maiasaura | herbivorous | |
302 | malawisaurus | herbivorous | |
303 | megalosaurus | carnivorous | |
304 | poekilopleuron | carnivorous | |
305 | saurolophus | herbivorous | |
306 | sonidosaurus | herbivorous | |
307 | stegosaurus | herbivorous | |
308 | triceratops | herbivorous | |
309 | yimenosaurus | herbivorous |