If a data table has more than 100 columns.Given that columns 11 -- 100 are in numeric format, how can use JSL to quickly filter out all rows in column 11 -- 100 that are not null.
Thanks!
This should give you what you want.
Names Default To Here( 1 ); dt = Current Data Table(); dt << select where( Number( dt[Row(), Index( 11, 100 )] ) == 90 ); d3 = dt << Subset( Output Table( "t" ), Selected Rows( 1 ), selected columns( 0 ) );
I see that this is a way to sum multiple columns in the same row.
sumVec = (VSum(mat`))`;
I want to do this, but I don't know how to figure out the number of non-null columns in the same row in this way.
dt = Current Data Table(); mat = dt[0, 11 :: 100]; nu = (Number( mat` ))`; dt << New Column( "text", Numeric, Continuous, Values( nu ) ); dt << Select Where( :text == 90 ); d3 = dt << Subset( Output Table( "t" ), Selected Rows( 1 ), selected columns( 0 ) );
No Number was found.
Thank Jim!This is an efficient way to do it.How can do add a new column to the table and count the number of columns in row 11-100 that are not null?