File: extract_dim.Rd

package info (click to toggle)
r-cran-hdf5r 1.3.3%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 12,344 kB
  • sloc: ansic: 85,341; sh: 51; python: 32; makefile: 13
file content (32 lines) | stat: -rw-r--r-- 875 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/convert.R
\name{extract_dim}
\alias{extract_dim}
\title{Set the correct dimension attribute for an object}
\usage{
extract_dim(space, dtype)
}
\arguments{
\item{space}{The space with the selection that was used to read the dataset}

\item{dtype}{The datatype of the dataset}

\item{x}{an object that was read from an HDF5 dataset or attribute}
}
\value{
\code{x}, but with a new dimension attribute
}
\description{
Set the correct dimension attribute for an object
}
\details{
This function uses the space and the selection in it to set the correct dimension
for the resulting object (but without dropping dimensions). Furthermore, if the
datatype is an array, those dimensions are correctly determined as well.

Internal use only; currently unused
}
\author{
Holger Hoefling
}
\keyword{internal}