Leeds-CDRC / nutrientprofiler

🍎📦 nutrientprofiler package
https://leeds-cdrc.github.io/nutrientprofiler/
Other
4 stars 3 forks source link

add as.numeric call to food ifelse #23

Closed Sparrow0hawk closed 1 year ago

Sparrow0hawk commented 1 year ago

this keeps it consistent with all other functions here.

This is to get the behaviour right for:

apply(test_data, 1, SGConverter)

However this isn't a good way to do this as it coerces types into characters. A better way to do this is coming in another PR.