stored values within a custom function
Posted
by romunov
on Stack Overflow
See other posts from Stack Overflow
or by romunov
Published on 2010-04-24T06:47:15Z
Indexed on
2010/04/24
6:53 UTC
Read the original article
Hit count: 263
My program takes a data.frame and crunches the numbers. At one point, values from j-th column are multiplied by a predefined values that depends on the column name (species name, actually - it's en ecological index). So far, I've been providing these values via a second data.frame by matching column names. What would be an efficient way of integrating fixed variable values within a function? I would like my program to be as portable as possible, without the need for a second data.frame file.
© Stack Overflow or respective owner