Hello,
I'm trying to use the DAPSm package to look at the difference in above ground biomass between two forest treatment types that are spread across a large region. Because I have a lot of data points, I've been trying to use the "fast search of the optimal weight," but I keep getting this error:
Error in if (!any(abs(stand_diff) > cutoff)) { : missing value where TRUE/FALSE needed
My data frame has all of the variables you detail in your DAPSm vignette, so I'm not sure what I'm doing wrong. If you have any ideas, or you have dealt with getting past this error, I would much appreciate some help, as I am pretty new to coding. Here's my dapsm code for reference.
daps <- DAPSest(edges_100, out.col = 9, trt.col = 24, caliper = 0.3, weight = 'optimal', coords.columns = c(2, 1), pairsRet = TRUE, cov.cols = 20, cutoff = 0.15, w_tol = 0.001, coord_dist = TRUE, caliper_type = 'DAPS', matching_algorithm = 'greedy')
Cheers!
Hello,
I'm trying to use the DAPSm package to look at the difference in above ground biomass between two forest treatment types that are spread across a large region. Because I have a lot of data points, I've been trying to use the "fast search of the optimal weight," but I keep getting this error:
Error in if (!any(abs(stand_diff) > cutoff)) { : missing value where TRUE/FALSE neededMy data frame has all of the variables you detail in your DAPSm vignette, so I'm not sure what I'm doing wrong. If you have any ideas, or you have dealt with getting past this error, I would much appreciate some help, as I am pretty new to coding. Here's my dapsm code for reference.
daps <- DAPSest(edges_100, out.col = 9, trt.col = 24, caliper = 0.3, weight = 'optimal', coords.columns = c(2, 1), pairsRet = TRUE, cov.cols = 20, cutoff = 0.15, w_tol = 0.001, coord_dist = TRUE, caliper_type = 'DAPS', matching_algorithm = 'greedy')Cheers!