What would be the output if you try to print a variable that doesn't exist in R?

  • A blank output
  • An error message
  • The string "NA"
  • The string "NULL"
If you try to print a variable that doesn't exist in R, you will get an error message stating "Error: object 'x' not found", where 'x' is the name of the non-existent variable. This is because R tries to find the variable in the environment and fails when it does not exist.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *