Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Non-CSV Dataset Creation
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mudphone  
View profile  
 More options Jan 30 2010, 9:18 pm
From: mudphone <kyle...@gmail.com>
Date: Sat, 30 Jan 2010 18:18:15 -0800 (PST)
Local: Sat, Jan 30 2010 9:18 pm
Subject: Non-CSV Dataset Creation
Hi folks,

I have some data which I already have stored as a list of Clojure
maps.  Is there a way to create an Incanter data set from this?
Currently, I'm transforming it into CSV files first, then doing a
"read-dataset".  Is that the "normal" way of going about it?  Or, is
there a short-cut?

Thanks,
Kyle


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Edgar Liebke  
View profile  
 More options Jan 30 2010, 9:38 pm
From: David Edgar Liebke <lie...@gmail.com>
Date: Sat, 30 Jan 2010 21:38:02 -0500
Local: Sat, Jan 30 2010 9:38 pm
Subject: Re: Non-CSV Dataset Creation
Hi Kyle,

The to-dataset function does what you want.

David


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mudphone  
View profile  
 More options Jan 30 2010, 9:47 pm
From: mudphone <kyle...@gmail.com>
Date: Sat, 30 Jan 2010 18:47:46 -0800 (PST)
Local: Sat, Jan 30 2010 9:47 pm
Subject: Re: Non-CSV Dataset Creation
Hi David,

Sorry for bothering you all weekend :)  Thanks for that.  Awesome.  I
was looking for it in incanter.io.

Kyle

On Jan 30, 6:38 pm, David Edgar Liebke <lie...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Edgar Liebke  
View profile  
 More options Jan 30 2010, 9:56 pm
From: David Edgar Liebke <lie...@gmail.com>
Date: Sat, 30 Jan 2010 21:56:23 -0500
Local: Sat, Jan 30 2010 9:56 pm
Subject: Re: Non-CSV Dataset Creation
No problem, I'm glad to help.

If you're working with datasets, also checkout the following recently
added functions:
$, $where, $join, $rollup, $order, and $group-by.

I've also made the chart functions dataset aware. You can pass column
names of a given dataset to the functions instead of the actual data
values. For instance,

(view (scatter-plot :Sepal.Length :Sepal.Width :group-by :Species
:data (get-dataset :iris)))

They also support the with-data macro:

(with-data (get-dataset :iris)
  (view (scatter-plot :Sepal.Length :Sepal.Width :group-by :Species)))

David


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mudphone  
View profile  
 More options Jan 30 2010, 10:08 pm
From: mudphone <kyle...@gmail.com>
Date: Sat, 30 Jan 2010 19:08:50 -0800 (PST)
Local: Sat, Jan 30 2010 10:08 pm
Subject: Re: Non-CSV Dataset Creation
David,

That is fantastic.  I was just looking at the with-data macro and
$where syntax.  It's just too cool.

* currently ripping my to-csv parsing code out and replacing with
incanter...
Kyle

On Jan 30, 6:56 pm, David Edgar Liebke <lie...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »