SED navigation bar go to SED home page go to Dataplot home page go to NIST home page SED Home Page SED Staff SED Projects SED Products and Publications Search SED Pages
Dataplot Vol 2 Vol 1

REMOVE

Name:
    REMOVE (LET)
Type:
    Let Subcommand
Purpose:
    Remove rows of a variable based on the values in another variable.
Description:
    With this command, we define a variable that contains values to be deleted from another variable.

    Although this can be accomplished with the RETAIN command and SUBSET clauses, the REMOVE command may be more convenient if the list of values to delete is long and not contiguous.

Syntax:
    LET <y> = REMOVE <x> <xlist>
    where <x> is a response variable;
                <xlist> is a variable containing values to remove from <x>;
                and <y> is a variable that contains the results after removing the specified values.
Examples:
    LET Y = REMOVE X XDELETE
Default:
    None
Synonyms:
    None
Related Commands:
    GATHER = Extract rows from a variable based on an index variable.
    SUBSET = Specifies a subset to be included in a plot, analysis, or LET command.
    RETAIN = Retain specified rows or a subset of a variable.
Applications:
    Data Transformation
Implementation Date:
    2025/12
Program 1:
     
    let x = data   0.75750 -0.90033 2.52521 0.41734 -1.13290 0.58353 ...
            0.47807 -0.64190 -1.09908 1.86310 0.86764 0.71655 -1.06700 ...
            -1.13660 0.51409 0.84443 0.77619 -0.83486 1.44312 0.02013
    let xdelete = data -0.90033 1.86310 0.51409 -1.13290
    .
    let y = remove x xdelete
    print y
        
     
     ---------------
                   Y
     ---------------
             0.75750
             2.52521
             0.41734
             0.58353
             0.47807
            -0.64190
            -1.09908
             0.86764
             0.71655
            -1.06700
            -1.13660
             0.84443
             0.77619
            -0.83486
             1.44312
             0.02013
        
Date created: 12/15/2025
Last updated: 12/15/2025

Please email comments on this WWW page to [email protected].