From cf5969d06e9530565af133a3b141136b3ced562b Mon Sep 17 00:00:00 2001 From: AJ Rossini Date: Wed, 23 Sep 2009 16:20:49 +0200 Subject: [PATCH] use conversion to get CSV into an array. More processing needed. Signed-off-by: AJ Rossini --- ls-demo.lisp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/ls-demo.lisp b/ls-demo.lisp index 4c7c56d..3e13323 100644 --- a/ls-demo.lisp +++ b/ls-demo.lisp @@ -3,7 +3,7 @@ ;;; See COPYRIGHT file for any additional restrictions (BSD license). ;;; Since 1991, ANSI was finally finished. Edited for ANSI Common Lisp. -;;; Time-stamp: <2009-09-22 16:23:30 tony> +;;; Time-stamp: <2009-09-22 23:42:06 tony> ;;; Creation: <2009-09-17 22:19:31 tony> (sometime earlier, but serious now) ;;; File: ls-demo.lisp ;;; Author: AJ Rossini @@ -78,17 +78,22 @@ return a pathspec, not a string/namespec" ;;; read in a CSV dataframe... - ;; a better approach is: (asdf:oos 'asdf:load-op 'rsm-string) -(rsm.string:file->string-table - (localized-pathto "Data/example-mixed.csv") - :delims ",") +(listoflist->array + (rsm.string:file->string-table + (localized-pathto "Data/example-mixed.csv") + :delims ",")) (rsm.string:file->number-table (localized-pathto "Data/example-numeric.csv") :delims ",") + + + + + (rsm.string:file->number-table (localized-pathto "Data/R-chickwts.csv") :delims ",") -- 2.11.4.GIT