helper function to split a vector to approximately equally sized chunks

split_to_chunks(vec, chunkSize)

Arguments

vec

a vector

chunkSize

integer, how long should the chunks be?

Value

a list of chunks