Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2013

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Packages with data sets

  • To: mathgroup at smc.vnet.net
  • Subject: [mg130373] Re: Packages with data sets
  • From: Vince Virgilio <blueschi at gmail.com>
  • Date: Sat, 6 Apr 2013 05:09:50 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <kje14f$guq$1@smc.vnet.net>

Brentt,

You could put all data files in a subdirectory of your package dir, named "Data". Then use $InputFileName in your package file to create a variable named "dataDirectory". Directory and variables names at your discretion of course.

I've been keeping a variety of data this way for years, with extensions like XLS, MAT , WDX, and CSV. I avoid MX files because of their unportability (though I admire their speed).

Vince
 
On Tuesday, April 2, 2013 3:25:03 AM UTC-4, Brentt wrote:
> Hi, I am writing a package which requires for its use access to a 80 mb
> 
> data set.
> 
> 
> 
> Is there a standard way to associate a package with a set of data? I
> 
> figured out a way that involves pulling the data from dat files available
> 
> online and parsing them into a more readily available mathematica form. But
> 
> I'd rather be able to have the user just have the data with the package.
> 
> What is the best way to go about this? I thought .mx files but I noticed
> 
> the docs say that they don't work across platforms.




  • Prev by Date: Re: find position in a list made by string by searching incomplete
  • Next by Date: rayshade POV Export help asked
  • Previous by thread: Re: Packages with data sets
  • Next by thread: Re: Manipulate and Initialization