3
I have a "course" list in R, it consists of 98 items, each item has one or two variables of type Character. I want all the first variables of each item in the list, but when typing the command:
course[[1:98]][1]
I get the following error in the console: Error in travel[[1:98]] : recursive indexing failed at level 2
I have no idea what it is, the syntax I used seems to be the right one, nor is it anything complex. I’m very frustrated with it, can help me?
The operator
[
acts as a function, can pass it directly to *apply:lapply(teste, "[[", 2)
– Carlos Eduardo Lagosta