create data suitable for R processing