Hello all,
I would like a little help with this code. My problem is the following:
Why is this code returning me "NULL" when I try to print out the yearz object?
the split_low object is in my workspace:
split_low
[[1]]
[1] "gauss" "1777"
[[2]]
[1] "bayes" "1702"
[[3]]
[1] "pascal" "1623"
[[4]]
[1] "pearson" "1857"
This is my code:
yearz <- for (i in split_low) {
print(i[2])
}
When I bring up yearz, it return:
"NULL"
I would like it to show every second element in each element of the split_low list. So basically "1777" "1702" "1623" "1857".
Can anyone help? Thank you so much