how do I find sum?

How do I find sum of x1 and x2?
sum(x1) doesn't work

If sum(x1) is returning NA, try sum(x1, na.rm = TRUE). If that does not solve the problem, please describe in what way sum(x1) is not working.

It shows nothing
I have no idea because everything doesn't work like plot, hist, sum etc

It looks like you have no executed the code, you have only typed it. Place the cursor on line 42 and press CTRL + Enter. Alternatively, place the cursor on line 42 and click the Run icon that is near top right of the Code pane. Either of those will execute the line and you will see the result in the Console.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.