Basics Flashcards
1
Q
What is a
Matrix
A
- an atomic vector with a dimension attribute
- a rectangular data type
- used to store tabular data
2
Q
What is
Coercion
A
The (implicit or explicit) conversion of data from one class to another, when data of different classes are combined within an object that can take only one class.
3
Q
Name the basic atomic classes of objects
A
character
numeric (real numbers)
integer
complex
logical (true/false)
4
Q
What is the main attribute of a vector?
A
It can only contain objects of the same class.
(The exception is the special list vector)
5
Q
What is an attribute?
A
An attribute is a property or the metadata of an object.
Some attributes are
- names, dimnames
- dimensions (e.g. matrices, arrays)
- class (e.g. integer, numeric)
- length
- user defined attributes/metadata
6
Q
A