For 루프 -- 목록에서 행과 수식 삭제안녕하세요 여러분,
삭제 수식을 반복한 다음 목록에서 for 루프를 사용하여 열을 삭제하려면 어떻게 해야 합니까?
이 같은:
col_formula = {"열1", "열2" };
col2_row = {"열3", "열4"};
For( i = 1, i <= N 항목( col_formula ), i++,
col_formula (i) << 수식 삭제 // 수식 삭제
col2_row (i) << 행 삭제//행 삭제
);
데이터 테이블다른Re: For 루프 -- 목록에서 행과 수식 삭제안녕
열 형식이 올바르지 않을 수 있습니다.
cols={":col_1",":col_2"};<BR />Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Bank Loan.jmp" );
:Time << Delete Formula;
Re: For 루프 -- 목록에서 행과 수식 삭제col_formula = {"Column1", "Column2"};
col2_row = {"Column3", "Column4"};
// This will delete the formula
For( i = 1, i <= N Items( col_formula ), i++,
Column( col_formula[i] ) << Delete Formula; //delete formula
);
// You cannot delete a row within a given column. JMP always has
// an equal number of rows for all columns.
// You can delete a row, but it will delete the row for all columns.
current data table() << delete rows( i );
// If you want to remove the value for a given row within a column,
// you can set the value to a missing value