Dec 12, 2016
I want to assign a value in a column for a set of rows selected.
I select the rows like this:
dt=current data tables();dt << selectwhere(dt:columnA == "1" );
And I would like to assign the value "TEST" to the columnC for all the selected rows (only for the selected rows).
How can I do it very simply (i.e. without for loop)?
Thanks in advance.
Jun 23, 2011
It might be better to use '<<getRowsWhere()':
dt = Open("$SAMPLE_DATA/Big Class.jmp");
r = dt << getRowsWhere(:height < 55);
Column(dt, "weight")[r] = .;
And for JMP 13, see also: