Solution to Exercise 1

See if you were right in exercise 1!

Task : Data about size and weight

create vectors: vector <- c(…, …, …)

size <- c(1.67,1.8,1.58,1.83,1.65,1.74,1.8,1.6,1.76,1.8)
height <- c(62,78,56,85,58,70,70,120,62,90)
state <- c("NRW", "Bayern", "Sachsen", "Hessen", "Hessen", "MV", "Hessen", "Brandenburg", "Hessen", "Berlin")

size
height
state

[1 ] 1.67, 1.8, 1.58, 1.83, 1.65, 1.74, 1.8, 1.6, 1.76, 1.8

[1] 62, 78, 56, 85, 58, 70, 70, 120, 62, 90

[1] NRW, Bayern, Sachsen, Hessen, Hessen, MV, Hessen, Brandenburg, Hessen, Berlin

Updated: