misoproject / dataset

JavaScript library that makes managing the data behind client-side visualisations easy
http://misoproject.com
GNU General Public License v2.0
1.18k stars 99 forks source link

handle missing values #97

Closed gka closed 12 years ago

gka commented 12 years ago

If you import csv into R there's a setting for describing the notation of missing values in that file.

data <- read.csv("data.csv", na.strings="n/a")

With that bit of information R is able to detect numerical columns even if there are those NA strings in it. It would be great to have a similar feature in miso.dataset.

iros commented 12 years ago

set emptyValue : 0, to use that empty value during csv parsing. Note that if the type of empty value is not null or undefined, it should match the expected type of your column, otherwise it might break detection of column type.