Skip to contents

Oneliner that splits a vector (x) into n chunks helpful for string formatting when we have discrete text we want to avoid splitting

Usage

chunk(x, n)

Arguments

x

a vector (not-necessarily atomic) to split

n

numeric number of bins to split x into