cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Submit your abstract to the call for content for Discovery Summit Americas by April 23. Selected abstracts will be presented at Discovery Summit, Oct. 21- 24.
Discovery is online this week, April 16 and 18. Join us for these exciting interactive sessions.
Choose Language Hide Translation Bar
gene
Level III

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

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);

);