Splitting columns in R with the separate() command

  Рет қаралды 11,877

Equitable Equations

Equitable Equations

Күн бұрын

Пікірлер: 24
@EquitableEquations
@EquitableEquations 2 жыл бұрын
You can find materials supporting this vid (and others) at github.com/equitable-equations/youtube.
@ndowidar
@ndowidar Жыл бұрын
Thank you so much for teaching this lesson!
@CanDoSo_org
@CanDoSo_org 2 жыл бұрын
Cool, very useful command! Thank you so much!
@andresmeneses6601
@andresmeneses6601 2 жыл бұрын
What an amazing channel. Thank you for your help!
@EquitableEquations
@EquitableEquations 2 жыл бұрын
Thanks! Glad it's been helpful.
@haraldurkarlsson1147
@haraldurkarlsson1147 8 ай бұрын
separate has been replaced with separate_wider_(delim, position or regex). It is a great function.
@Gisele633
@Gisele633 Жыл бұрын
Wonderfully thaks!!!
@oscarrosalescorzo
@oscarrosalescorzo 2 жыл бұрын
Thanks for the video
@romanvasiura6705
@romanvasiura6705 Жыл бұрын
Thank you!
@mugomuiruri2313
@mugomuiruri2313 Жыл бұрын
Wonderful
@Plantss
@Plantss 2 жыл бұрын
Thank you for a wonderful tutorial! I'm working with large dataset, and I can see the results I'm looking for in the console by doing head() but its not applying to my actual dataset when i do View(). Im not sure what im doing wrong here. Any advice?
@EquitableEquations
@EquitableEquations 2 жыл бұрын
Hmm, you should see similar things with head and View, assuming you pass them each the same data set. My guess is that your inputs aren't exactly the same. Good luck!
@toluojutiku9585
@toluojutiku9585 2 жыл бұрын
Hello, Thank you for the video, this was very explanatory. But what do we do if we want to split the observations in Multiple columns in our dataset into multiple columns, what do we do? I tried the separate function, but this didn't work
@EquitableEquations
@EquitableEquations 2 жыл бұрын
Hi! The separate() command specifically targets a single column, probably because a lot could go wrong if you were to split multiple columns at once. While you could iterate the process, I'd be nervous about doing so.
@MorrisMcK
@MorrisMcK 2 жыл бұрын
Professor. It is a great content. I have a large dataset of tick level data. So, each day i have thousands of transactions. Is it possible to split daily transactions data into three buckets- namely low, medium, and large transactions. Say there are 30k transactions. I want first 10k as low, the middle 10k as medium, and the rest as large? Thank You.
@EquitableEquations
@EquitableEquations 2 жыл бұрын
Hi! Either cut() or one of the slice_*() functions should do the job. I have a vid on the latter: kzbin.info/www/bejne/bZPUpaCDm6maY5Y
@mohammadzarifwahidy9020
@mohammadzarifwahidy9020 2 жыл бұрын
what if a column contains a vector, instead of Johny Smith you have c(Johny, Smith) and instead of Mary Smith you have c(Mary, Smith). How do you separate them? thanks
@EquitableEquations
@EquitableEquations 2 жыл бұрын
Hi! The hoist() command is probably what you're looking for.
@어쩔티비-k3w
@어쩔티비-k3w 2 жыл бұрын
I have some question . This is my code and I think I did same as you, but it doesnt work. separate(Graduation_1, col = date, into = c("year", "month", "day")) Error code : Must extract column with a single valid subscript. x Subscript `var` has the wrong type `function`. i It must be numeric or character. Run `rlang::last_error()` to see where the error occurred.
@EquitableEquations
@EquitableEquations 2 жыл бұрын
Hi! For specific questions like this, I recommend the R4DS learning community. www.rfordatasci.com/
@jamesleleji6984
@jamesleleji6984 2 жыл бұрын
how do you separate the values of a column where no delimiter is given?
@EquitableEquations
@EquitableEquations 2 жыл бұрын
There has to be some sort of delimiter in order for this task to make sense, right? Either in the data or user-specified.
@jamesleleji6984
@jamesleleji6984 2 жыл бұрын
@@EquitableEquations Thanks, I've figured it out. I used, sep = 1 to split the values of a column sexage into 2 new columns sex and age..
@tmitra001
@tmitra001 4 ай бұрын
hi it is not saving in smits data after you split! right?
Combining columns in R with unite()
4:38
Equitable Equations
Рет қаралды 9 М.
Data wrangling with R in 27 minutes
27:19
Equitable Equations
Рет қаралды 27 М.
Friends make memories together part 2  | Trà Đặng #short #bestfriend #bff #tiktok
00:18
ЗНАЛИ? ТОЛЬКО ОАЭ 🤫
00:13
Сам себе сушист
Рет қаралды 4 МЛН
How to purrr
17:46
Equitable Equations
Рет қаралды 11 М.
Exploring Data Science Salaries Using R and the tidyverse
21:50
Data Professor
Рет қаралды 1,7 М.
How to calculate column mean & mean for sub-groups in R or RStudio
26:32
Minukuu Tutorials
Рет қаралды 9 М.
Teaching the tidyverse in 2023 | Mine Çetinkaya-Rundel
37:55
Posit PBC
Рет қаралды 18 М.
Learn R in 39 minutes
38:56
Equitable Equations
Рет қаралды 731 М.
Grouping and Summarizing Data Using dplyr
13:54
weecology
Рет қаралды 10 М.
Data visualization with R in 36 minutes
36:16
Equitable Equations
Рет қаралды 35 М.
Separate and Unite - manipulate your data with R programming
5:26
R Programming 101
Рет қаралды 11 М.