kayj has asked for the wisdom of the Perl Monks concerning the following question:
I have data with patients information ( a tab delimited file with a header) that I read into an array . what I wan to do is extract from the array patients with specific characteristics, like a person is a female with body mass index > 40 and blood pressure >135. Instead using an if statement to do that, is there another way to extract this information into an array? Also, to do this, I have to know the location of these variables in my file ( what is the column number for sex, body mass index and blood pressure), is there a way to use the header of the file to point to the variable of interest instead of counting the columns?
Your help is greatly appreciated
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: how to extract data from an array using a condition
by wfsp (Abbot) on Jun 18, 2011 at 16:47 UTC | |
Re: how to extract data from an array using a condition
by CountZero (Bishop) on Jun 18, 2011 at 16:54 UTC | |
Re: how to extract data from an array using a condition
by kcott (Archbishop) on Jun 18, 2011 at 16:38 UTC | |
Re: how to extract data from an array using a condition
by xyzzy (Pilgrim) on Jun 18, 2011 at 16:49 UTC | |
Re: how to extract data from an array using a condition
by bart (Canon) on Jun 18, 2011 at 21:23 UTC | |
by kayj (Novice) on Jun 20, 2011 at 17:47 UTC | |
by bart (Canon) on Jun 21, 2011 at 10:56 UTC | |
Re: how to extract data from an array using a condition
by Marshall (Canon) on Jun 19, 2011 at 01:06 UTC |