Révision 2686
tmp/org.txm.statsengine.r.core/src/org/txm/statsengine/r/core/data/MatrixImpl.java (revision 2686) | ||
---|---|---|
367 | 367 |
* @throws StatException |
368 | 368 |
*/ |
369 | 369 |
public void cut(int before, int after) { |
370 |
if (after > this.getNRows()) |
|
371 |
return; |
|
370 |
if (after > this.getNRows()) { |
|
371 |
after = this.getNRows(); |
|
372 |
} |
|
372 | 373 |
|
373 | 374 |
if (before < 1) before = 1; |
374 | 375 |
|
375 | 376 |
try { |
376 | 377 |
// cut nlines |
377 | 378 |
REXP r = rw.eval(symbol + "<- " + symbol + "[" + before + ":" + (after) + ", ];"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
378 |
getRowNames().cut(before, after); |
|
379 |
// getRowNames().cut(before, after);
|
|
379 | 380 |
// this.nrow = nlines; |
380 | 381 |
} |
381 | 382 |
catch (RWorkspaceException e) { |
Formats disponibles : Unified diff