Re: Question about writing a function in R
- From: clemenr@xxxxxxxxxx
- Date: 30 Aug 2005 08:48:17 -0700
Disclaimer: I'm no expert statistician, but that rarely shuts me up.
Does the following not go some of the way to doing what you want to do?
> dat <- function( x )
+ {
+ c( mean( x ), sd( x ))
+ }
> dat( c( 1, 2, 3, 4 ))
[1] 2.500000 1.290994
>
Cheers,
Ross-c
.
- References:
- Question about writing a function in R
- From: Bart
- Question about writing a function in R
- Prev by Date: Re: Question about writing a function in R
- Next by Date: Re: One way anova
- Previous by thread: Re: Question about writing a function in R
- Next by thread: Re: Question about writing a function in R
- Index(es):
Relevant Pages
|
|