Is there a function/package for this?
Is there a function/package for this?