List of columns starting withI would like a script which inserts all columns with column names starting with "animal names" into the column list "animal list". I am sure it is simple but the AI-generated script is not working.
Automation and ScriptingRe: List of columns starting withHere is a simple example of how I would do this
names default to here(1);
dt=open("$SAMPLE_DATA/blood pressure.jmp");
animal list = dt << get column names(string);
animal list = filter each( {col}, animal list,
starts with(col,"BP")
);Re: List of columns starting withThank you, that was helpful.