Nightingale's Rose

Dataset for Florence Nightingale's famous polar area diagram.

Nightingale's famous polar area diagram.

Usage

var rose = require( '@stdlib/datasets/nightingales-rose' );

rose()

Returns dataset for Florence Nightingale's famous polar area diagram.

var data = rose();
/* returns
    [
        {
            'date': '1854-04-01T07:00:00.000Z',
            'army_size': 8571,
            'disease': 1,
            'wounds': 0,
            'other': 5
        },
        ...
    ]
*/

Examples

var rose = require( '@stdlib/datasets/nightingales-rose' );

var scalar;
var data;
var d;
var i;

data = rose();

// As done by Nightingale, calculate the average annual mortality per 1000 for each cause. See http://understandinguncertainty.org/node/214.
for ( i = 0; i < data.length; i++ ) {
    d = data[ i ];
    scalar = 1000.0 * 12.0 / d.army_size;
    d.disease *= scalar;
    d.wounds *= scalar;
    d.other *= scalar;
}
console.dir( data );

CLI

Usage

Usage: nightingales-rose [options]

Options:

  -h,    --help                Print this message.
  -V,    --version             Print the package version.
         --format fmt          Output format: 'csv' or 'ndjson'.

Notes

  • The CLI supports two output formats: comma-separated values (CSV) and newline-delimited JSON (NDJSON). The default output format is CSV.

Examples

$ nightingales-rose
date,army_size,disease,wounds,other
1854-04-01T07:00:00.000Z,8571,1,0,5
1854-05-01T07:00:00.000Z,23333,12,0,9
1854-06-01T07:00:00.000Z,28333,11,0,6
...

References

License

The data files (databases) are licensed under an Open Data Commons Public Domain Dedication & License 1.0 and their contents are licensed under a Creative Commons Zero v1.0 Universal. The software is licensed under Apache License, Version 2.0.