Hi
I have a set of data that is stored in 1 table 'Grass_data'. There are multiple sets of data in the table (18 to precise) each with a x and y value (size and height). The hard part for me is that I need to make comparison of one sample against another by matching peaksize from 1 sample to another. Think this would be an easy task if the peaksize were all the same values but they are not. To make the situation worse some samples do not have a 1 to 1 match with the peaksize field.
I will explain the comparison situation better by an example.
if I had two sets of data:
ID Peak_Size Peak_Height
1 118.49 79
1 119.25 73
1 121.01 62
1 121.99 90
1 123.98 73
1 131.58 99
ID Peak_Size Peak_Height
2 118.59 77
2 119.51 73
2 122.10 91
2 123.89 74
2 131.65 98
What I need to have happen is get the 2 data set to align so that mathematical operations can then be carried out on the data. In the above situation you will notice that data set 2 has 1 less piece of data (peak 121). In this case I still need the data to come through from dataset 1. Also you will notice that the peak sizes can only be matched by finding the closest number i.e within 1 integer. There will never be two numbers within 1 integer to match up.
The result that I would be hoping for from these two dataset would be a like so:
ID PS_1 PH_1 PS_2 PH_2
12 118.49 79 118.59 77
12 119.25 73 119.51 73
12 121.01 62 0 0 ***
12 121.99 90 122.10 91
12 123.98 73 123.89 74
12 131.58 99 131.65 98
*** note the zero against the set of Peak sizes of 121.01 in sample 2 as there is no data
Sorry to ask for so much help but I just can't figure out how to complete this, I'm guessing that you will have to use the Visual basic part of access to complete this (which I am not to good at) I have attached a access 97 database with the data if it helps which you can convert to 2000 or 2002 if it helps you.
I would be very grateful if someone could help me out as I need this for my school work and I need to process about 200 of these in the long run!
I have a set of data that is stored in 1 table 'Grass_data'. There are multiple sets of data in the table (18 to precise) each with a x and y value (size and height). The hard part for me is that I need to make comparison of one sample against another by matching peaksize from 1 sample to another. Think this would be an easy task if the peaksize were all the same values but they are not. To make the situation worse some samples do not have a 1 to 1 match with the peaksize field.
I will explain the comparison situation better by an example.
if I had two sets of data:
ID Peak_Size Peak_Height
1 118.49 79
1 119.25 73
1 121.01 62
1 121.99 90
1 123.98 73
1 131.58 99
ID Peak_Size Peak_Height
2 118.59 77
2 119.51 73
2 122.10 91
2 123.89 74
2 131.65 98
What I need to have happen is get the 2 data set to align so that mathematical operations can then be carried out on the data. In the above situation you will notice that data set 2 has 1 less piece of data (peak 121). In this case I still need the data to come through from dataset 1. Also you will notice that the peak sizes can only be matched by finding the closest number i.e within 1 integer. There will never be two numbers within 1 integer to match up.
The result that I would be hoping for from these two dataset would be a like so:
ID PS_1 PH_1 PS_2 PH_2
12 118.49 79 118.59 77
12 119.25 73 119.51 73
12 121.01 62 0 0 ***
12 121.99 90 122.10 91
12 123.98 73 123.89 74
12 131.58 99 131.65 98
*** note the zero against the set of Peak sizes of 121.01 in sample 2 as there is no data
Sorry to ask for so much help but I just can't figure out how to complete this, I'm guessing that you will have to use the Visual basic part of access to complete this (which I am not to good at) I have attached a access 97 database with the data if it helps which you can convert to 2000 or 2002 if it helps you.
I would be very grateful if someone could help me out as I need this for my school work and I need to process about 200 of these in the long run!