. Advertisement .
..3..
. Advertisement .
..4..
When I run my program, I encounter the ”target of assignment expands to non-language object” error.
get("x") <- 1
## Error in get("x") <- 1 :
## target of assignment expands to non-language object
Can you help me to fix it?
The cause: When you attempt to assign value to a variable that doesn’t exist or that R can’t recognize as a
name
, this error will occur.Solution: The solution is either
or simply