GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - javascript-machine-learning/csv-to-array-matrix: 🔨 A simple CSV to arrays in array (matrix) parser.

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

CSV to Matrix

Build Status

A simple CVS to Matrix parser - reads a CSV file, outputs an arrays in array (Matrix).

Installation

npm install csv-to-array-matrix

Usage

import csvToMatrix  from 'csv-to-array-matrix';

csvToMatrix('./src/data.csv', callback);

function callback(data) {
  console.log(data);
}

Transforming into a Matrix object with math.js.

import math from 'mathjs';
import csvToMatrix  from 'csv-to-array-matrix';

csvToMatrix(pathToFile, callback);

function callback(data) {
  const matrix = math.matrix(data);
}

The default delimiter is ';', but you use a different one.

import csvToMatrix  from 'csv-to-array-matrix';

csvToMatrix('./src/data.csv', callback, ',');

function callback(data) {
  console.log(data);
}

About

🔨 A simple CSV to arrays in array (matrix) parser.

bri.im

Resources

Readme
MIT license
Activity
Custom properties

Stars

1 star

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.