Are you sure of your terminology? I may be wrong, but I understand imputation meaning filling in values for missing data, as opposed to excluding rows with missing data.

I like to filter data at the source.

use warnings; use strict; use Data::Dumper; my @rows; while (<DATA>) { my @row = grep { m/[012]/ } split ' '; push @rows, \@row if (scalar @row == 5); } print 'Results: ', Dumper(\@rows); __DATA__ 2 2 0 1 0 2 2 0 2 1 0 2 1 1 0 0 1 1 1 0 2 2 0 0 0 2 9 0 2 1 0 2 0 1 0 2 2 0 9 0
But God demonstrates His own love toward us, in that while we were yet sinners, Christ died for us. Romans 5:8 (NASB)


In reply to Re: Imputation of data by GotToBTru
in thread Imputation of data by garyboyd

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":