Skip to content
Prev 305132 / 398506 Next

Solving a system of two equations

On 10-09-2012, at 17:10, berg1546 wrote:

            
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