> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of Jean V Adams
> Sent: Thursday, November 08, 2012 3:52 PM
> To: nicolapon
> Cc: r-help@r-project.org
> Subject: Re: [R] Beginner help about output in R
>
Nicolas,
Maybe something like this would work for you. Put all of your x values in
a list (or a vector, if your x values are scalars). Use sapply to loop
through all of your x values, applying the value1() and value2()
functions, and saving the results in a data frame. Then write the data
f
On Nov 8, 2012, at 9:14 PM, nicolapon wrote:
> Dear R experts,
>
> I am a beginner with R and I have a question regarding the output of a
> function.
>
> Basically, I created 2 functions, value1 and value2, that calculate two
> values, and I would like to print those two values to an output d
3 matches
Mail list logo