T1: Getting startet Flashcards

1
Q

THE POWER OF R IN DATA
ANALYSIS

A
  • Comprehensive statistical analysis capabilities
  • Rich ecosystem with numerous libraries
  • Popularity in the data science community

Python is the same, but it is more popular in the industry. That + comes with it
being less reliable -

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

INTEGRATED DEVELOPMENT
ENVIRONMENTS (IDES)

A

What is an IDE?
* Streamline, manage, and execute coding
* Debugging
* Testing
* Enhance productivity
* Collaboration

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

EXPLORING R STUDIO

A

Comprehensive IDE tailored for R
* Features: Script editor, console, plots, and more
* Integrated tools for reproducible research

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

NAVIGATING THE R STUDIO
INTERFACE

A
  • Script/source Panel:
    Write and execute R
    scripts
  • Console: Direct R
    commands and view
    outputs
  • Environment: Monitor
    variables, data frames,
    and more
  • Output: Plots, Packages,
    and Help: Visualization
    and extensions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

IN-BUILT HELP

A

> [function name] ## Executes the function
?[function name] ## gets you help
information

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

DEBUGGING

A

How to ask for help:
I was attempting to [desired behavior]
This is my code [code]
This is what happens [error or output]

E.g.
I was trying to [merge two columns, so as to get a matrix]
rbind(c1, c2)
I get a long column instead.

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

BASIC DATA TYPES

A

a <- 2
x <-
c(1,2,3,4)
x*2
>x

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

DATA TYPES

A

Numbers
* 1, 2, 3
* 3.14
Strings/characters
* “Hello world”
Booleans
* TRUE / FALSE (T /
F)

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

BASIC OPERATORS

A

For numerical values (x
and y)

Arithmetic operators:
x+y
x-y
x*y
x/y
x^y
x%%y

For boolean values (x
and y)

Logical operators
! x
x & y
x | y

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

BASIC FUNCTIONS

A

Create/load data:
* c()
* matrix()
* data.frame()
* read.table()
* read.csv()

Descriptives:
* mean()
* min()
* max()
* sum()

Data operations:
* subset()

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

BASIC FUNCTIONS

A

x <- c(1,2,3,4,5,-3,0,2)
sum(x)
max(x)
min(x)
subset(dataframe, logic
expression) hist()

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

CONTROL STRUCTURES

A

if(TRUE) {
print(“Yes it
is.”)
}
for(i in
1:10)
{ print(i)
}

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

IMPORTANT DAYA TYPES

A
  • Vector
  • Data
    frame
    Others:
    Matrix,
    List
How well did you know this?
1
Not at all
2
3
4
5
Perfectly