Basic R
Eks.spg.
Portfolio 1
Portfolio 2
Portfolio 3
100

The basic R-language

What is mutate, filter, select, arrange, summarise and group by?

100
Characters 

Integers
Doubles 

What is:

Text?
Whole number?
Decimal numbers? 

100

More animal rescues after covid years

What is the result of people getting more animals during the covid-years because people didn't know the responsibilities of having animals when life was normal again?

100

Color choice 

What is appealing colors for children?

100

Important when making a value box

:::

:::

200

Arrange and count

How do you sort out your rows in your dataset (and make it descending) and count how many rows presenting in each category?

200

The different codes to rename and what they are doing.

What is rename that changes the columns names (Age = age)? - new name in front. 

What is stringer::str_to_title? - makes the first letter in each word capital letter. 

What is to_upper/to_lower? - makes the text capital or small letters. 

What is janitor::clean_names? - cleans column names to make it easier to work with. 

200
Definition of ward vs borough
What is a division or district of city or town for administrative or political purposes (kvarter)?

What is a town or district that is an administrative unit (bydel)? 

200

Beeswarm

What is all individual observations, more informative in box plot and easy to see the distribution?

200
Our dashboard can be used for 

What is management decisions, seasonal analysis in reproduction and documentation to farm reports. 

300
Select vs filter

What chooses variables (columns) you want to keep, remove or reorder vs chooses rows based on conditions fx. a specific species or length that you want to work with or not?

300
Pivot_longer vs pivot_wider
How to make data longer by collecting them in fewer columns and put them in more rows vs how to make data wider by spreading rows into more columns? 
300
Landline and mobile could be used alone in the graph by

What is filter(originalof_call %in% c("landline", "mobile")) |> ?

300

Left_join is used for 

What keeps all rows from avg_age and keeps the information about the oldest lemur in each group that is found in slice_max?

300

The stacked barchart shows 

What is birth month from jan-dec (x) and number of calves (y) and size categories in colors?

400

Summarise and group_by

How do you create one row pr group so it is easy to calculate mean, sum, median or count? How to group one species by using group_by? Not group gives the result of fx the mean for the whole column?

400

The random variable where I have measured something and it has a zero. 

The random variable where I have a species.

The random variable where I fx. have a temperature. 

The random variable where I how yes or no.

The random variable where I have a scale from fx. 1-10 in pain. 

 

What is continuous ratio scale?

What is discrete nominal?

What is continuous interval scale?

What is binary? 

What is discrete ordinal?

400

Change Unknown Domesticated Animal

What is mutate(animal_group_parent =  case_when(animal_group_parent == "Unknown - Domestic animal or Pet ~ Domestic animal or pet, TRUE ~ animal_group_parent)?

400

Latin_name are removed

What is selecting all the columns but the one with the latin_name?

400

.groups = "drop") 

What is deleting all grouping because there only has to be one row pr month?
500

Mutate 

What creates new variables or transforms existing ones while keeping all rows in the dataset? 

500

ggplots makes the graphs.

Geoms specify how the grafical shape are displaying your data. 

Is used for scatterplots. Shows relationships between two numerical variables. Good for visualizing and identifying outliers.

Creates bar charts where the height represents the number of observations in each category. By default it uses stat = "count", meaning it counts the observations automatically. 

Similar to you provide the height (y) by yourself, by summarizing your data. 

Shows the distribution of a numerical variable. The data is divided into bins and the height shows how many observations fall into each bin.

Draws lines connecting points in order.
 
Shows distribution and spread: median, quartiles and outlines. Useful for comparing groups. 

What is geom_point?

What is geom_bar?

What is geom_col?

What is geom_histogram?

What is geom_line?

What is geom_boxplot?

500
Find a way to make % of the cost for each animal and not only what all the species cost
What is idk? Talk about it and continue when you found the solution. 
500

Join_by is helping left_join

What is by telling what rows needs to be matched between two tables.

500

Important when making a drop-down menu

What is a R-chunk (server) by shiny with parameters after the input and output code?

M
e
n
u