Lesson 1 Flashcards

1
Q

What are objects/variables?

A

Named data structures that store data

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

What are objects/variables in R?

A

Call the data stored in an object

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

What is R?

A

An object oriented programming language?

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

What can objects be?

A

Single digit, character, a Boolean, data frame, a list of data frame, matrix,vector etc.

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

hashtag/# in R?

A

Tells R what follows is NOT executable code

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

How to create an object?

A

Object name <- value

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

What is a numeric vector?

A

One dimensional arrays

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

What is R arithmetic order by operations?

A

First: Exponent or root, second: multiplication or division, third: addition or subtraction

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

What are vector?

A

A sequence of data elements that are of the same type

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

What are the type of vector?

A

Integer, double, charater, logical, complex, raw

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

What is the assignment operator?

A

The left pointing arrow and the dash or minus (<-)

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

What are variables and functions names in R composed of?

A

Letters (a-z, A-Z), numerals (0-9), periods (.), and underscores (_), and they may be arbitrarily long.

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

What is an integers?

A

Whole numbers; with nothing after the decimal

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

What are double?

A

Doubles store regular numbers (large, small, positive, negative, with digits after the decimal, or without)

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

(String)The elements of character vectors; can be…

A

Letters, numbers, or symbols

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

Logical vector stores

A

Boolean data (True or False)

17
Q

Coercion rules:

A

If a vector has even one string element, all other elements will be converted to strings

18
Q

How does function operate function.name(x)

A

Runs the function called function.name on the data x

19
Q

Function is R…

A

Store a command instead of data

20
Q

What is the function format?

A

Name + body of code + arguments