I have just started learning R. I'm trying to execute a simple R program and i'm getting the following error:
Error in rnorm() : argument "n" is missing, with no default.
What could be the reason?
This is my code:
myfunction <- function()
{
x <- rnorm()
mean(x)
}
second <- function(x)
{
x + rnorm(length(x))
}