R hdf5 dataset written incorrectly?
问题 When I execute the following my "predictors" dataset is populated correctly: library(rhdf5) library(forecast) library(sltl) library(tseries) fid <- H5Fcreate(output_file) ## TODO: compute the order p p <- 4 # write predictors h5createDataset(output_file, dataset="predictors", c(p, length(tsstl.remainder) - (p - 1)), storage.mode='double') predictors <- as.matrix(tsstl.remainder) for (i in 1:(p - 1)) { predictors <- as.matrix(cbind(predictors, Lag(as.matrix(tsstl.remainder), i))) } predictors