Hi, Apologies if the question is too simple but I didn't find the answer by myself. I'm able to create a 3-dimensionnal array A and to write it with write.table() ... but, after that, I don't find how to read it with read.table() getting the right 3 dimensions. I tried to use as.array(), to force the dim, etc but it didn't work. (It's probably obvious ... ?) Thanks for your info or pointer. Vincent
how to write and read an array ?
3 messages · vincent@7d4.com, Francisco J. Zagmutt
check ?dput and ?dget Cheers Francisco
From: vincent at 7d4.com To: r-help at stat.math.ethz.ch Subject: [R] how to write and read an array ? Date: Thu, 27 Oct 2005 19:00:10 +0200 Hi, Apologies if the question is too simple but I didn't find the answer by myself. I'm able to create a 3-dimensionnal array A and to write it with write.table() ... but, after that, I don't find how to read it with read.table() getting the right 3 dimensions. I tried to use as.array(), to force the dim, etc but it didn't work. (It's probably obvious ... ?) Thanks for your info or pointer. Vincent
______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Francisco J. Zagmutt a ??crit :
check ?dput and ?dget
Thanks for the answer. dput and dget work well (even if the internal data writing is not as directly readable as with write.table()) (When I'll be grown-up with R, I'll write a write.3dtable() function.) Thanks. Vincent