Hi,
Let's say that I have an array with 100,000 rows and two columns (total
height and stem diameter for trees), and that I have defined a
stem.volume (non-linear, by the way) function that requires total height
and stem diameter as arguments.
Is it possible to use apply in some way to calculate stem.volume?
All examples that I have seen for 'apply' use functions with only a
single argument. Is there a more general way of using apply for more
complex functions? I just want to avoid using an explicit loop.
Cheers,
Luis
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dr Luis A. Apiolaza
Principal Forest Biometrician
Forestry Tasmania
GPO Box 207
Hobart Tas 7001
Australia
email: Luis.Apiolaza@forestrytas.com.au
phone: +61-3-6233 8127
web: http://www.forestrytas.com.au
http://uncronopio.org
"All I want is a warm bed, a kind word,
and unlimited power" --Ashleigh Brilliant
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------
This transmission is intended solely for the person or
organisation to whom it is addressed.
It is confidential and may contain legally privileged
information. If you have received this transmission in
error,you may not use, copy or distribute it.
Please advise us by return e-mail or by phoning 61 3 62338203
and immediately delete the transmission in its entirety.
We will meet your reasonable expenses of notifying us.
Despite our use of anti-virus software, Forestry Tasmania
cannot guarantee that this transmission is virus-free.
-----------------------------------------------------
|