I am trying to rerun a bit of code I used for data analysis a while ago. I am not accustomed to R, so this might be a dumb error, sorry. The code stops at the very beginning, when I try to import data from csv and transform it to something usable.
I get "object d_beta [my data] not found". I'm using RStudio
I've made sure I've set the right wd and the file is indeed in it.
library(tidyverse)
d_beta <- read_csv("LIC_wyniki.csv")
d_beta %>%
slice(seq(9, nrow(d_beta), by = 10)) %>%
select(2, 5, 7, 10) %>%
rename(t16_d2 = X2, t16_d5 = X5, t21_d2 = X7, t21_d5 = X10) %>%
mutate_all(as.numeric) %>%
mutate(suma16 = t16_d2 + t16_d5, suma21 = t21_d2 + t21_d5) %>%
mutate(prop_t16_d2 = t16_d2 / suma16, prop_t21_d2 = t21_d2 / suma21)->
d_beta