Addition Error in R

Hi,

I am new to R, Can you help me out from the below error:
image

Regards,
Srenivaskannna

What is x and what is y?
What are you expecting r to be ?

2 Likes

I want to store two numbers in X and y
Then I want to add those values in r

Like
r result will be
15

It looks like you haven't run the commands in the source pane. Use ctrl+enter to run individual lines or click the Run button to run the entire script.

1 Like

Unless there is an X and Y variable elsewhere, your code is storing values into "q" and "e". If you ran:

q <- 15
e <- 5 # these are values in your code

# -- Then
r <- q + e

# you would get the desired result
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.