part 3 Flashcards

1
Q

three-way match

A
  1. purchase order
  2. goods receipt
  3. invoice
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

all.x = TRUE (merging)

A

merging should be done in a left-join

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

left-join

A

all rows from the left data frame will be included in the result, and matching rows from the right data frame will be added based on the specified columns

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

use pivot_longer() to reproduce the same result - bank_fin<-gather(bank_fin, key = ‘metric’, value = value, price, change, percent_change, volume, vol_ave, capitalization, pe_ratio)

A

bank_fin2 <- bank_fin |> pivot_longer(
cols = price:pe_ratio,
names_to = ‘metric’,
values_to = ‘value’)

str(bank_fin2)

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

set.seed function (R)

A

ensures that the sequence of random numbers generated byy the computer is reproducible. If you set the same seed, you’ll get the same sequence of random numbers every time you run the code

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