You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some weird cases such as ", Carpenter, CBS. Bissell, CBS." that breaks down the function's logic due to the remaining trailing comma at the beginning of the string. This only happens, however, when the argument invert = TRUE
This is plantR::prepName, which has plantR:::lastName inside
> plantR::prepName('1919, Nichols, Yale. 1908, Clark, CBS, UCONN.; 1908, Carpenter, CBS. 1901 Bissell, CBS.
+ ')
Error in gsub(x, "", y, fixed = TRUE) : padrão de comprimento 0
The error in plantR:::lastName occurs exactly here:
There are some weird cases such as
", Carpenter, CBS. Bissell, CBS."
that breaks down the function's logic due to the remaining trailing comma at the beginning of the string. This only happens, however, when the argumentinvert = TRUE
This is plantR::prepName, which has plantR:::lastName inside
The error in
plantR:::lastName
occurs exactly here:I can solve this by adding a substitution right after
if(invert)
step:It is also possible to add this
gsub
right at the beginning of the function, around here:It fixes the issue for me, although a bit hard-coded 😜
The text was updated successfully, but these errors were encountered: