if (FALSE) {
# Move dataset to a different group
success <- bdmove_hdf5_dataset("data.h5",
source_path = "/old_group/my_dataset",
dest_path = "/new_group/my_dataset")
# Rename dataset within the same group
success <- bdmove_hdf5_dataset("data.h5",
source_path = "/data/old_name",
dest_path = "/data/new_name",
overwrite = TRUE)
# Move dataset to root level
success <- bdmove_hdf5_dataset("data.h5",
source_path = "/deep/nested/dataset",
dest_path = "/dataset")
# Move with automatic group creation
success <- bdmove_hdf5_dataset("data.h5",
source_path = "/old_location/dataset",
dest_path = "/new/deep/structure/dataset")
}
Run the code above in your browser using DataLab