During startup - Warning messages: 1: Setting LC_COLLATE=C.UTF-8 failed 2: Setting LC_CTYPE=C.UTF-8 failed 3: Setting LC_MONETARY=C.UTF-8 failed 4: Setting LC_TIME=C.UTF-8 failed > seedlings <- data.frame(seedling = c("A", "B", "C", + "D", "E", "F"), height_cm = c(8, 11, 9, 14, 12, 18)) > print(seedlings) seedling height_cm 1 A 8 2 B 11 3 C 9 4 D 14 5 E 12 6 F 18 > nrow(seedlings) [1] 6 > ncol(seedlings) [1] 2 > names(seedlings) [1] "seedling" "height_cm" > seedlings$height_cm [1] 8 11 9 14 12 18 > mean(seedlings$height_cm) [1] 12 > seedlings[3, ] seedling height_cm 3 C 9 > seedlings[3, "height_cm"] [1] 9 > barplot(seedlings$height_cm, names.arg = seedlings$seedling, + col = "#0066CC", border = NA, ylim = c(0, 20), xlab = "Seedling", + ylab = .... [TRUNCATED] > practice <- seedlings[c(2, 5), ] > print(practice) seedling height_cm 2 B 11 5 E 12 > sum(practice$height_cm) [1] 23 > mean(practice$height_cm) [1] 11.5 null device 1 seedling height_cm 1 A 8 2 B 11 3 C 9 4 D 14 5 E 12 6 F 18 seedling height_cm 2 B 11 5 E 12 null device 1