Search Results

Search: Posts Made By: jackken007
3,380
Posted By jackken007
It works like a charm! Thank you so much!
It works like a charm!

Thank you so much!
3,380
Posted By jackken007
Calculate the average of a column based on the value of another column
Hi,

I would like to calculate the average of column 'y' based on the value of column 'pos'.

For example, here is file1

id pos y c
11 1 220 aa
11 4333 207 f
11 ...
956
Posted By jackken007
Thank you so much! bipinajith. It works...
Thank you so much! bipinajith.

It works great!

However, It's totally my fault that I did not explain it correctly in my post.

Actully, what I really wanted was to average rows that have...
956
Posted By jackken007
Thank you so much! There is a little bit...
Thank you so much!

There is a little bit problem. Could you please take a look?

while read id start end
do
awk -v I=$id -v S=$start -v E=$end 'BEGIN{c=0;...
956
Posted By jackken007
Help needed!
Hi,

I need to calculate average of a column based on row values of another file.

File 1:

ID start end
1 2 5
1 8 10
2 3 5
2 7 ...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 08:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy