Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Tableau 2019.1

You're reading from   Mastering Tableau 2019.1 An expert guide to implementing advanced business intelligence and analytics with Tableau 2019.1

Arrow left icon
Product type Paperback
Published in Feb 2019
Publisher
ISBN-13 9781789533880
Length 558 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Marleen Meier Marleen Meier
Author Profile Icon Marleen Meier
Marleen Meier
David Baldwin David Baldwin
Author Profile Icon David Baldwin
David Baldwin
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Section 1: Tableau Concepts, Basics
2. Getting Up to Speed - A Review of the Basics FREE CHAPTER 3. All About Data - Getting Your Data Ready 4. Tableau Prep 5. All About Data - Joins, Blends, and Data Structures 6. All About Data - Data Densification, Cubes, and Big Data 7. Table Calculations 8. Level of Detail Calculations 9. Section 2: Advanced Calculations, Mapping, Visualizations
10. Beyond the Basic Chart Types 11. Mapping 12. Tableau for Presentations 13. Visualization Best Practices and Dashboard Design 14. Advanced Analytics 15. Improving Performance 16. Section 3: Connecting Tableau to R, Python, and Matlab
17. Interacting with Tableau Server 18. Programming Tool Integration 19. Other Books You May Enjoy

Examples of troubleshooting in Tableau and R

It's important to make sure that the variables you pass to an R argument line up with what R is expecting. Consider the following example based on code from the Exercise – Correlations section:

SCRIPT_REAL("cor(.arg1, .arg2)",   SUM([Sales]), SUM([Profit]))   

Initial code from exercise 2.

script_real("cor(.arg1)",   SUM([Sales]), SUM([Profit]))   

Adjusted code from exercise 2. Note that cor now only receives one variable.

Error in cor(.arg1): supply both 'x'   and 'y' or a matrix-like 'x'   

Adjusted code throws this error.

It's certainly no surprise that R would throw an error in this case. The cor function requires two variables, but the adjusted code only provides one. As stated in the returned error message, a second variable is required.

Be...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image