That’s probably a very easy one, but I cannot solve my issue. The below code returns an error:
person = c("name", "surname")
list(person[1]= "John")
Error : '=' unexpected in "list(person[1]="
I would like it to return:
$name
[1] "John"
Can StackOverflow help me with this?
Perhaps the following will be of use: