Newbie here... I am 7/8ths of the way through the Data Analysis with RStudio course in Coursera... I've been doing quite well but have suddenly been stymied with a seemingly very simple operation.
I have been tasked with splitting the names in the "name" column into two new columns labeled 'first name' and 'last name'. Presumably (and according to the video), all I need to do is execute a simple command in the console:
separate(employee, name, into=c('first_name', 'last_name'), sep=' ')
But when I do so in RStudio (fully upto date) I am not allowed to separate the column. It informs me : "> library("separate")
Error in library("separate") : there is no package called βseparateβ""
When I install tidyr. the installation goes as expected:
'library("tidyverse")
ββ Attaching core tidyverse packages ββ
dplyr 1.1.3
readr 2.1.4
forcats 1.0.0
stringr 1.5.0
ggplot2 3.4.4
tibble 3.2.1
lubridate 1.9.3
tidyr 1.3.0
purrr 1.0.2
ββ Conflicts ββββββββββββββββββββββββββ
dplyr::filter() masks stats::filter()
dplyr::lag() masks stats::lag()
Use the conflicted package to force all conflicts to become errors'
Finally, I felt compelled to install a different, seemingly bootleg sEparaTe package, hoping that it would do the trick. It doesn't work either. Should I reinstall RStudio entirely? Any ideas, helpful hints?
Thanks.
P.S. Wrote a lot because I don't know how much I need to tell you in order to provide information that's tantamount to reprex.