Related Posts
Making the fall schedule
is crazy!!
Additional Posts in Data & Analytics Consultants
New to Fishbowl?
Download the Fishbowl app to
unlock all discussions on Fishbowl.
unlock all discussions on Fishbowl.
Making the fall schedule
is crazy!!
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Download the Fishbowl app to unlock all discussions on Fishbowl.
Copy and paste embed code on your site
Send download link to your phone
OR
Scan your QR code to download
Fishbowl app on your mobile
In any given language there are usually many ways to do something like this, some faster than others. My guess is you’ve learned to be fairly efficient in SAS but while you are learning the basics of R you haven’t learned to do things efficiently in it.
R is a different beast. A ton of useful packages are available to do data prep - learn the crap out of tidy and dplyr if you want to save your sanity
Learn the R Tidyverse that Hadley Wickham created. I did my masters doing a lot of SAS and it is trash compared to other data science languges. Trying to stop thinking in SAS helps a lot, R is a language people can be experts in a package without knowing a different library/package.
Thanks all- I’m still on the basic basics so I’m probably doing things the long way anyway Dplyr is about 1 chapter away though!
Damn! You will get there. There’s a simple function you can write to recode the ordinal variables. Infact, there are packages which do that for you. Rock chalk is one. Same with setting levels.
One of the tips I’ll give you is that after you do this one, save this script because I bet, you would have to use this on multiple projects. Infact, even in your current project in case the reqt changes later. I have learnt it the hard way :-)
SAS is better for data monkey work for many reasons. Automation with macro language, pull data natively with pass through sql, can multithread jobs if on multicore sever...and so on. And you can still run R from SAS, so why not just keep SAS and run R from it?
If you're manually doing something, write a function to do it faster.
KPMG 1 the good news is I wasn’t coding in SAS I was using their drag and drop platform lol
if you are learning R, use swirl package. Gives you a good leg up
https://swirlstats.com/students.html
What ZS said x100. The beauty of R is reusability. I have about a dozen core pieces of code that get mixed and matched like utensils in a kitchen
If you use functions repeatedly make yourself a package that you can load. It is easier than it sounds.