Displaying 2 results from an estimated 2 matches for "onwrite".
Did you mean:
nowrite
2008 Sep 27
1
writeMat error
...ion of R.matlab and older version because of bug
https://stat.ethz.ch/pipermail/r-help/2008-September/173432.html
A <- matrix(1:27, ncol=3)
B <- as.matrix(1:10)
fn <- paste(tempfile(), ".mat", sep="")
writeMat(fn, A=A, B=B)
data <- readMat(fn)
print(data)
unlink(fn)
onWrite <- function(x)
writeBin(x$length, con=x$con, size=4, endian="big");
writeMat(fn, A=A, B=B, onWrite=onWrite)
Does generate a file in /tmp/Rtmpjhfjxw
-rw-r--r-- 1 dst dst 396 2008-09-27 12:46 file643c9869.mat
When I try to read it into Matlab I get
??? Error using ==> load
Unable...
2009 Mar 31
0
How to load data from BLS web
I would like to load the producer price indexes of BLS (Bureau of Labor
Statistics) into R:
For example, Commodity Data in
http://www.bls.gov/ppi/
There are many tables there.
I was wondering if you knew some R-package/function that can do this
or any basic idea onwriting functions to load data that can be loaded from
web. Thanks,
-james