data2mat function

Convert field records to community matrix