The class"atomicVector" is a
virtual class containing all atomic vector classes of base R,
as also implicitly defined via is.atomic.
Objects from the Class
A virtual Class: No objects may be created from it.
Methods
In the Matrix package, the "atomicVector" is used in signatures
where typically “old-style” "matrix" objects can be used and
can be substituted by simple vectors.
Extends
The atomic classes
"logical", "integer", "double", "numeric",
"complex", "raw" and "character" are extended
directly. Note that "numeric" already contains "integer"
and "double", but we want all of them to be direct subclasses of
"atomicVector".
Author(s)
Martin Maechler
See Also
is.atomic, integer, numeric,
complex, etc.
Examples
showClass("atomicVector")
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(Rmpfr)
Loading required package: gmp
Attaching package: 'gmp'
The following objects are masked from 'package:base':
%*%, apply, crossprod, matrix, tcrossprod
C code of R package 'Rmpfr': GMP using 64 bits per limb
Attaching package: 'Rmpfr'
The following objects are masked from 'package:stats':
dbinom, dnorm, dpois, pnorm
The following objects are masked from 'package:base':
cbind, pmax, pmin, rbind
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/Rmpfr/atomicVector-class.Rd_%03d_medium.png", width=480, height=480)
> ### Name: atomicVector-class
> ### Title: Virtual Class "atomicVector" of Atomic Vectors
> ### Aliases: atomicVector-class
> ### Keywords: classes
>
> ### ** Examples
>
> showClass("atomicVector")
Virtual Class "atomicVector" [package "Rmpfr"]
No Slots, prototype of class "logical"
Extends: "array_or_vector"
Known Subclasses:
Class "logical", directly
Class "integer", directly
Class "numeric", directly
Class "complex", directly
Class "raw", directly
Class "character", directly
Class "factor", by class "integer", distance 2
Class "signature", by class "character", distance 2
Class "className", by class "character", distance 2
Class "ObjectsWithPackage", by class "character", distance 2
Class "factor", by class "numeric", distance 3
>
>
>
>
>
> dev.off()
null device
1
>