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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Name the basic atomic classes of objects

A

character

numeric (real numbers)

integer

complex

logical (true/false)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly