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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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