Select Rows
Example 1
Summary: Selects the first 15 rows from a data table, allowing for efficient analysis and exploration.
Code:
dt = Open("data_table.jmp");
dt << Select Rows( [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] );
Code Explanation:
- Open data_table data
- Select first 15 rows.
Example 2
Summary: Selects and excludes specific rows in a data table, hiding them from view.
Code:
dt = Open("data_table.jmp");
dt << select rows( {4, 5, 6, 7} ) << Hide << Exclude;
Code Explanation:
- Open data table.
- Select specific rows.
- Hide selected rows.
- Exclude selected rows.
Example 3
Summary: Selects and excludes a specific row in a data table, utilizing the Hide and Exclude operations.
Code:
dt = Open("data_table.jmp");
dt << select rows( {38} ) << Hide << exclude;
Code Explanation:
- Open data table;
- Select row 38.
- Hide selected row.
- Exclude selected row.
Example 4
Summary: Selects and excludes a specific row in a data table, utilizing JMP's built-in data manipulation capabilities.
Code:
dt = Open("data_table.jmp");
dt << select rows( {15} ) << exclude;
Code Explanation:
- Open data table.
- Select row 15.
- Exclude selected row.
Example 5
Summary: Selects and hides a specific row in a data table, allowing for targeted analysis.
Code:
dt = Open("data_table.jmp");
dt << select rows( {1} ) << hide;
Code Explanation:
- Open data table.
- Select first row.
- Hide selected row.
Example 6
Summary: Selects and excludes rows in a data table, allowing for focused analysis on specific subsets of data.
Code:
dt = Open("data_table.jmp");
dt << select rows( {1, 2, 3, 4, 5} ) << exclude;
Code Explanation:
- Open data table;
- Select first five rows.
- Exclude selected rows.
Example 7
Summary: Selects and excludes rows in a data table, specifically selecting the first 10 rows and then excluding them.
Code:
dt = Open("data_table.jmp");
r = dt << Select Rows( [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] );
r << Exclude;
Code Explanation:
- Open data table;
- Select first 10 rows.
- Exclude selected rows.
Example 8
Summary: Selects specific rows from a data table, utilizing the
Select Rowsplatform.
Code:
dt = Open("data_table.jmp");
dt << Select Rows( {30, 62, 140} );
Code Explanation:
- Open data table;
- Select specific rows.
Example 9
Summary: Runs the selection and clearing of row states in a data table, allowing for focused analysis on specific rows.
Code:
dt = Open("data_table.jmp");
dt << clear row states;
dt << select rows( 16 );
Code Explanation:
- Open data table.
- Clear row states.
- Select specific rows.
Example 10
Summary: Selects specific rows from a data table, targeting rows 16-20.
Code:
dt = Open("data_table.jmp");
dt << Select Rows( {16, 17, 18, 19, 20} );
Code Explanation:
- Open data table.
- Select specific rows 16-20.
Select rows
Summary: Runs data table operations to select, exclude, and reorder rows, as well as set missing values for specific heights.
Code:
dt = Open("data_table.jmp");
dt << Select rows( [11, 12, 13, 14, 15, 16, 17, 18, 19, 20] );
dt << exclude << clear select;
dt:height[9] = :height[10] = :height[11] = .;
dt:age << Set Property( "Value Ordering", {12, 13, 14, 16, 17, 15} );
Code Explanation:
- Open data table;
- Select rows 11-20.
- Exclude selected rows.
- Clear selection.
- Set height of 9th row to missing.
- Set height of 10th row to missing.
- Set height of 11th row to missing.
- Set age value ordering.