[R] export R-data to VisIt

Peter Dalgaard P.Dalgaard at biostat.ku.dk
Fri Oct 19 16:56:37 CEST 2007

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