I wondered what causes the differences between these 2 commands:
apply(DF,2,is.numeric)
c(ID = FALSE, diet = FALSE, height = FALSE, weight = FALSE, gender = FALSE,
wohn = FALSE, social = FALSE, alter = FALSE, d13C = FALSE, d15N = FALSE,
ferr = FALSE, VitB = FALSE)
sapply(DF,is.numeric)
c(ID = FALSE, diet = FALSE, height = TRUE, weight = TRUE, gender = FALSE,
wohn = FALSE, social = FALSE, alter = TRUE, d13C = TRUE, d15N = TRUE,
ferr = TRUE, VitB = TRUE)
I thought I could use the first one for data frames too? Many thanks