Created
April 24, 2023 12:53
-
-
Save grimbough/99d7cc9578ea32fa41ba44cca7bee6ad to your computer and use it in GitHub Desktop.
Example of reading anndata nullable with rhdf5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(rhdf5) | |
packageVersion("rhdf5") | |
#> [1] '2.43.6' | |
h5File <- system.file("testfiles", "nullable_examples.h5", package = "rhdf5") | |
h5read(h5File, name = "nullable_boolean") | |
#> [1] TRUE FALSE NA | |
h5read(h5File, name = "nullable_integer") | |
#> [1] 1 NA 3 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment