[R] Solving a system of two equations
Berend Hasselman
bhh at xs4all.nl
Mon Sep 10 19:19:37 CEST 2012
On 10-09-2012, at 17:10, berg1546 wrote:
> Thank you for your suggestion - my only question is what is the 'par'
> variable?
>
>
par is the argument of the function f.
So when you do
a <- c(2,3)
f(a)
then in the body of the function par will be equal to c(2,3).
I strongly advise you to read the chapter 10 "Writing your own function" in the "An Introduction to R" manual (http://cran.r-project.org/doc/manuals/R-intro.html).
Berend
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Solving-a-system-of-two-equations-tp4642626p4642657.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list