A Data Scientist's Guide to Acquiring, Cleaning, and Managing Data in R by Samuel E. Buttrey & Lyn R. Whitaker
Author:Samuel E. Buttrey & Lyn R. Whitaker
Language: eng
Format: epub
ISBN: 9781119080060
Publisher: Wiley
Published: 2017-09-28T00:00:00+00:00
5.1.1 Function Arguments
An argument is a value passed to a function. The aforementioned funk function has two arguments named x and y. R functions may have as many arguments as needed (or none at all). Arguments may be vectors or data frames or lists or functions or any other R object. This means that if you develop a function, particularly for other users, the first thing it should do is to ensure that the arguments are of the types expected by the user. For example, the funk function checks to see that the argument x is a non-negative number. But what happens if the user passes a data frame or a character string or a list? The function developer needs to detect these unexpected inputs and stop gracefully. We discuss error handling in Section 5.3.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Implementing Enterprise Observability for Success by Manisha Agrawal and Karun Krishnannair(7442)
Supercharging Productivity with Trello by Brittany Joiner(6705)
Mastering Tableau 2023 - Fourth Edition by Marleen Meier(6471)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6427)
Inkscape by Example by István Szép(6325)
Visualize Complex Processes with Microsoft Visio by David J Parker & Šenaj Lelić(6019)
Build Stunning Real-time VFX with Unreal Engine 5 by Hrishikesh Andurlekar(5026)
Design Made Easy with Inkscape by Christopher Rogers(4658)
Customizing Microsoft Teams by Gopi Kondameda(4195)
Linux Device Driver Development Cookbook by Rodolfo Giometti(3943)
Business Intelligence Career Master Plan by Eduardo Chavez & Danny Moncada(3811)
Extending Microsoft Power Apps with Power Apps Component Framework by Danish Naglekar(3784)
Salesforce Platform Enterprise Architecture - Fourth Edition by Andrew Fawcett(3664)
Pandas Cookbook by Theodore Petrou(3639)
The Tableau Workshop by Sumit Gupta Sylvester Pinto Shweta Sankhe-Savale JC Gillet and Kenneth Michael Cherven(3441)
TCP IP by Todd Lammle(2995)
Drawing Shortcuts: Developing Quick Drawing Skills Using Today's Technology by Leggitt Jim(2927)
Exploring Microsoft Excel's Hidden Treasures by David Ringstrom(2912)
Applied Predictive Modeling by Max Kuhn & Kjell Johnson(2888)
