The dfio Reference Manual

This is the dfio Reference Manual, version 1.0.2, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Sep 15 05:02:37 2024 GMT+0.

Table of Contents


1 Introduction


2 Systems

The main system appears first, followed by any subsystem dependency.


2.1 dfio

Common Lisp library for reading and writing data-frames

Long Name

Data frame I/O

Author

Steve Nunez <>

Source Control

(GIT https://github.com/Lisp-Stat/dfio.git)

Bug Tracker

https://github.com/Lisp-Stat/dfio/issues

License

MS-PL

Long Description

DFIO is used to read and write data frames from string, streams or disk. When building a library like this, one question that needs to be answered is "where do you draw the line on formats?". For example, should DFIO read/write JSON? The answer to that question is ’no’, and the reason is that there are many JSON formats – they are applicaton specific. Application specific format should be read in an application specific package, and this is the case, for example, with Vega. Formats like CSV, HD5 or Feather are application agnostic and should be included in DFIO.

Version

1.0.2

Dependencies
  • alexandria (system).
  • anaphora (system).
  • data-frame (system).
  • dexador (system).
  • fare-csv (system).
  • let-plus (system).
Source

dfio.asd.

Child Components

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


3.1 Lisp


3.1.1 dfio/dfio.asd

Source

dfio.asd.

Parent Component

dfio (system).

ASDF Systems

dfio.


3.1.2 dfio/pkgdcl.lisp

Source

dfio.asd.

Parent Component

dfio (system).

Packages

3.1.3 dfio/decimal.lisp

Dependency

pkgdcl.lisp (file).

Source

dfio.asd.

Parent Component

dfio (system).

Public Interface
Internals

3.1.4 dfio/string-table.lisp

Dependency

decimal.lisp (file).

Source

dfio.asd.

Parent Component

dfio (system).

Public Interface
Internals

3.1.5 dfio/data-column.lisp

Dependency

string-table.lisp (file).

Source

dfio.asd.

Parent Component

dfio (system).

Public Interface
Internals

non-negative-integer (type).


3.1.6 dfio/utils.lisp

Dependency

data-column.lisp (file).

Source

dfio.asd.

Parent Component

dfio (system).

Public Interface
Internals

3.1.7 dfio/write.lisp

Dependency

utils.lisp (file).

Source

dfio.asd.

Parent Component

dfio (system).

Public Interface

3.1.8 dfio/delimited-text.lisp

Dependency

write.lisp (file).

Source

dfio.asd.

Parent Component

dfio (system).

Public Interface
Internals

csv-to-data-columns (function).


3.1.9 dfio/data.lisp

Dependency

delimited-text.lisp (file).

Source

dfio.asd.

Parent Component

dfio (system).

Public Interface

data (function).


3.1.10 dfio/rdata.lisp

Dependency

data.lisp (file).

Source

dfio.asd.

Parent Component

dfio (system).

Packages

rdata.

Public Interface
Internals

4 Packages

Packages are listed by definition order.


4.1 dfio.string-table

Source

pkgdcl.lisp.

Use List
  • alexandria.
  • anaphora.
  • common-lisp.
  • let-plus.
Used By List

dfio.data-column.

Public Interface
Internals

4.2 dfio

Source

pkgdcl.lisp.

Use List
Public Interface
Internals

4.3 dfio.decimal

Source

pkgdcl.lisp.

Use List
  • anaphora.
  • common-lisp.
  • let-plus.
Used By List

dfio.data-column.

Public Interface
Internals

4.4 dfio.data-column

Source

pkgdcl.lisp.

Use List
Used By List

dfio.

Public Interface
Internals

non-negative-integer (type).


4.5 rdata

Source

rdata.lisp.

Use List

common-lisp.

Public Interface
Internals

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


5.1 Public Interface


5.1.1 Special variables

Special Variable: *r-default-datasets*

All data sets included by default in R

Package

rdata.

Source

rdata.lisp.

Special Variable: ability.cov

Ability and Intelligence Tests

Package

rdata.

Source

rdata.lisp.

Special Variable: airmiles

Passenger Miles on Commercial US Airlines, 1937-1960

Package

rdata.

Source

rdata.lisp.

Special Variable: airpassengers

Monthly Airline Passenger Numbers 1949-1960

Package

rdata.

Source

rdata.lisp.

Special Variable: airquality

New York Air Quality Measurements

Package

rdata.

Source

rdata.lisp.

Special Variable: anscombe

Anscombe’s Quartet of ’Identical’ Simple Linear Regressions

Package

rdata.

Source

rdata.lisp.

Special Variable: attenu

The Joyner-Boore Attenuation Data

Package

rdata.

Source

rdata.lisp.

Special Variable: attitude

The Chatterjee-Price Attitude Data

Package

rdata.

Source

rdata.lisp.

Special Variable: austres

Quarterly Time Series of the Number of Australian Residents

Package

rdata.

Source

rdata.lisp.

Special Variable: base-url

Base URL for datasets included in R

Package

rdata.

Source

rdata.lisp.

Special Variable: bjsales

Sales Data with Leading Indicator

Package

rdata.

Source

rdata.lisp.

Special Variable: bod

Biochemical Oxygen Demand

Package

rdata.

Source

rdata.lisp.

Special Variable: cars

Speed and Stopping Distances of Cars

Package

rdata.

Source

rdata.lisp.

Special Variable: chickweight

Weight versus age of chicks on different diets

Package

rdata.

Source

rdata.lisp.

Special Variable: chickwts

Chicken Weights by Feed Type

Package

rdata.

Source

rdata.lisp.

Special Variable: co2-1

Carbon Dioxide Uptake in Grass Plants

Package

rdata.

Source

rdata.lisp.

Special Variable: co2-2

Mauna Loa Atmospheric CO2 Concentration

Package

rdata.

Source

rdata.lisp.

Special Variable: crimtab

Student’s 3000 Criminals Data

Package

rdata.

Source

rdata.lisp.

Special Variable: discoveries

Yearly Numbers of Important Discoveries

Package

rdata.

Source

rdata.lisp.

Special Variable: dnase

Elisa assay of DNase

Package

rdata.

Source

rdata.lisp.

Special Variable: esoph

Smoking, Alcohol and (O)esophageal Cancer

Package

rdata.

Source

rdata.lisp.

Special Variable: euro

Conversion Rates of Euro Currencies

Package

rdata.

Source

rdata.lisp.

Special Variable: eustockmarkets

Daily Closing Prices of Major European Stock Indices, 1991-1998

Package

rdata.

Source

rdata.lisp.

Special Variable: faithful

Old Faithful Geyser Data

Package

rdata.

Source

rdata.lisp.

Special Variable: formaldehyde

Determination of Formaldehyde

Package

rdata.

Source

rdata.lisp.

Special Variable: freeny

Freeny’s Revenue Data

Package

rdata.

Source

rdata.lisp.

Special Variable: haireyecolor

Hair and Eye Color of Statistics Students

Package

rdata.

Source

rdata.lisp.

Special Variable: harman23.cor

Harman Example 2.3

Package

rdata.

Source

rdata.lisp.

Special Variable: harman74.cor

Harman Example 7.4

Package

rdata.

Source

rdata.lisp.

Special Variable: index
Package

rdata.

Source

rdata.lisp.

Special Variable: indometh

Pharmacokinetics of Indomethacin

Package

rdata.

Source

rdata.lisp.

Special Variable: infert

Infertility after Spontaneous and Induced Abortion

Package

rdata.

Source

rdata.lisp.

Special Variable: insectsprays

Effectiveness of Insect Sprays

Package

rdata.

Source

rdata.lisp.

Special Variable: iris

Edgar Anderson’s Iris Data

Package

rdata.

Source

rdata.lisp.

Special Variable: iris3

Edgar Anderson’s Iris Data

Package

rdata.

Source

rdata.lisp.

Special Variable: islands

Areas of the World’s Major Landmasses

Package

rdata.

Source

rdata.lisp.

Special Variable: johnsonjohnson

Quarterly Earnings per Johnson & Johnson Share

Package

rdata.

Source

rdata.lisp.

Special Variable: lakehuron

Level of Lake Huron 1875-1972

Package

rdata.

Source

rdata.lisp.

Special Variable: lh

Luteinizing Hormone in Blood Samples

Package

rdata.

Source

rdata.lisp.

Special Variable: lifecyclesavings

Intercountry Life-Cycle Savings Data

Package

rdata.

Source

rdata.lisp.

Special Variable: loblolly

Growth of Loblolly pine trees

Package

rdata.

Source

rdata.lisp.

Special Variable: longley

Longley’s Economic Regression Data

Package

rdata.

Source

rdata.lisp.

Special Variable: lynx

Annual Canadian Lynx trappings 1821-1934

Package

rdata.

Source

rdata.lisp.

Special Variable: morley

Michelson Speed of Light Data

Package

rdata.

Source

rdata.lisp.

Special Variable: mpg

Fuel economy data from 1999 to 2008 for 38 popular models of cars

Package

rdata.

Source

rdata.lisp.

Special Variable: mtcars

Motor Trend Car Road Tests

Package

rdata.

Source

rdata.lisp.

Special Variable: nhtemp

Average Yearly Temperatures in New Haven

Package

rdata.

Source

rdata.lisp.

Special Variable: nile

Flow of the River Nile

Package

rdata.

Source

rdata.lisp.

Special Variable: nottem

Average Monthly Temperatures at Nottingham, 1920-1939

Package

rdata.

Source

rdata.lisp.

Special Variable: npk

Classical N, P, K Factorial Experiment

Package

rdata.

Source

rdata.lisp.

Special Variable: nycflights13-airlines

Airline name lookup table by carrier code

Package

rdata.

Source

rdata.lisp.

Special Variable: nycflights13-airports

Airport metadata

Package

rdata.

Source

rdata.lisp.

Special Variable: nycflights13-flights

On-time data for all flights that departed NYC (i.e. JFK, LGA or EWR) in 2013

Package

rdata.

Source

rdata.lisp.

Special Variable: nycflights13-planes

Metadata for all airplane tail numbers found in the FAA aircraft registry

Package

rdata.

Source

rdata.lisp.

Special Variable: nycflights13-weather

Hourly meterological data for LGA, JFK and EWR in 2013

Package

rdata.

Source

rdata.lisp.

Special Variable: occupationalstatus

Occupational Status of Fathers and their Sons

Package

rdata.

Source

rdata.lisp.

Special Variable: orange

Growth of Orange Trees

Package

rdata.

Source

rdata.lisp.

Special Variable: orchardsprays

Potency of Orchard Sprays

Package

rdata.

Source

rdata.lisp.

Special Variable: plantgrowth

Results from an Experiment on Plant Growth

Package

rdata.

Source

rdata.lisp.

Special Variable: precip

Annual Precipitation in US Cities

Package

rdata.

Source

rdata.lisp.

Special Variable: presidents

Quarterly Approval Ratings of US Presidents

Package

rdata.

Source

rdata.lisp.

Special Variable: pressure

Vapor Pressure of Mercury as a Function of Temperature

Package

rdata.

Source

rdata.lisp.

Special Variable: puromycin

Reaction Velocity of an Enzymatic Reaction

Package

rdata.

Source

rdata.lisp.

Special Variable: quakes

Locations of Earthquakes off Fiji

Package

rdata.

Source

rdata.lisp.

Special Variable: randu

Random Numbers from Congruential Generator RANDU

Package

rdata.

Source

rdata.lisp.

Special Variable: rivers

Lengths of Major North American Rivers

Package

rdata.

Source

rdata.lisp.

Special Variable: rock

Measurements on Petroleum Rock Samples

Package

rdata.

Source

rdata.lisp.

Special Variable: seatbelts

Road Casualties in Great Britain 1969-84

Package

rdata.

Source

rdata.lisp.

Special Variable: stackloss

Brownlee’s Stack Loss Plant Data

Package

rdata.

Source

rdata.lisp.

Special Variable: sunspot.month

Monthly Sunspot Data, from 1749 to Present

Package

rdata.

Source

rdata.lisp.

Special Variable: sunspot.year

Yearly Sunspot Data, 1700-1988

Package

rdata.

Source

rdata.lisp.

Special Variable: sunspots

Monthly Sunspot Numbers, 1749-1983

Package

rdata.

Source

rdata.lisp.

Special Variable: swiss

Swiss Fertility and Socioeconomic Indicators (1888) Data

Package

rdata.

Source

rdata.lisp.

Special Variable: theoph

Pharmacokinetics of Theophylline

Package

rdata.

Source

rdata.lisp.

Special Variable: titanic

Survival of passengers on the Titanic

Package

rdata.

Source

rdata.lisp.

Special Variable: toothgrowth

The Effect of Vitamin C on Tooth Growth in Guinea Pigs

Package

rdata.

Source

rdata.lisp.

Special Variable: treering

Yearly Treering Data, -6000-1979

Package

rdata.

Source

rdata.lisp.

Special Variable: trees

Diameter, Height and Volume for Black Cherry Trees

Package

rdata.

Source

rdata.lisp.

Special Variable: ucbadmissions

Student Admissions at UC Berkeley

Package

rdata.

Source

rdata.lisp.

Special Variable: ukdriverdeaths

Road Casualties in Great Britain 1969-84

Package

rdata.

Source

rdata.lisp.

Special Variable: ukgas

UK Quarterly Gas Consumption

Package

rdata.

Source

rdata.lisp.

Special Variable: usaccdeaths

Accidental Deaths in the US 1973-1978

Package

rdata.

Source

rdata.lisp.

Special Variable: usarrests

Violent Crime Rates by US State

Package

rdata.

Source

rdata.lisp.

Special Variable: usjudgeratings

Lawyers’ Ratings of State Judges in the US Superior Court

Package

rdata.

Source

rdata.lisp.

Special Variable: uspersonalexpenditure

Personal Expenditure Data

Package

rdata.

Source

rdata.lisp.

Special Variable: uspop

Populations Recorded by the US Census

Package

rdata.

Source

rdata.lisp.

Special Variable: vadeaths

Death Rates in Virginia (1940)

Package

rdata.

Source

rdata.lisp.

Special Variable: volcano

Topographic Information on Auckland’s Maunga Whau Volcano

Package

rdata.

Source

rdata.lisp.

Special Variable: warpbreaks

The Number of Breaks in Yarn during Weaving

Package

rdata.

Source

rdata.lisp.

Special Variable: women

Average Heights and Weights for American Women

Package

rdata.

Source

rdata.lisp.

Special Variable: worldphones

The World’s Telephones

Package

rdata.

Source

rdata.lisp.

Special Variable: wwwusage

Internet Usage per Minute

Package

rdata.

Source

rdata.lisp.


5.1.2 Ordinary functions

Function: data (d &key system directory type)

Load a data frame from a CSV or LISP data source located on the local filesystem named by D. Intended for example data sets for Lisp-Stat system. Parameters may be either a KEYWORD or STRING. JSON files require application specific loaders, so not handled here. Use (read-vega ...) for example.

Description
Each package using lisp-stat should define its own logical host, and a directory called DATA. Once done, you can load the example data sets like so:

LS-USER> (data my-example :system :glimpse)

If the system is named GLIMPSE. To load a data set from R, assuming you have configured a logical host named RDATA:

LS-USER> (data :antigua :system :rdata :directory :daag :type :csv)

Package

dfio.

Source

data.lisp.

Function: data-column (&key map-alist default-float-format)
Package

dfio.data-column.

Source

data-column.lisp.

Function: data-column-add (data-column string)
Package

dfio.data-column.

Source

data-column.lisp.

Function: data-column-counts (data-column)

Return the counts.

Package

dfio.data-column.

Source

data-column.lisp.

Function: data-column-vector (data-column)

Return the collected elements as a vector.

Package

dfio.data-column.

Source

data-column.lisp.

Function: parse-rational (string &key start end exponent-chars)

Parse a decimal rational in (subseq string start end) of the form [sign][whole][.[fraction]][exponent] where

sign ::= + | - | empty
whole ::= digit*
fraction ::= digit*
exponent ::= exponent-char[sign]digit+

with the restriction that WHOLE and FRACTION cannot be empty at the same time. EXPONENT-CHAR is a string and contains the valid exponent chars.

Whitespace is NOT trimmed, and leads to an error. In case of a parsing failure, PARSE-RATIONAL-ERROR is used.

Return (values NUMBER DECIMAL-DOT? EXPONENT-CHAR). NUMBER is a RATIONAL, DECIMAL-DOT? is T when a decimal dot is present, otherwise NIL, EXPONENT-CHAR contains the exponent character, NIL if not present.

Numbers of the form .112 and 112. are valid syntax, representing 0.112 and 112.0, respectively.

Examples:

(parse-rational "7") => (values 7 NIL NIL)
(parse-rational "7.") => (values 7 T NIL)
(parse-rational "0.7") => (values 7/10 T NIL)
(parse-rational ".7") => (values 7/10 T NIL)
(parse-rational "7.e2") => (values 700 T #e)
(parse-rational ".7d1") => (values 7 T #d)

Package

dfio.decimal.

Source

decimal.lisp.

Function: parse-real (string &key start end s-float f-float d-float l-float e-float)

Wrapper for PARSE-RATIONAL, converting non-integers to floats. The float type is determined by the -float arguments for each exponent character. Integers are not converted to floats. Return a single value, type of (or integer float).

See PARSE-RATIONAL for accepted formats, errors, etc.

Package

dfio.decimal.

Source

decimal.lisp.

Function: read-csv (source &key skip-first-row? column-keys-or-function package map-alist)

Read a CSV file, stream, string or URL into a DATA-FRAME, which is returned.
When SKIP-FIRST-ROW?, the first row is read separately and COLUMN-KEYS-OR-FUNCTION is used to form column keys.
When COLUMN-KEYS-OR-FUNCTION is a sequence, it is used for column keys, regardless of the value of SKIP-FIRST-ROW?.
PACKAGE indicates the package to intern column names into.

MAP-ALIST maps values during the import. This is useful if you want special mappings for missing, though the mechanism is general. Returns two values, the data-frame and the source

Package

dfio.

Source

delimited-text.lisp.

Function: save (data-symbol pathspec &optional suffix)

Save DF in the file named by PATHSPEC. By default, a suffix of .lisp is added.

Package

dfio.

Source

write.lisp.

Function: string-table (&key table)
Package

dfio.string-table.

Source

string-table.lisp.

Function: string-table-add (string-table string &optional value)

Add STRING mapped to VALUE to STRING-TABLE, raising STRING-TABLE-DUPLICATE if STRING is already in the table. Return VALUE.

Package

dfio.string-table.

Source

string-table.lisp.

Function: string-table-count (string-table)

Number of distinct strings in the table.

Package

dfio.string-table.

Source

string-table.lisp.

Function: string-table-intern (string-table string &optional new-value)

If STRING is already in STRING-TABLE, return its value, otherwise add it and return NEW-VALUE. When used with the default argument for NEW-VALUE, EQUAL strings are always mapped to values that are EQ.

Package

dfio.string-table.

Source

string-table.lisp.

Function: string-table-lookup (string-table string)

Return the value corresponding to STRING in STRING-TABLE, or raise the STRING-TABLE-NOT-FOUND error.

Package

dfio.string-table.

Source

string-table.lisp.

Function: string-table-strings (string-table)

List of strings in STRING-TABLE.

Package

dfio.string-table.

Source

string-table.lisp.

Function: string-to-keyword (string)

Map string to a keyword.

The current implementation replaces #. and #space with a #-, and upcases all other characters.

Package

dfio.

Source

utils.lisp.

Function: string-to-symbol (string)

Map STRING to a symbol in PACKAGE, replacing #., #_ and #space with a #-, and upcasing all other characters. Exports symbol.

Package

dfio.

Source

utils.lisp.

Function: symbol-name-to-pathname (string)

Map the symbol-name of S to something that can be part of a logical-pathname

Package

dfio.

Source

utils.lisp.

Function: write-csv (df stream &key add-first-row separator quote eol)

Write DF to STRING-OR-STREAM in CSV format. STRING-OR-STREAM can be a STREAM, a STRING or a file PATHSPEC.

Keywords:
string-or-stream: stream to write to. Default: nil, returning a string
add-first-row: add column names as the first row
separator: separator to use when reading or writing CSV files. A character. By default, a comma: #,
quote: quote character to use when reading or writing CSV files. A character. By default, a double-quote: #" eol: line ending to use when writing CSV files. A string. By default, +CRLF+ as specified by creativyst.

Notes:
The :newline keyword requires a sequence, so use :newline ’(#newline)

Package

dfio.

Source

delimited-text.lisp.

Function: write-df (data-symbol &optional stream)

Write DATA-SYMBOL to STREAM in a format suitable for reading back in with the Lisp reader

Package

dfio.

Source

write.lisp.

Function: write-properties (data-symbol property &optional stream)

Write the variable PROPERTY strings to stream so they can be read back in when LOADed from a lisp file. By convention, the name of the function that sets the property is the same as the property. Example (write-property mtcars :label)

Package

dfio.

Source

write.lisp.


5.1.3 Standalone methods

Method: print-object ((string-table string-table) stream)
Source

string-table.lisp.


5.1.4 Conditions

Condition: parse-rational-error

Error used by parse-rational and parse-real.

Package

dfio.decimal.

Source

decimal.lisp.

Direct superclasses

error.

Direct slots
Slot: string
Package

common-lisp.

Initform

(quote nil)

Initargs

:string

Slot: message
Initform

(quote nil)

Initargs

:message

Condition: string-table-duplicate

String is already in the table.

Package

dfio.string-table.

Source

string-table.lisp.

Direct superclasses

error.

Condition: string-table-not-found

String not found in table.

Package

dfio.string-table.

Source

string-table.lisp.

Direct superclasses

error.


5.1.5 Structures

Structure: string-table

A table of distinct strings, optionally mapping each one to a value.

Package

dfio.string-table.

Source

string-table.lisp.

Direct superclasses

structure-object.

Direct methods

print-object.

Direct slots
Slot: table
Type

hash-table

Initform

(make-hash-table :test (function equalp))

Readers

string-table-table.

Writers

(setf string-table-table).


5.1.6 Classes

Class: data-column
Package

dfio.data-column.

Source

data-column.lisp.

Direct slots
Slot: reverse-elements
Type

list

Slot: default-float-format
Type

symbol

Initargs

:default-float-format

Slot: float-count
Type

dfio.data-column::non-negative-integer

Initform

0

Slot: integer-count
Type

dfio.data-column::non-negative-integer

Initform

0

Slot: integer-min
Type

integer

Initform

0

Slot: integer-max
Type

integer

Initform

0

Slot: map-count
Type

dfio.data-column::non-negative-integer

Initform

0

Slot: map-table
Type

dfio.string-table:string-table

Initargs

:map-table

Slot: string-count
Type

dfio.data-column::non-negative-integer

Initform

0

Slot: string-table
Package

dfio.string-table.

Type

dfio.string-table:string-table

Initform

(dfio.string-table:string-table)


5.2 Internals


5.2.1 Special variables

Special Variable: *default-external-format*

External format used for opening files

Package

dfio.

Source

utils.lisp.

Special Variable: *r-default-dataframes*

Data frames corresponding to the default R datasets

Package

rdata.

Source

rdata.lisp.

Special Variable: +exponent-chars+

Default exponent characters.

Package

dfio.decimal.

Source

decimal.lisp.

Special Variable: student-sleep

Student’s Sleep Data

Package

rdata.

Source

rdata.lisp.


5.2.2 Macros

Macro: with-csv-output-stream ((name inp) &body body)
Package

dfio.

Source

utils.lisp.

Macro: with-input-stream ((name inp) &body body)
Package

dfio.

Source

utils.lisp.


5.2.3 Ordinary functions

Function: %in-stream (source)
Package

dfio.

Source

utils.lisp.

Function: %out-stream (source)

creates a stream from the given thing, trying to DWIM

Package

dfio.

Source

utils.lisp.

Function: copy-string-table (instance)
Package

dfio.string-table.

Source

string-table.lisp.

Function: csv-to-data-columns (source skip-first-row? &key map-alist)

Read a CSV file (or stream, or string), accumulate the values in DATA-COLUMNs, return a list of these. Rows are checked to have the same number of elements.

When SKIP-FIRST-ROW?, the first row is read separately and returned as the second value (list of strings), otherwise it is considered data like all other rows.

Package

dfio.

Source

delimited-text.lisp.

Function: gobble-positive-integer (string start end)

If (SUBSEQ STRING START END) starts with a nonnegative integer (ie a sequence of digits 0-9), return the integer and position at which it ends as two values.

Otherwise, return NIL and 0.

START < END has to hold, END cannot be NIL. Consequences are undefined when START >= END.

Package

dfio.decimal.

Source

decimal.lisp.

Function: gobble-sign (string start)

Return (values SIGNUM INDEX), where SIGNUM is -1 or 1 depending on whether (CHAR STRING START) was a sign, and INDEX is the index of the subsequent character (START or START+1).

Package

dfio.decimal.

Source

decimal.lisp.

Function: string-table-get (string-table string)

Synonym for GETHASH, used internally.

Package

dfio.string-table.

Source

string-table.lisp.

Function: (setf string-table-get) (string-table string)

Synonym for (SETF GETHASH), used internally, checks that STRING is a string.

Package

dfio.string-table.

Source

string-table.lisp.

Function: string-table-p (object)
Package

dfio.string-table.

Source

string-table.lisp.

Reader: string-table-table (instance)
Writer: (setf string-table-table) (instance)
Package

dfio.string-table.

Source

string-table.lisp.

Target Slot

table.


5.2.4 Types

Type: non-negative-integer ()
Package

dfio.data-column.

Source

data-column.lisp.

Type: str-strm-file ()
Package

dfio.

Source

utils.lisp.


Appendix A Indexes


A.1 Concepts


A.2 Functions

Jump to:   %   (  
C   D   F   G   M   P   R   S   W  
Index Entry  Section

%
%in-stream: Private ordinary functions
%out-stream: Private ordinary functions

(
(setf string-table-get): Private ordinary functions
(setf string-table-table): Private ordinary functions

C
copy-string-table: Private ordinary functions
csv-to-data-columns: Private ordinary functions

D
data: Public ordinary functions
data-column: Public ordinary functions
data-column-add: Public ordinary functions
data-column-counts: Public ordinary functions
data-column-vector: Public ordinary functions

F
Function, %in-stream: Private ordinary functions
Function, %out-stream: Private ordinary functions
Function, (setf string-table-get): Private ordinary functions
Function, (setf string-table-table): Private ordinary functions
Function, copy-string-table: Private ordinary functions
Function, csv-to-data-columns: Private ordinary functions
Function, data: Public ordinary functions
Function, data-column: Public ordinary functions
Function, data-column-add: Public ordinary functions
Function, data-column-counts: Public ordinary functions
Function, data-column-vector: Public ordinary functions
Function, gobble-positive-integer: Private ordinary functions
Function, gobble-sign: Private ordinary functions
Function, parse-rational: Public ordinary functions
Function, parse-real: Public ordinary functions
Function, read-csv: Public ordinary functions
Function, save: Public ordinary functions
Function, string-table: Public ordinary functions
Function, string-table-add: Public ordinary functions
Function, string-table-count: Public ordinary functions
Function, string-table-get: Private ordinary functions
Function, string-table-intern: Public ordinary functions
Function, string-table-lookup: Public ordinary functions
Function, string-table-p: Private ordinary functions
Function, string-table-strings: Public ordinary functions
Function, string-table-table: Private ordinary functions
Function, string-to-keyword: Public ordinary functions
Function, string-to-symbol: Public ordinary functions
Function, symbol-name-to-pathname: Public ordinary functions
Function, write-csv: Public ordinary functions
Function, write-df: Public ordinary functions
Function, write-properties: Public ordinary functions

G
gobble-positive-integer: Private ordinary functions
gobble-sign: Private ordinary functions

M
Macro, with-csv-output-stream: Private macros
Macro, with-input-stream: Private macros
Method, print-object: Public standalone methods

P
parse-rational: Public ordinary functions
parse-real: Public ordinary functions
print-object: Public standalone methods

R
read-csv: Public ordinary functions

S
save: Public ordinary functions
string-table: Public ordinary functions
string-table-add: Public ordinary functions
string-table-count: Public ordinary functions
string-table-get: Private ordinary functions
string-table-intern: Public ordinary functions
string-table-lookup: Public ordinary functions
string-table-p: Private ordinary functions
string-table-strings: Public ordinary functions
string-table-table: Private ordinary functions
string-to-keyword: Public ordinary functions
string-to-symbol: Public ordinary functions
symbol-name-to-pathname: Public ordinary functions

W
with-csv-output-stream: Private macros
with-input-stream: Private macros
write-csv: Public ordinary functions
write-df: Public ordinary functions
write-properties: Public ordinary functions


A.3 Variables

Jump to:   *   +  
A   B   C   D   E   F   H   I   J   L   M   N   O   P   Q   R   S   T   U   V   W  
Index Entry  Section

*
*default-external-format*: Private special variables
*r-default-dataframes*: Private special variables
*r-default-datasets*: Public special variables

+
+exponent-chars+: Private special variables

A
ability.cov: Public special variables
airmiles: Public special variables
airpassengers: Public special variables
airquality: Public special variables
anscombe: Public special variables
attenu: Public special variables
attitude: Public special variables
austres: Public special variables

B
base-url: Public special variables
bjsales: Public special variables
bod: Public special variables

C
cars: Public special variables
chickweight: Public special variables
chickwts: Public special variables
co2-1: Public special variables
co2-2: Public special variables
crimtab: Public special variables

D
default-float-format: Public classes
discoveries: Public special variables
dnase: Public special variables

E
esoph: Public special variables
euro: Public special variables
eustockmarkets: Public special variables

F
faithful: Public special variables
float-count: Public classes
formaldehyde: Public special variables
freeny: Public special variables

H
haireyecolor: Public special variables
harman23.cor: Public special variables
harman74.cor: Public special variables

I
index: Public special variables
indometh: Public special variables
infert: Public special variables
insectsprays: Public special variables
integer-count: Public classes
integer-max: Public classes
integer-min: Public classes
iris: Public special variables
iris3: Public special variables
islands: Public special variables

J
johnsonjohnson: Public special variables

L
lakehuron: Public special variables
lh: Public special variables
lifecyclesavings: Public special variables
loblolly: Public special variables
longley: Public special variables
lynx: Public special variables

M
map-count: Public classes
map-table: Public classes
message: Public conditions
morley: Public special variables
mpg: Public special variables
mtcars: Public special variables

N
nhtemp: Public special variables
nile: Public special variables
nottem: Public special variables
npk: Public special variables
nycflights13-airlines: Public special variables
nycflights13-airports: Public special variables
nycflights13-flights: Public special variables
nycflights13-planes: Public special variables
nycflights13-weather: Public special variables

O
occupationalstatus: Public special variables
orange: Public special variables
orchardsprays: Public special variables

P
plantgrowth: Public special variables
precip: Public special variables
presidents: Public special variables
pressure: Public special variables
puromycin: Public special variables

Q
quakes: Public special variables

R
randu: Public special variables
reverse-elements: Public classes
rivers: Public special variables
rock: Public special variables

S
seatbelts: Public special variables
Slot, default-float-format: Public classes
Slot, float-count: Public classes
Slot, integer-count: Public classes
Slot, integer-max: Public classes
Slot, integer-min: Public classes
Slot, map-count: Public classes
Slot, map-table: Public classes
Slot, message: Public conditions
Slot, reverse-elements: Public classes
Slot, string: Public conditions
Slot, string-count: Public classes
Slot, string-table: Public classes
Slot, table: Public structures
Special Variable, *default-external-format*: Private special variables
Special Variable, *r-default-dataframes*: Private special variables
Special Variable, *r-default-datasets*: Public special variables
Special Variable, +exponent-chars+: Private special variables
Special Variable, ability.cov: Public special variables
Special Variable, airmiles: Public special variables
Special Variable, airpassengers: Public special variables
Special Variable, airquality: Public special variables
Special Variable, anscombe: Public special variables
Special Variable, attenu: Public special variables
Special Variable, attitude: Public special variables
Special Variable, austres: Public special variables
Special Variable, base-url: Public special variables
Special Variable, bjsales: Public special variables
Special Variable, bod: Public special variables
Special Variable, cars: Public special variables
Special Variable, chickweight: Public special variables
Special Variable, chickwts: Public special variables
Special Variable, co2-1: Public special variables
Special Variable, co2-2: Public special variables
Special Variable, crimtab: Public special variables
Special Variable, discoveries: Public special variables
Special Variable, dnase: Public special variables
Special Variable, esoph: Public special variables
Special Variable, euro: Public special variables
Special Variable, eustockmarkets: Public special variables
Special Variable, faithful: Public special variables
Special Variable, formaldehyde: Public special variables
Special Variable, freeny: Public special variables
Special Variable, haireyecolor: Public special variables
Special Variable, harman23.cor: Public special variables
Special Variable, harman74.cor: Public special variables
Special Variable, index: Public special variables
Special Variable, indometh: Public special variables
Special Variable, infert: Public special variables
Special Variable, insectsprays: Public special variables
Special Variable, iris: Public special variables
Special Variable, iris3: Public special variables
Special Variable, islands: Public special variables
Special Variable, johnsonjohnson: Public special variables
Special Variable, lakehuron: Public special variables
Special Variable, lh: Public special variables
Special Variable, lifecyclesavings: Public special variables
Special Variable, loblolly: Public special variables
Special Variable, longley: Public special variables
Special Variable, lynx: Public special variables
Special Variable, morley: Public special variables
Special Variable, mpg: Public special variables
Special Variable, mtcars: Public special variables
Special Variable, nhtemp: Public special variables
Special Variable, nile: Public special variables
Special Variable, nottem: Public special variables
Special Variable, npk: Public special variables
Special Variable, nycflights13-airlines: Public special variables
Special Variable, nycflights13-airports: Public special variables
Special Variable, nycflights13-flights: Public special variables
Special Variable, nycflights13-planes: Public special variables
Special Variable, nycflights13-weather: Public special variables
Special Variable, occupationalstatus: Public special variables
Special Variable, orange: Public special variables
Special Variable, orchardsprays: Public special variables
Special Variable, plantgrowth: Public special variables
Special Variable, precip: Public special variables
Special Variable, presidents: Public special variables
Special Variable, pressure: Public special variables
Special Variable, puromycin: Public special variables
Special Variable, quakes: Public special variables
Special Variable, randu: Public special variables
Special Variable, rivers: Public special variables
Special Variable, rock: Public special variables
Special Variable, seatbelts: Public special variables
Special Variable, stackloss: Public special variables
Special Variable, student-sleep: Private special variables
Special Variable, sunspot.month: Public special variables
Special Variable, sunspot.year: Public special variables
Special Variable, sunspots: Public special variables
Special Variable, swiss: Public special variables
Special Variable, theoph: Public special variables
Special Variable, titanic: Public special variables
Special Variable, toothgrowth: Public special variables
Special Variable, treering: Public special variables
Special Variable, trees: Public special variables
Special Variable, ucbadmissions: Public special variables
Special Variable, ukdriverdeaths: Public special variables
Special Variable, ukgas: Public special variables
Special Variable, usaccdeaths: Public special variables
Special Variable, usarrests: Public special variables
Special Variable, usjudgeratings: Public special variables
Special Variable, uspersonalexpenditure: Public special variables
Special Variable, uspop: Public special variables
Special Variable, vadeaths: Public special variables
Special Variable, volcano: Public special variables
Special Variable, warpbreaks: Public special variables
Special Variable, women: Public special variables
Special Variable, worldphones: Public special variables
Special Variable, wwwusage: Public special variables
stackloss: Public special variables
string: Public conditions
string-count: Public classes
string-table: Public classes
student-sleep: Private special variables
sunspot.month: Public special variables
sunspot.year: Public special variables
sunspots: Public special variables
swiss: Public special variables

T
table: Public structures
theoph: Public special variables
titanic: Public special variables
toothgrowth: Public special variables
treering: Public special variables
trees: Public special variables

U
ucbadmissions: Public special variables
ukdriverdeaths: Public special variables
ukgas: Public special variables
usaccdeaths: Public special variables
usarrests: Public special variables
usjudgeratings: Public special variables
uspersonalexpenditure: Public special variables
uspop: Public special variables

V
vadeaths: Public special variables
volcano: Public special variables

W
warpbreaks: Public special variables
women: Public special variables
worldphones: Public special variables
wwwusage: Public special variables


A.4 Data types

Jump to:   C   D   F   N   P   R   S   T   U   W  
Index Entry  Section

C
Class, data-column: Public classes
Condition, parse-rational-error: Public conditions
Condition, string-table-duplicate: Public conditions
Condition, string-table-not-found: Public conditions

D
data-column: Public classes
data-column.lisp: The dfio/data-column․lisp file
data.lisp: The dfio/data․lisp file
decimal.lisp: The dfio/decimal․lisp file
delimited-text.lisp: The dfio/delimited-text․lisp file
dfio: The dfio system
dfio: The dfio package
dfio.asd: The dfio/dfio․asd file
dfio.data-column: The dfio․data-column package
dfio.decimal: The dfio․decimal package
dfio.string-table: The dfio․string-table package

F
File, data-column.lisp: The dfio/data-column․lisp file
File, data.lisp: The dfio/data․lisp file
File, decimal.lisp: The dfio/decimal․lisp file
File, delimited-text.lisp: The dfio/delimited-text․lisp file
File, dfio.asd: The dfio/dfio․asd file
File, pkgdcl.lisp: The dfio/pkgdcl․lisp file
File, rdata.lisp: The dfio/rdata․lisp file
File, string-table.lisp: The dfio/string-table․lisp file
File, utils.lisp: The dfio/utils․lisp file
File, write.lisp: The dfio/write․lisp file

N
non-negative-integer: Private types

P
Package, dfio: The dfio package
Package, dfio.data-column: The dfio․data-column package
Package, dfio.decimal: The dfio․decimal package
Package, dfio.string-table: The dfio․string-table package
Package, rdata: The rdata package
parse-rational-error: Public conditions
pkgdcl.lisp: The dfio/pkgdcl․lisp file

R
rdata: The rdata package
rdata.lisp: The dfio/rdata․lisp file

S
str-strm-file: Private types
string-table: Public structures
string-table-duplicate: Public conditions
string-table-not-found: Public conditions
string-table.lisp: The dfio/string-table․lisp file
Structure, string-table: Public structures
System, dfio: The dfio system

T
Type, non-negative-integer: Private types
Type, str-strm-file: Private types

U
utils.lisp: The dfio/utils․lisp file

W
write.lisp: The dfio/write․lisp file