File: H5T_COMPOUND-class.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 (70 lines) | stat: -rw-r--r-- 2,070 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/R6Classes_H5T.R
\docType{class}
\name{H5T_COMPOUND-class}
\alias{H5T_COMPOUND-class}
\alias{H5T_COMPOUND}
\title{Class for HDF5 compound datatypes.}
\value{
Object of class \code{\link[=H5T_COMPOUND]{H5T_COMPOUND}}.
}
\description{
Inherits from class \code{\link[=H5T]{H5T}}.
}
\section{Methods}{

\describe{
\item{\code{new(labels, dtypes, size = NULL, offset = NULL, id = NULL)}}{

Create at compound type that is the HDF5 equivalent of a table

\strong{Parameters}
\describe{
\item{labels}{The labels of the columns of the compound object}
\item{dtypes}{The datatypes of the columns of the object; this is usually a list of objects
of class \code{\link{H5T}}}
\item{size}{The size of each datatype; if \code{NULL}, automatically inferred}
\item{offset}{The offset where each datatype starts; can be different from the sum of the individual sizes
so that datatypes are aligned with memory addresses. If \code{NULL}, inferred automatically}
\item{id}{Internal use only}
}}

\item{\code{pack()}}{

This function implements the HDF5-API function H5Tpack.
Please see the documentation at \url{https://portal.hdfgroup.org/display/HDF5/H5T_PACK} for details.}

\item{\code{get_cpd_types()}}{

Return \code{\link{H5T}} objects that represent the datatypes of the columns of the 
compound object. Returned as a list if more than 1}

\item{\code{get_cpd_labels()}}{

Return the labels of the columns as a character vector}

\item{\code{get_cpd_classes()}}{

Return the classes of the columns as an object of type \code{\link{factor_ext}}}

\item{\code{get_cpd_offsets()}}{

Return the offsets of the datatypes}

\item{\code{describe()}}{

Print a detailed description of the datatype; this is experimental}
}}

\examples{
# create a H5T_COMPOUND  corresponding to a data-frame
my_cpd <- H5T_COMPOUND$new(c("name", "age", "salary"),
    dtypes=list(H5T_STRING$new(size=200), h5types$H5T_NATIVE_INT, h5types$H5T_NATIVE_DOUBLE))
my_cpd
}
\seealso{
\code{\link[=H5T]{H5T}}
}
\author{
Holger Hoefling
}