Problem with "sum" in RStudio

0

I have a problem with the sum function in RStudio that returns the error that attachment. I know it's an error that should not occur because it's not from the code. I have already reinstalled RStudio and it still gives the same error. This error does not occur in R or RStudio on another laptop. What do you advise me to do? Is there a package that corrects this?

x <- sample( 6, 1000, replace = T) sum ( x == 3)

Error

Error in sum(x == 3) : argument "x" is missing, with no default

    
asked by anonymous 11.11.2018 / 22:41

1 answer

0

The issue was solved with the help of Lucas Miranda and the solution was to clear the memory of RStudio through the command rm(sum) because there was a function with the name of sum that was generating conflict with the summation operation

    
12.11.2018 / 22:58