# invoke user defined function
myFunc ( newdata=nmpr_nmproid,
oridata=xanloid_set,
cohort=xanloid_set$cohort_type,
value= NMPR_Cohort,
xdate_to_int_time=anl_to_int_time,
xflag=xanloid_set$anlflag,
idate=xanloid_set$intdate,
Hello,
I am reposting my question with a reproducible example/minimal dataset (6 rows)
this time.
I have written a user-defined function (myFunc below) with ten arguments. When
calling the function, I get the following message: �Error: wrong result size
(0), expected 2 or 1�.
I am not getting
Hello,
I have written a user-defined function (myFunc below) with ten arguments. When
calling the function, I get the following message: �Error: wrong result size
(816841), expected 52939 or 1�.
myFunc involves a data frame (named xanloid_set), which has 816841 rows. R is
correct to say that
3 matches
Mail list logo