Bug 16617 - write.arff output boolean as numeric
Summary: write.arff output boolean as numeric
Alias: None
Product: R
Classification: Unclassified
Component: Add-ons (show other bugs)
Version: R 3.2.1
Hardware: Other Other
: P2 normal
Assignee: R-core
Depends on:
Reported: 2015-11-30 13:36 UTC by Francis
Modified: 2017-11-04 01:09 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Francis 2015-11-30 13:36:22 UTC
write.arff consider boolean as numeric, so you find the attributes as numeric but the values as TRUE or FALSE.

I'm new with R, but the last else clause in the function write.arff doesn't look a good practice.

        text <- paste(text, "numeric")

But maybe there is a reason behind that. I order to fix it I have added a condition for booleans (in my format, TRUE - FALSE).