writeSeriesPrepro function

Write prepro data