View source: R/byGridCell_ScalarOps.R
| byGridCell_ScalarOps | R Documentation |
Function to perform a scalar operation on grid cell values.
byGridCell_ScalarOps(
dfr1,
op = "+",
scalar = 0,
cols = c("unsuccessful_indivs", "successful_indivs", "total_indivs",
"unsuccessful_abundance", "successful_abundance", "total_abundance")
)
dfr1 |
- dataframe with results by grid cell |
op |
- operation to perform ("+","-","*","/","\","^","log","sqrt") |
scalar |
- scalar value to use |
cols |
- dataframe column names to scale |
Columns in datafram not specified in cols are returned unchanged.
"/" performs grid/scalar whereas "\" performs scalar/grid.
dataframe with results in requested columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.