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
When I run the functions get_tracking or get_all_tracking I'm returned the error [1] "Can't convert `replace` <double> to match type of `data` <character>." The problem stems from the internal call to check_if_numeric.
When the function encounters a column that is all character data (e.g., player names) you'll get an error here, instead of a warning, due to the way it's used.
I would be remiss not to mention that mutate_if is deprecated, as well.
Although I did not explore all the ways this function is used, I was curious as to why type.convert() from the R utlils package wasn't used instead. (There may be a very good reason for that!)
I didn't do anything that I would consider a thorough examination, but using type.convert worked for me.
Hello, thank you for the issue and thorough review! I have to admit the package is kind of abandoned since I stopped using R and importing the data myself. I guess its good time to refresh it a bit - I will have a look and try to fix the issue.
When I run the functions
get_tracking
orget_all_tracking
I'm returned the error[1] "Can't convert `replace` <double> to match type of `data` <character>."
The problem stems from the internal call tocheck_if_numeric
.Here's code to make this reproducible.
When the function encounters a column that is all character data (e.g., player names) you'll get an error here, instead of a warning, due to the way it's used.
I would be remiss not to mention that
mutate_if
is deprecated, as well.Although I did not explore all the ways this function is used, I was curious as to why
type.convert()
from the Rutlils
package wasn't used instead. (There may be a very good reason for that!)I didn't do anything that I would consider a thorough examination, but using
type.convert
worked for me.The text was updated successfully, but these errors were encountered: