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
It took me a while to find out capture_first_vec() offers a way to do type conversion:
Each function must be un-named, and is used to convert the previous capture group.
This is nice, but maybe "too much" flexibility. I think utils::type.convert() would offer a much simpler interface here, instead of 4 different as.integer entries, I could just pass type.convert=TRUE and let R figure out the appropriate type for me. That's also the approach data.table::tstrsplit() takes which would make it more familiar as well.
The text was updated successfully, but these errors were encountered:
Finally giving {nc} a try, it's quite handy!
It took me a while to find out
capture_first_vec()
offers a way to do type conversion:This is nice, but maybe "too much" flexibility. I think
utils::type.convert()
would offer a much simpler interface here, instead of 4 differentas.integer
entries, I could just passtype.convert=TRUE
and let R figure out the appropriate type for me. That's also the approachdata.table::tstrsplit()
takes which would make it more familiar as well.The text was updated successfully, but these errors were encountered: