Add the optional DataCite Size
property as an attribute to an R object.
Value
The estimated object size in memory is added as an attribute to x
in SI
kB and IEC KiB (legacy Kb) units,
rounded to two decimals. Returns the x
object.
Details
Size
is an optional property in
DataCite 4.3.
The object size is estimated with [utils]{object.size}
.
See also
Other Reference metadata functions:
creator()
,
dataset_source()
,
description()
,
geolocation()
,
identifier()
,
language
,
publication_year()
,
publisher()
,
rights()
,
version()
Examples
iris_dataset <- size(iris)
attr(iris_dataset, "Size")
#> [1] "7.26 kB [7.09 KiB]"