August 15, 2018 at 12:05 am
Comments posted to this topic are about the item Long Formats
August 15, 2018 at 4:06 am
Need to dust off my R
very true that if you don't use it for a while, you lose it...
Thanks for the question, Steve
____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
βlibera tute vulgaris exβ
August 15, 2018 at 8:35 am
For sure. I had to mess with this a bit to get an understanding, and then search a few older commands to set up a demo. This is after I haven't done any R in a month.
August 17, 2018 at 6:14 am
Not done much with R yet, definitely need to upskill!
Thanks for the question Steve
---------------------------------------------------------------------------------------
The more you know, the more you know that you dont know
August 17, 2018 at 7:36 am
My answer would be ... don't do this in R. π It's simple to do in T-SQL. And it's funny a bit... you've nicely covered up the word "EAV" with the term, "Long Format". π
--Jeff Moden
Change is inevitable... Change for the better is not.
August 17, 2018 at 8:10 am
Jeff Moden - Friday, August 17, 2018 7:36 AMMy answer would be ... don't do this in R. π It's simple to do in T-SQL. And it's funny a bit... you've nicely covered up the word "EAV" with the term, "Long Format". π
Long format is the R term. You do this for analysis in plotting to get multiple values. This isn't for modeling or storage.
August 17, 2018 at 8:38 am
Steve Jones - SSC Editor - Friday, August 17, 2018 8:10 AMJeff Moden - Friday, August 17, 2018 7:36 AMMy answer would be ... don't do this in R. π It's simple to do in T-SQL. And it's funny a bit... you've nicely covered up the word "EAV" with the term, "Long Format". πLong format is the R term. You do this for analysis in plotting to get multiple values. This isn't for modeling or storage.
So R can't handle a 2 column row of data? π (Just kidding).
I may have to break down and learn more about R because I do like the syntactical brevity a whole lot. I wish MS understood that when the wrote PIVOT. For that matter, they'd have done well if the incorporated the features of PIVOT found in MS Access instead of the god-awful one they settled on for SQL Server.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 17, 2018 at 10:20 am
Jeff Moden - Friday, August 17, 2018 8:38 AMSo R can't handle a 2 column row of data? π (Just kidding).
I may have to break down and learn more about R because I do like the syntactical brevity a whole lot. I wish MS understood that when the wrote PIVOT. For that matter, they'd have done well if the incorporated the features of PIVOT found in MS Access instead of the god-awful one they settled on for SQL Server.
It can, but for plotting multiple items, think multiple line charts together, you want the long format.
Don't learn R. It's got no great advantage I can see of Python and Python can do all of what R does and more. Most of the data analysis stuff has been ported to Python.
August 17, 2018 at 4:27 pm
Steve Jones - SSC Editor - Friday, August 17, 2018 10:20 AMJeff Moden - Friday, August 17, 2018 8:38 AMSo R can't handle a 2 column row of data? π (Just kidding).
I may have to break down and learn more about R because I do like the syntactical brevity a whole lot. I wish MS understood that when the wrote PIVOT. For that matter, they'd have done well if the incorporated the features of PIVOT found in MS Access instead of the god-awful one they settled on for SQL Server.
It can, but for plotting multiple items, think multiple line charts together, you want the long format.
Don't learn R. It's got no great advantage I can see of Python and Python can do all of what R does and more. Most of the data analysis stuff has been ported to Python.
Good tip. Thanks, Steve.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2018 at 11:33 am
You're welcome. Once I started with R, I realized it's a PIA and nowhere near as clear. I had some Python experience and started to see all the plotting, all the ML, all the analysis libraries in R that existed in Python. If you want to have some fun and get started, this is a good book you can read online: http://www.diveintopython3.net/
You can download Python 3 and put it on a laptop. I started with the free PyCharm IDE, but now I tend to use some VSCode. Both work well.
August 18, 2018 at 6:57 pm
Steve Jones - SSC Editor - Saturday, August 18, 2018 11:33 AMYou're welcome. Once I started with R, I realized it's a PIA and nowhere near as clear. I had some Python experience and started to see all the plotting, all the ML, all the analysis libraries in R that existed in Python. If you want to have some fun and get started, this is a good book you can read online: http://www.diveintopython3.net/You can download Python 3 and put it on a laptop. I started with the free PyCharm IDE, but now I tend to use some VSCode. Both work well.
Awesome. Thanks again, Steve.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 11 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic. Login to reply