Try (run..): rnorm(1, 0, 1) # (or in this case rnorm(1) - check ?rnorm)
aaa <- function(x) x + 1 aaa(1) ?.First Regards, Jussi -----Original Message----- From: Petr Pikal [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 9:45 AM To: Shutnik Cc: [EMAIL PROTECTED] Subject: Re: [R] R help Hi On 12 Mar 2003 at 15:45, Shutnik wrote: > Dear friends, > I work with Matlab and now a bit in trouble with getting used to R. > Could you give me some help with the following questions: > > 1. how to generate the random matrix mxn with constant mean and > variance, say N(0,1)? > > 2. how to create a code (function), say ômyfunctionö, and make it > available for use every time I run R? > > 3. how to make a package, say ôe1071ö, available for use without > loading it every time when I start R? > On Windows I use this .Rprofile file in working directory to load three libraries, one data set and change graphic background to white. Its just a plain text file. library(fun) library(modreg) library(ts) data(stand) par(bg="white") > Thank you. > > Regards, > > Max > Cheers Petr Pikal [EMAIL PROTECTED] [EMAIL PROTECTED] ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
