0 votes
Hi,

 

How do you proceed to force a column detected as int in a R script to as string in output in order to preserve a specific format  . Example : input = 06000 give an output dataset = 6000, and i would i input = 06000 which should give an output = 06000.
by

1 Answer

0 votes
Hi,

Good news, the latest version of DSS (3.1) now includes this feature.

You can either:

* Force the dataframe to respect the storage schema of the DSS dataset by using

dkuReadDataset("mydataset", inferColClassesFromData=FALSE)

* Force the col class for a set of columns:

dkuReadDataset("mydataset", colClasses=c(mycolumn = "character"))
by
1,279 questions
1,306 answers
1,487 comments
11,835 users

©Dataiku 2012-2018 - Privacy Policy