Data frames for Common Lisp. A two-dimensional array-like structure in which each column contains values of one variable and each row contains one set of values from each column
Explore the docs »
Report Bug
·
Request Feature
·
Reference Manual
A data frame is a two dimensional data structure structure whose columns may be of differing types. It is similar to, and may be manipulated as, a Common Lisp array. Data frames hold tightly coupled collections of variables that all belong to one experiment.
To get a local copy up and running follow these steps:
An ANSI Common Lisp implementation. Developed and tested with SBCL.
Lisp-Stat is composed of several system that are designed to be
independently useful. So you can, for example, use data-frame
for
any project needing to manipulate two dimensional data in a machine
learning or statistical setting.
To make the system accessible to ASDF (a build facility, similar to make
in the C world), clone the repository in a directory ASDF knows about. By default the common-lisp
directory in your home directory is known. Create this if it doesn't already exist and then:
- Clone the repositories
cd ~/common-lisp && \
git clone https://github.com/Lisp-Stat/data-frame.git && \
git clone https://github.com/Lisp-Stat/dfio.git
- Reset the ASDF source-registry to find the new system (from the REPL)
(asdf:clear-source-registry)
- Load the system
(asdf:load-system :data-frame)
If you have installed the slime ASDF extensions, you can invoke this with a comma (',') from the slime REPL in emacs.
To get the third party systems that Lisp-Stat depends on you can use a dependency manager, such as Quicklisp or CLPM Once installed, get the dependencies with either of:
(clpm-client:sync :sources "clpi") ;sources may vary
(ql:quickload :data-frame)
You need do this only once. After obtaining the dependencies, you can
load the system with ASDF
as described above without first syncing
sources.
Create a data frame:
(make-df '(:a :b) '(#(1 2 3) #(10 20 30)))
For more examples, please refer to the Documentation.
See the open issues for a list of proposed features (and known issues).
This system is part of the Lisp-Stat project; that should be your first stop for information. Also see the resources and community page for more information.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated. Please see CONTRIBUTING.md for details on the code of conduct, and the process for submitting pull requests.
Distributed under the MS-PL License. See LICENSE for more information.
Project Link: https://github.com/lisp-stat/data-frame