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