0

i am relatively new to R and need to create an object "Sigma".

Can anyone give me a concise answer as I feel like Im pulling my hair out?

TIA

  • 2
  • What do you want your object `Sigma` to contain? Check out [how to ask](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) for tips on how to get the most helpful answer possible. – A. S. K. Mar 24 '20 at 02:50
  • Hi. This is what I have to do " Using the rnorm function, create an object called sigma " I understand that rnorm is (N, Mean = 0,sd = 0) but then I am confused with sigma . – R Ranger Mar 24 '20 at 11:12

1 Answers1

1

One approach to create an object is to call the generic of the class of object you want. For example, if you wanted to create a vector, you'd call vector

Sigma <- vector() 

Other options include matrix, list and data.frame.

Ian Campbell
  • 21,281
  • 13
  • 26
  • 51