udaje <- data.frame(
Year = 2014:2024,
GDP = c(1805.7, 1556.5, 1528, 1649.3, 1725.3, 1743.7,
1655.7, 2022.4, 2190.4, 2173.3, 2243.6),
GDP.pc = c(50961, 43594, 42314, 45130, 46539, 46353,
43538, 52887, 56257, 54220, 54340),
Inflation = c(1.91, 1.13, 1.43, 1.6, 2.27, 1.95,
0.72, 3.4, 6.8, 3.88, 2.38),
Unemployment = c(7.02, 6.95, 7.04, 6.43, 5.84, 5.69,
9.66, 7.53, 5.28, 5.42, 6.35),
Trade.balance = c(-0.91, -2.46, -2.36, -2.19, -1.95, -1.47,
-2.21, 0.1, 0.57, 0.07, -0.26)
)
potrebne <- c("GDP.pc", "Unemployment", "Inflation", "Trade.balance")
udaje9 <- udaje[, potrebne]
stopifnot(all(is.finite(as.matrix(udaje9))))
data.frame(Obdobie = "2014–2024", Pocet_rokov = nrow(udaje9),
Premenne = paste(names(udaje9), collapse = ", ")) |>
kable(caption = "Údaje použité v cvičení") |>
kable_styling(bootstrap_options = c("striped", "hover"), full_width = FALSE)