[R] export R-data to VisIt

Bart Joosen Bartjoosen at hotmail.com
Fri Oct 19 17:14:45 CEST 2007


Peter,

what a quick response!

But unfortunately, yes I tried the ncdf package, I looked at the examples, 
but after 2 hours trying and many, many errors,  I gave up.....

Bart
----- Original Message ----- 
From: "Peter Dalgaard" <P.Dalgaard at biostat.ku.dk>
To: "Bart Joosen" <Bartjoosen at hotmail.com>
Cc: <r-help at stat.math.ethz.ch>
Sent: Friday, October 19, 2007 4:56 PM
Subject: Re: [R] export R-data to VisIt


Bart Joosen wrote:
> Hello,
>
> Is there anyone porting R data to VisIt (http://www.llnl.gov/visit/)?
> Altough VisIt accepts 5 dozen of data formats, I can't get my data into 
> VisIt.
>
> I currently ran a simulation which gave me a data frame, which I wanted to 
> import into VisIt to further explore the dataframe.
>
> Let's say I have a data frame as follows:
>
> dat <- data.frame(cbind(  1,   1:10),X3= sample(LETTERS[1:3], 10, 
> repl=TRUE))
>
> My currently data export is write.table(dat,"C:/filename.csv")
> But I can't import this kind of data in Visit.
> An option is to export my dataframe as a .CDF file, but I couldn't get the 
> right output of my dataframe with netcdf.
>
> So how do I put my dataframe in a netCDF format, or is there anyone who 
> knows the easiest way to transport my data to VisIt?
>
>
Have you tried the ncdf package?


-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-help mailing list