[R] R help

Spencer Graves spencer.graves at pdf.com
Wed Mar 12 17:30:04 CET 2003


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
> 
> 
> 
> 
> ---------------------------------
> 
> ur needs
> 
> 	[[alternate HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help



More information about the R-help mailing list