cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Choose Language Hide Translation Bar
View Original Published Thread

How do I change all columns in a data table to continuous. I built the table from a csv file so all subsets are character

gene
Level III

I need to change all the columns in a table to continuous.  In a script

1 ACCEPTED SOLUTION

Accepted Solutions
pmroz
Super User


Re: How do I change all columns in a data table to continuous. I built the table from a csv file so all subsets are character

dt = current data table();

for (i = 1, i <= ncols(dt), i++,

     column(dt, i) << data type(numeric);

     column(dt, i) << set modeling type(continuous);

);

View solution in original post

1 REPLY 1
pmroz
Super User


Re: How do I change all columns in a data table to continuous. I built the table from a csv file so all subsets are character

dt = current data table();

for (i = 1, i <= ncols(dt), i++,

     column(dt, i) << data type(numeric);

     column(dt, i) << set modeling type(continuous);

);