Error message because of quotation mark

Machine Learning

This is my code:

summary(data$diff`GBP/EUR`)
But the error message says: 

Error: unexpected symbol in "summary(data$diff`GBP/EUR`"

1
Answers

Replies

You can try the below code to get the error rectified.



summary(data[["diff`GBP/EUR`"]])



Hopefully, it should work.

 
 

If you want to unleash your potential in this competitive field, please visit the Machine Learning course page for more information, where you can find the Machine Learning tutorials and Machine Learning frequently asked interview questions and answers as well.

 

This topic has been locked/unapproved. No replies allowed

Login to participate in this discussion.

Leave a reply

Before proceeding, please check your email for a verification link. If you did not receive the email, click here to request another.