- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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);
);
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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);
);