Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Import Problem Further Explanation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg55404] Re: Import Problem Further Explanation
  • From: dh <dh at metrohm.ch>
  • Date: Tue, 22 Mar 2005 03:50:55 -0500 (EST)
  • References: <d1lv5k$7r0$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Benedetto,
with Mathematica version 5.1 without  "ConversionOptions" it seems to work:

fo = {{"aa", 1, 1., "ab"}, {"ba", 2, 2., "bb"}};
Export["Test", fo, "CSV"];
in = Import["Test", "CSV"] // FullForm

List[List["aa", 1, 1.`, "ab"], List["ba", 2, 2.`, "bb"]]

What is the ConversionOptions for?? With it you get the wrong answer

List[List["aa", 1, 1.`, "ab"], List["ba,2,2.,bb"]]

Daniel

Benedetto Bongiorno wrote:
> To All,
> 
> My apologies for assuming you knew what I was referring to.
> 
> If you Export a list of lists (500x20), that comprises a mix of strings,
> integers and reals, as a "CSV" file and
> then import back nto a note book, it no longer is a 500x20 list of lists. It
> is the non rectangular lis of listsThere are slashes "/" and quotes "{"
> misplaced.
>  Try it on 5.1 and see if you get the same results.
> 
> Export[""Test",fo,"CSV"]];
> 
> fo=Import["'Test"","CSV",ConversionOptions->{"Numeric"->False}];
> 
> Thank You
> 
> 


  • Prev by Date: File names shortened in 5.1 under Windows 2000
  • Next by Date: Re: plotting weighted graphs
  • Previous by thread: Import Problem Further Explanation
  • Next by thread: Restriction on the domain of Plot3D