if (FALSE) {
library(BigDataStatMeth)
# Create a test CSV file
data <- matrix(rnorm(100), 10, 10)
write.csv(data, "test.csv", row.names = FALSE)
# Import to HDF5
bdImportTextFile_hdf5(
filename = "test.csv",
outputfile = "output.hdf5",
outGroup = "data",
outDataset = "matrix1",
sep = ",",
header = TRUE,
overwriteFile = TRUE
)
# Cleanup
unlink(c("test.csv", "output.hdf5"))
}
Run the code above in your browser using DataLab