Sorry if this is a crazy basic question but have not been able to find an answer on this one (maybe asking the wrong question).
I'm trying to write a scrip that would calculate the N, Mean, and Median of a parameter (string data) within a particular geographical area (HUC - this is a number but set as a string) grouped by years. I have attached some sample data for clarity of this but basically have multiple sampling stations that have multiple parameters over several years. The idea is for each geographical area and each parameter within that area, find the yearly N, Mean, and Median. Have the script run through each parameter for each area.
My questions:
1. Am I on the right track?
2. If so, what would I use for the initialization and the iteration portions of the For loop?
dt = Data Table( "Data_TP" );
For (
While (parameter = "Turbidity", HUC = "03020101"
Summary(
Group(ActivYear),
N(Value), Mean(Value), Median(Value),
output table name("Test"))
//save table;
)
);
Any help or reference suggestions would be greatly appreciated!