Effortlessly Simplify Your R Code with These Tips and Tricks

  Рет қаралды 7,217

Tom Henry - data science with R

Tom Henry - data science with R

Күн бұрын

Пікірлер: 24
@tomhenry-datasciencewithr6047
@tomhenry-datasciencewithr6047 4 жыл бұрын
Let me know if this helps you clean code in RStudio! PS -- subscribe if you liked this video because I'll be posting more resources on working with R code in RStudio over the next few weeks.
@CanDoSo_org
@CanDoSo_org Жыл бұрын
Thanks, Tom. Very useful! Is there a package to help to code more efficiently in R like in VScode, like autocomplete, autofill.
@jonathanjayes
@jonathanjayes 3 жыл бұрын
Thank you so much - this was fantastic - appreciate it Tom!
@vic090892
@vic090892 4 жыл бұрын
Pretty useful! Thanks a lot!
@tomhenry-datasciencewithr6047
@tomhenry-datasciencewithr6047 4 жыл бұрын
Glad it was helpful!
@vic090892
@vic090892 4 жыл бұрын
@@tomhenry-datasciencewithr6047 Sure it was! I am sometimes investing time to correct indentation when I move or delete part of the code, this will save me a couple of mins. And it will be pretty useful to format my coworkers scripts that are usually quite messy xD
@timmytesla9655
@timmytesla9655 2 жыл бұрын
I learnt something new today. Thank you.
@SamirNeg
@SamirNeg 4 жыл бұрын
Great stuff, sir!
@tomhenry-datasciencewithr6047
@tomhenry-datasciencewithr6047 4 жыл бұрын
Thank you kindly!
@glennhighcoveexploresstuff
@glennhighcoveexploresstuff 4 жыл бұрын
Thank you, that was super-helpful. In terms of tabs/indentation, what is the accepted general practice? Some of us are learning R in the wild and probably have some atrocious-looking code out here. What you demonstrated is a major fix for us, but what underlying rule or standard is this applying?
@tomhenry-datasciencewithr6047
@tomhenry-datasciencewithr6047 4 жыл бұрын
Hi Glenn! This is the best short resource on R style that I know of at the moment: adv-r.had.co.nz/Style.html It covers * File names * Object names * Spacing * Curly braces * Line length * Indentation * Assignment * Commenting
@glennhighcoveexploresstuff
@glennhighcoveexploresstuff 4 жыл бұрын
@@tomhenry-datasciencewithr6047 Thank you, now bookmarked! I'm really enjoying these videos, I return to them often to relearn core skills and have seen my skills and R aptitude advance as a result. You are really doing a good deed with this series. I'm starting to really love R as a result.
@redmars2813
@redmars2813 Ай бұрын
How do I make it so styler does 4 indentation spaces instead of 2?
@tomhenry-datasciencewithr6047
@tomhenry-datasciencewithr6047 Ай бұрын
Open your Rprofile configuration file by running this command in R: ```file.edit(file.path("~", ".Rprofile"))``` Once the file is open, add the following lines to set the indentation level to 4 spaces (e.g., for the tidyverse style): ```options(styler.addins_style_transformer = "styler::tidyverse_style(indent_by = 4L)")``` After saving the file, restart your R session. Keen to hear how it goes, it works for me on Mac but I have not tested on other systems!
@fikarief
@fikarief 4 жыл бұрын
Is it possible to use styler without RStudio IDE?
@장성호-l6e
@장성호-l6e 4 жыл бұрын
Fantastic! Thanks so much! I want you to give me a lecture.. with any data, 1. From a series of preprocessing processes, 2. Selecting significant variables, 3. Setting up models by classificarion or prediction 4.Can you tell me how to compare models with various model evaluation(ex.ME, RMSE, MAE, MPE, MAPE, MASE). Thank you (with tidyverse package!)
@tomhenry-datasciencewithr6047
@tomhenry-datasciencewithr6047 4 жыл бұрын
As soon as possible!
@kanchanaramar
@kanchanaramar 2 жыл бұрын
Thanks. This was helpful.
@fabiuspocus1430
@fabiuspocus1430 2 жыл бұрын
Thanks a lot for this video.
@zhizhongpu8937
@zhizhongpu8937 7 ай бұрын
super helpful!
@long75315987
@long75315987 2 жыл бұрын
Thank you!!
@filanor2416
@filanor2416 4 жыл бұрын
Can you please increase font-size? it is really hard to see the codes even in 1080p. Also, if you add the script for example, via github or elsewhere and paste the link here, that would be great. thanks for the effort!
@tomhenry-datasciencewithr6047
@tomhenry-datasciencewithr6047 4 жыл бұрын
Great suggestions! I'll add the script too shortly.
@TheArtistRobEberle
@TheArtistRobEberle 3 жыл бұрын
10x Ash Running
Plotting in R - the basics
33:42
Tom Henry - data science with R
Рет қаралды 11 М.
R best practices
16:06
Lyndsie Wszola
Рет қаралды 3,1 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Discover 7 Hidden Gems in the R Package Ecosystem
20:18
Tom Henry - data science with R
Рет қаралды 13 М.
RStudio Tips and Tricks
21:26
Work-Bench
Рет қаралды 60 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,6 МЛН
Using renv to track the version of your packages in R (CC229)
20:33
Riffomonas Project
Рет қаралды 8 М.
Loops using R programming
13:37
R Programming 101
Рет қаралды 17 М.
How to Format Your R Code With {styler}
7:50
R for the Rest of Us
Рет қаралды 2,1 М.
Beautiful presentations with R and Quarto
24:51
Equitable Equations
Рет қаралды 9 М.
Transform Your Data Like a Pro with {tidyr} and Say Goodbye to Messy Data!
13:17
How To Structure Your Programming Projects
13:11
Hallden
Рет қаралды 269 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН