JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2163
  • Score
    100M100P100Q101274F
  • License Apache-2.0

Standard library datasets.

Package Exports

  • @stdlib/datasets
  • @stdlib/datasets/afinn-111
  • @stdlib/datasets/afinn-96
  • @stdlib/datasets/anscombes-quartet
  • @stdlib/datasets/berndt-cps-wages-1985
  • @stdlib/datasets/cdc-nchs-us-births-1969-1988
  • @stdlib/datasets/cdc-nchs-us-births-1994-2003
  • @stdlib/datasets/cdc-nchs-us-infant-mortality-bw-1915-2013
  • @stdlib/datasets/cmudict
  • @stdlib/datasets/dale-chall-new
  • @stdlib/datasets/emoji
  • @stdlib/datasets/emoji-code-picto
  • @stdlib/datasets/emoji-picto-code
  • @stdlib/datasets/female-first-names-en
  • @stdlib/datasets/fivethirtyeight-ffq
  • @stdlib/datasets/frb-sf-wage-rigidity
  • @stdlib/datasets/harrison-boston-house-prices
  • @stdlib/datasets/harrison-boston-house-prices-corrected
  • @stdlib/datasets/herndon-venus-semidiameters
  • @stdlib/datasets/img-acanthus-mollis
  • @stdlib/datasets/img-airplane-from-above
  • @stdlib/datasets/img-allium-oreophilum
  • @stdlib/datasets/img-black-canyon
  • @stdlib/datasets/img-dust-bowl-home
  • @stdlib/datasets/img-french-alpine-landscape
  • @stdlib/datasets/img-locomotion-house-cat
  • @stdlib/datasets/img-locomotion-nude-male
  • @stdlib/datasets/img-march-pastoral
  • @stdlib/datasets/img-nagasaki-boats
  • @stdlib/datasets/liu-negative-opinion-words-en
  • @stdlib/datasets/liu-positive-opinion-words-en
  • @stdlib/datasets/male-first-names-en
  • @stdlib/datasets/minard-napoleons-march
  • @stdlib/datasets/moby-dick
  • @stdlib/datasets/month-names-en
  • @stdlib/datasets/nightingales-rose
  • @stdlib/datasets/pace-boston-house-prices
  • @stdlib/datasets/primes-100k
  • @stdlib/datasets/savoy-stopwords-fin
  • @stdlib/datasets/savoy-stopwords-fr
  • @stdlib/datasets/savoy-stopwords-ger
  • @stdlib/datasets/savoy-stopwords-it
  • @stdlib/datasets/savoy-stopwords-por
  • @stdlib/datasets/savoy-stopwords-sp
  • @stdlib/datasets/savoy-stopwords-swe
  • @stdlib/datasets/sotu
  • @stdlib/datasets/spache-revised
  • @stdlib/datasets/spam-assassin
  • @stdlib/datasets/ssa-us-births-2000-2014
  • @stdlib/datasets/standard-card-deck
  • @stdlib/datasets/stopwords-en
  • @stdlib/datasets/suthaharan-multi-hop-sensor-network
  • @stdlib/datasets/suthaharan-single-hop-sensor-network
  • @stdlib/datasets/us-states-abbr
  • @stdlib/datasets/us-states-capitals
  • @stdlib/datasets/us-states-capitals-names
  • @stdlib/datasets/us-states-names
  • @stdlib/datasets/us-states-names-capitals

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@stdlib/datasets) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Datasets

NPM version Build Status Coverage Status dependencies

Standard library datasets.

Installation

npm install @stdlib/datasets

Usage

var datasets = require( '@stdlib/datasets' );

datasets( name[, options] )

Returns standard library datasets.

var data = datasets( 'MONTH_NAMES_EN' );
/* returns
    [
        'January',
        'February',
        'March',
        'April',
        'May',
        'June',
        'July',
        'August',
        'September',
        'October',
        'November',
        'December'
    ]
*/

The function forwards provided options to the dataset interface specified by name.

var opts = {
    'data': 'cities'
};

var data = datasets( 'MINARD_NAPOLEONS_MARCH', opts );
/* returns
    [
        {'lon': 24,'lat': 55,'city': 'Kowno',
        {'lon': 25.3,'lat': 54.7,'city': 'Wilna',
        {'lon': 26.4,'lat': 54.4,'city': 'Smorgoni',
        {'lon': 26.8,'lat': 54.3,'city': 'Molodexno',
        {'lon': 27.7,'lat': 55.2,'city': 'Gloubokoe',
        {'lon': 27.6,'lat': 53.9,'city': 'Minsk',
        {'lon': 28.5,'lat': 54.3,'city': 'Studienska',
        {'lon': 28.7,'lat': 55.5,'city': 'Polotzk',
        {'lon': 29.2,'lat': 54.4,'city': 'Bobr',
        {'lon': 30.2,'lat': 55.3,'city': 'Witebsk',
        {'lon': 30.4,'lat': 54.5,'city': 'Orscha',
        {'lon': 30.4,'lat': 53.9,'city': 'Mohilow',
        {'lon': 32,'lat': 54.8,'city': 'Smolensk',
        {'lon': 33.2,'lat': 54.9,'city': 'Dorogobouge',
        {'lon': 34.3,'lat': 55.2,'city': 'Wixma',
        {'lon': 34.4,'lat': 55.5,'city': 'Chjat',
        {'lon': 36,'lat': 55.5,'city': 'Mojaisk',
        {'lon': 37.6,'lat': 55.8,'city': 'Moscou',
        {'lon': 36.6,'lat': 55.3,'city': 'Tarantino',
        {'lon': 36.5,'lat': 55,'city': 'Malo-Jarosewli'
    ]
*/

Examples

var datasets = require( '@stdlib/datasets' );

var data = datasets( 'MONTH_NAMES_EN' );
console.log( data );

CLI

Installation

To use the module as a general utility, install the module globally

npm install -g @stdlib/datasets

Usage

Usage: datasets [options] [--name=<name>]

Options:

  -h,    --help                Print this message.
  -V,    --version             Print the package version.
         --name name           Dataset name.
         --ls                  List datasets.

Notes

  • Dataset specific options should follow two hyphen characters -- in order to indicate that those options should not be parsed as normal command-line options.

Examples

$ datasets --name MONTH_NAMES_EN
January
February
March
...

Use two hyphen characters -- to delineate dataset specific options.

$ datasets --name MINARD_NAPOLEONS_MARCH -- --data army
lon,lat,size,direction,division
24.0,54.9,340000,A,1
24.5,55.0,340000,A,1
25.5,54.5,340000,A,1
...

Notice

This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.

For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.


License

See LICENSE.

Copyright © 2016-2021. The Stdlib Authors.