[R] R help

M.Kondrin mkondrin at hppi.troitsk.ru
Thu Mar 13 04:50:04 CET 2003


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)



More information about the R-help mailing list