community
cancel
Showing results for 
Search instead for 
Did you mean: 
Do you have the skills to make it to the top? Subscribe to our weekly challenges. Try your best to solve the problem, share your solution, and see how others tackled the same problem. We share our answer too.
Weekly Challenge
Do you have the skills to make it to the top? Subscribe to our weekly challenges. Try your best to solve the problem, share your solution, and see how others tackled the same problem. We share our answer too.
Unable to display your progress at this time. Please try again a little later, or contact an administrator if you continue to see this error.
Announcement | Get certified today - take the Alteryx Designer Core and Advanced exams on-demand now!

Challenge #160: Diamonds R Forever

Sr. Instructional Designer
Sr. Instructional Designer

A solution to last week's challenge can be found here

 

Happiest of birthdays to those of you born in the month of April!  Did you know that the diamond is this month's birthstone?  To celebrate, analyze a dataset to count the number of diamonds that fall within a range of carat weights. 

 

The zip file below contains the file BigDiamonds.rda.  Use the R tool to read in the data to use in Designer.  You may find this article helpful for this challenge! 

 

Note: Make sure you have your Predictive tools installed!

 

 

ChillyWatchfulHornshark-size_restricted.gifHappy Birthday from the shiniest of diamonds...Neil Diamond.

 

Spoiler
Capture.PNG

unzip("%Engine.WorkflowDirectory%BigDiamonds.zip", exdir="%Engine.WorkflowDirectory%Data")
load("%Engine.WorkflowDirectory%Data\\BigDiamonds.Rda")
write.Alteryx(diamondsbig,1)
Asteroid

Took me some time to figure out how to read the actual content of the output and not just the name of the file but here it is!

Atom
Spoiler
weekly_challenge.JPG

Solution attached. Also quickly explored how avg. price varies between certification agencies...wow.

Alteryx Certified Partner

I'm forever the R-soul.

 

Spoiler
Challenge 160 - Capture.PNG

 

 

Quasar

Challenging!

 

Spoiler
Challenge #160.PNG
Pulsar

The R tool was very frustrating, until I realized that my slashes were in the wrong direction. User error strikes again!

 

Then just wanted to group the carats like I found in the diamond charts, so my formula tool differs a bit from othersimage.png

 

Not entirely sure I understand what I did with the R tool, other than get it to function, so something new to learn just dropped!!!

Alteryx Certified Partner

First-time used the R tool and finally managed to bring the data to the workflow. Afterwards it seems easy and straightforward ...

 

Aurora

24 diamonds above 8 carats.  Sweet Caroline, indeed!

 

Spoiler
WF.png

Dan

Asteroid
Spoiler
Challenge 160.PNG