Spencer Graves wrote:
Regarding 1 and 2:

myfunction <-
function(m=2, n=3) array(rnorm(m*n), dim=c(m, n))


myfunction()

I'll let someone else answer 3.
Spencer Graves

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?

Thank you.

Regards,

Max


Edit ~/.Rprofile - add line library(e1070)

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to