I installed BERT (R-language to Excel interface). In the functions.R file that is included, i modified the included Add function to use the na.rm
argument, as follows.
Add <- function( ... ) {
sum(..., na.rm=TRUE);
}
However, it appears that the na.rm arugment is ignored. That is, the Add() function works fine in Excel if all values in the range are present. [that is =R.Add(A1:A5) in Excel works fine if all of cells A1:A5 contain values] But if I delete any value in the range (so the Excel cell is blank), I get #NULL! returned.
Is it possible to utilize the na.rm argument, using BERT so that for R-language functions that have the na.rm argument, it is taken into account and blank cells within the Excel range still compute on the remaining values and do not return #NULL!?