[R] R help

Mäkinen Jussi Jussi.Makinen at valtiokonttori.fi
Thu Mar 13 09:04:40 CET 2003


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:petr.pikal at precheza.cz]
Sent: Thursday, March 13, 2003 9:45 AM
To: Shutnik
Cc: r-help at stat.math.ethz.ch
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
petr.pikal at precheza.cz
p.pik at volny.cz

______________________________________________
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