I want to extract value from list into numeric
This is my list str(maxenv)
$ x: num [1:36] 1 2 3 4 5 6 7 8 9 10
$ y: num [1:36] 157 94.2 75.1 88.7 124
I want to get value of y
So the result should be
y = 157 94.2 75.1 88.7 124
I have tried but didnt work
sapply(maxenv, '[', 'y')