Var1 in Kleinbuchstaben ist eine Liste:R Convert Liste
var1 <- list(c("Parts of a Day", "Time in Astronomy", "Star"), c("Tree Tall", "Pine Tree"))
Wie alle Zeichen konvertieren in Kleinbuchstaben? Die gewünschte Antwort ist die folgende Liste:
var1 <- list(c("parts of a day", "time in astronomy", "star"), c("tree tall", "pine tree"))
I
verwendetas.list(tolower(var1))
Aber es gibt die folgende Antwort mit unerwünschten \
[[1]]
[1] "c(\"parts of a day\", \"time in astronomy\", \"star\")"
[[2]]
[1] "c(\"tree tall\", \"pine tree\")"
Dank.
Warum 'sapply' und nicht' lapply'? Hier ist keine Vereinfachung erforderlich. – thelatemail