File: create_empty.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 (30 lines) | stat: -rw-r--r-- 887 bytes parent folder | download | duplicates (3)
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/convert.R
\name{create_empty}
\alias{create_empty}
\title{Create an empty R-object according to a given HDF5 datatype}
\usage{
create_empty(nelem, dtype)
}
\arguments{
\item{nelem}{The number of elements to use for the object}

\item{dtype}{The datatype based on which an empty R-object should be created}
}
\value{
An empty R object corresponding to the datatype that was passed in
}
\description{
Create an empty R-object according to a given HDF5 datatype
}
\details{
With complex datatypes it can be useful to have a template that can be used so that the
data input into a dataset conforms to expectations.

Given a datatype, this function creates an object of length \code{nelem}.
Here, an empty datatype refers to objects with value 0 for numeric objects and
empty strings.
}
\author{
Holger Hoefling
}