there is a command for this: stats
example of using the entire 2nd column:
stats "filename" using 2 name "A"
this gives you detailed information in the terminal, and you can use the data with a suffix (here "A"), for example:
plot "filename" t "data", A_mean t "mean value"
see also help stats for more information on the command
source share