However above results in a vector output if there's a tie in maximum word count.
Perhaps using the below would solve the issue? I can PR if it seems fine. Thank you.
if (length(product.descr) > 1) { product.descr <- product.descr[which.max(words.count)] }
Intended is scalar output by choosing word count being maximum: https://github.com/Gunratan/edgar/blob/b2f9b47fa3722f03b81e7adb9c8ec94b576bc823/R/getBusinessDescr.R#L219
However above results in a vector output if there's a tie in maximum word count. Perhaps using the below would solve the issue? I can PR if it seems fine. Thank you.
if (length(product.descr) > 1) { product.descr <- product.descr[which.max(words.count)] }