- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
How does JSL extract a subset of selected rows for a column in a data table?
It seemed like a simple question, but I didn't succeed.
This selected line number is already selected by other scripts.
Thanks!
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
r = dt << Get Selected Rows();
d3 = dt << Subset( Output Table( "tt" ), Selected Rows( r ), selected columns( 0 ) );
This post originally written in German and has been translated for your convenience. When you reply, it will also be translated back to German.
2 ACCEPTED SOLUTIONS
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: How does JSL extract a subset of selected rows for a column in a data table?
selected rows() expects a boolean value, either 0 or 1. In your example you would specify
selected rows( 1 )
which indicates to the platform to use selected rows for the subset.
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: How does JSL extract a subset of selected rows for a column in a data table?
Thank Jim!
d3 = dt << Subset(
Output Table( "tt" ),
Selected Rows( 0 ),
Rows( dt << Get Selected Rows() ),
Selected columns only( 0 )
);
I press manual operation to modify.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: How does JSL extract a subset of selected rows for a column in a data table?
selected rows() expects a boolean value, either 0 or 1. In your example you would specify
selected rows( 1 )
which indicates to the platform to use selected rows for the subset.
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: How does JSL extract a subset of selected rows for a column in a data table?
Thank Jim!
d3 = dt << Subset(
Output Table( "tt" ),
Selected Rows( 0 ),
Rows( dt << Get Selected Rows() ),
Selected columns only( 0 )
);
I press manual operation to modify.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: How does JSL extract a subset of selected rows for a column in a data table?
This works too
Jim