statistics - Random vector a with elements from the uniform distribution in R -


i'm new r , i'm looking through book called "discovering statistics using r".

although book implies don't need statistical background, of content isn't covered/explained...

i'm wondering how simulate random vector 200 elements uniform distribution on interval (-50, 50).

maybe i'm unsure because of terminology used. example created vector 200 elements range inbetween -50 , 50... i'm checking if correct.

or there function generates random values there in java? haven't found on google either regarding r providing random values.

runif(200, -50, 50) 

will trick.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -