a = load('in', :schema => %w(x y z w)) %w(x y z w).each do |f| r = a.group(f) store(r, 'out-' + f) end