it doesn't work means that
a) it throws an error ?
--- please share the error
b) it gave incorrect results
--- please describe how the results are incorrect
even better may be to make a reprex of your issue
it doesn't work means that
a) it throws an error ?
--- please share the error
b) it gave incorrect results
--- please describe how the results are incorrect
even better may be to make a reprex of your issue