To create a data.frame or a list I can write
data.frame(yo=1:2, wesh=3:4)
yo wesh
1 1 3
2 2 4
list(yo=1:2, wesh=3:4)
$yo
[1] 1 2
$wesh
[1] 3 4
But if I write
i <- "yo"
data.frame(i=1:2, wesh=3:4)
i wesh
1 1 3
2 2 4
list(i=1:2, wesh=3:4)
$i
[1] 1 2
$wesh
[1] 3 4
The i doesn't update to "yo" in the output. How to make it possible?