/arff-to-csv

Utility to transform a arff file into CSV file

Primary LanguageJavaScriptMIT LicenseMIT

arff-to-csv

Utility to transform an arff file into CSV file

Options

  • -n: Normalize numeric values. Default false.
  • -h: Add attributes names as first line into CSV file (head). Default false.
  • -d: File csv to create

Examples

Generates a myfile.csv in the current work directory:

node arff-to-csv/index.js /mypath/myfile.arff

Generates a myfile.csv in the current work directory with normalized attributes:

node arff-to-csv/index.js /mypath/myfile.arff -n

Generates a myfile.csv in the current work directory with attribute names in the first line of the csv file:

node arff-to-csv/index.js /mypath/myfile.arff -h

Generates a myfile.csv in the current work directory with normalized attributes and ttribute names in the first line of the csv file:

node arff-to-csv/index.js /mypath/myfile.arff -n -h

Generates a myNewFile.csv in ./ directory:

node arff-to-csv/index.js /mypath/myfile.arff -d ./myNewFile.csv

Generates a a myNewFile.csv in ./ directory with normalized attributes and ttribute names in the first line of the csv file:

node arff-to-csv/index.js /mypath/myfile.arff -n -h -d ./myHeadlessFile.csv