Error saying "object 'mvnorm' not found"

0 votes

I am using R and my function has following lines of code:

pd <- Posdef(10, ev=1:10)
spd <- Symm(pd)
mu1 <- c(1:10)
data = MASS:::mvnorm(1000,mu1,spd)

But I am getting the error:

Error in get(name, envir = asNamespace(pkg), inherits = FALSE) (from func1.R@11#7) : 
object 'mvnorm' not found
Nov 9, 2018 in Data Analytics by Ali
• 10,400 points
56 views

1 answer to this question.

0 votes

You seem to have made a small spelling mistake.

MASS::mvrnorm
answered Nov 9, 2018 by Maverick
• 10,040 points

Related Questions In Data Analytics

+1 vote
1 answer

Error saying object not found in R

Change your link_addr to linkAddr and it ...READ MORE

answered Dec 11, 2018 in Data Analytics by Maverick
• 10,040 points
634 views
0 votes
1 answer

What does “Error: object '<myvariable>' not found” mean?

The error means that R could not ...READ MORE

answered Oct 29, 2018 in Data Analytics by Ali
• 10,400 points
36 views
0 votes
1 answer

"Error in eval(ei, envir) : object 'RDX2' not found" when trying to source the code in R

This is a very common issue that ...READ MORE

answered Oct 30, 2018 in Data Analytics by Maverick
• 10,040 points
550 views
0 votes
1 answer

": cannot open the connection" Error in R

There can be two reasons for this ...READ MORE

answered Oct 31, 2018 in Data Analytics by Kalgi
• 40,440 points
446 views
0 votes
1 answer

“subscript out of bounds” Error in r programming

This error is likely to occur when ...READ MORE

answered Oct 31, 2018 in Data Analytics by Kalgi
• 40,440 points
1,418 views
0 votes
1 answer

What does “replacement has” Error mean?

This error occurs when one tries to ...READ MORE

answered Oct 31, 2018 in Data Analytics by Kalgi
• 40,440 points
39 views
0 votes
1 answer

Errors saying "Error: unexpected '}' in "}"

This is a syntax error: Enclose your if ...READ MORE

answered Nov 8, 2018 in Data Analytics by Maverick
• 10,040 points
358 views
0 votes
1 answer