Book description
Want to use the power of R sooner rather than later? Don’t have time to plow through wordy texts and online manuals? Use this book for quick, simple code to get your projects up and running. It includes code and examples applicable to many disciplines. Written in everyday language with a minimum of complexity, each chapter provides the building blocks you need to fit R’s astounding capabilities to your analytics, reporting, and visualization needs.
CRAN Recipes recognizes how needless jargon and complexity get in your way. Busy professionals need simple examples and intuitive descriptions; side trips and meandering philosophical discussions are left for other books.
Here R scripts are condensed, to the extent possible, to copy-paste-run format. Chapters and examples are structured to purpose rather than particular functions (e.g., “dirty data cleanup” rather than the R package name “janitor”). Everyday language eliminatesthe need to know functions/packages in advance.
What You Will Learn
- Carry out input/output; visualizations; data munging; manipulations at the group level; and quick data exploration
- Handle forecasting (multivariate, time series, logistic regression, Facebook’s Prophet, and others)
- Use text analytics; sampling; financial analysis; and advanced pattern matching (regex)
- Manipulate data using DPLYR: filter, sort, summarize, add new fields to datasets, and apply powerful IF functions
- Create combinations or subsets of files using joins
- Write efficient code using pipes to eliminate intermediate steps (MAGRITTR)
- Work with string/character manipulation of all types (STRINGR)
- Discover counts, patterns, and how to locate whole words
- Do wild-card matching, extraction, and invert-match
- Work with dates using LUBRIDATE
- Fix dirty data; attractive formatting; bad habits to avoid
Who This Book Is For
Programmers/data scientists with at least some prior exposure to R.
Table of contents
- Cover
- Front Matter
- 1. DPLYR
- 2. Stringr
- 3. Lubridate: Date and Time Processing
- 4. Regular Expressions: Introduction
- 5. Typical Uses
- 6. Some Simple Patterns
- 7. Character Classes
- 8. Elements of Regular Expressions
- 9. The Magnificent Seven
- 10. Regular Expressions in Stringr
- 11. Unicode
- 12. Tools for Development and Resources
- 13. RegEx Summary
- 14. Recipes for Common R Tasks
- 15. Data Structures
- 16. Visualization
- 17. Simple Prediction Methods
- 18. Smorgasbord of Simple Statistical Tests
- 19. Validation of Data
- 20. Shortcuts and Miscellaneous
- 21. Conclusion
- Back Matter
Product information
- Title: CRAN Recipes: DPLYR, Stringr, Lubridate, and RegEx in R
- Author(s):
- Release date: April 2021
- Publisher(s): Apress
- ISBN: 9781484268766
You might also like
book
R Data Science Quick Reference: A Pocket Guide to APIs, Libraries, and Packages
In this handy, practical book you will cover each concept concisely, with many illustrative examples. You'll …
book
ggplot2 Essentials
Explore the full range of ggplot2 plotting capabilities to create meaningful and spectacular graphs Discover the …
book
Advanced R 4 Data Programming and the Cloud: Using PostgreSQL, AWS, and Shiny
Program for data analysis using R and learn practical skills to make your work more efficient. …
article
Splitting Strings on Any of Multiple Delimiters
Build your knowledge of Python with this Shortcuts collection. Focusing on common problems involving text manipulation, …