ENGLISH

R 4 Quick Syntax Reference: A Pocket Guide to the Language, API’s and Library

Book information

Year
2022
ISBN
9781484279236, 9781484279243
Language
english
Format
PDF
Filesize
3 MB (3141227 bytes)
Edition
3
Pages
602\602
Time added
2022-04-02 20:52:37

Description

Table of Contents About the Author About the Technical Reviewer Acknowledgments Introduction Part I: R Basics Chapter 1: Downloading R and RStudio and Setting Up a File System Downloading R and RStudio The Windows Systems The macOS Systems The Linux Systems RStudio Installing and Updating Packages The Windows Systems The macOS Systems The Linux Systems Updating R All Systems The macOS Systems Using R in Separate Folders Projects in RStudio The Windows Systems The macOS Systems The Linux Systems Chapter 2: The R Prompt and the RStudio Main Menus and Subwindows The Three Parts of R: Objects, Operators, and Assignments The R Prompt An Example of a Calculation The Main Menus and the Four Subwindows in RStudio The Main Menus The First Subwindow The Second Subwindow The Third Subwindow The Fourth Subwindow Chapter 3: Assignments and Operators Types of Assignment Example of Three Types of Assignment Listing and Removing Objects in RStudio and R Operators Logical Operators and Functions Arithmetic Operators Matrix Operators and Functions Relational Operators Subscripting Operators Vectors Matrices Arrays Lists Other Types Odds and Ends Part II: Kinds of Objects Chapter 4: Types and Modes of Objects Overview of the Types and Modes Commonly Used Types Atomic, Recursive, Language, and S4 Kinds Some Functions for the Atomic Kind of Types The NULL Type The Raw Type The Logical Type The Integer or Double Types and the Numeric Mode The Complex Type The Character Type The Common Recursive Kind of Types The List Type The Closure, Special, and Builtin Types The Environment Type The S4 Type The Less Common Types The Language Kind of Objects Notes Chapter 5: Classes of Objects Some Basics on Classes Vectors Some Common S3 Classes The Matrix Class: matrix The Array Class: array Names for Vectors, Matrices, Arrays, and Lists The Data Frame Class: data.frame The Time Series Classes: ts and mts The Factor Classes: factor and ordered The Date and Time Classes: Date, POSIXct, POSIXlt, and difftime The Formula Class: formula The S4 Class Reference Classes Part III: Functions Chapter 6: Packaged Functions The Libraries Loading and Removing Packages Default Packages and Primitive Functions Using the Help Pages Identifier Title Description Usage Arguments Details Value Some Other Optional Sections References See Also Examples Chapter 7: Scripts, User-Created Functions, and S4 and Reference Class Methods Scripts The Structure of a Function How to Enter a Function into R In RStudio Using an Editor Inline Entry An Outside Editor: dget() and Copying and Pasting S4 Methods Reference Class Methods Chapter 8: How to Use a Script or Function Example of a Script: Mining Twitter Calling a Function Arguments The Output from a Function Part IV: I/O and Manipulating Objects Chapter 9: Importing and Creating Data Reading Data into RStudio and R, Including R Datasets Connections file() url() gzfile(), bzfile(), and xzfile() unz() pipe() fifo() socketConnection(), serverSocket(), and serverAccess() The Other Arguments to the Connection Functions open(), close(), isOpen(), isIncomplete(), and socketTimeout0() showConnections(), getConnections(), and closeAllConnections() stdin(), nullfile(), and isatt() make.socket(), gzcon(), and pushback() seek(), isSeekable(), and truncate() Reading Data Using RStudio The scan() Function The read.table() and Related Functions The readLines(), read.socket(), readClipboard(), and readline() Functions The dget() and source() Functions The loadhistory() Function Some Other Functions That Read Textual Data The load() and attach() Functions The readRDS() Function The readBin(), readChar(), and unserialize() Functions R Datasets and the library(), attach(), and data() Functions Probability Distributions and the Function sample() Probability Distributions The sample() Function Manually Entering Data and Generating Data with Patterns The c() Function The seq() and rep() Functions The seq() Function The rep() Function Combinatorics and Grid Expansion The paste() and paste0() Functions Chapter 10: Exporting from R Connection Functions That Write The sink() Function The cat() and write() Functions The write.table() and Related Functions The writeLines(), write.socket(), and writeClipboard() Functions The dput() and dump() Functions The savehistory() Function The save() and save.image() Functions The saveRDS() Function The writeBin(), writeChar(), and serialize() Functions Matching Importing and Exporting Functions Other Exporting Functions Chapter 11: Descriptive Functions and Manipulating Objects Descriptive Functions The dim() Function The nrow(), ncol(), NROW(), and NCOL() Functions The length() Function The nchar() and nzchar() Functions Manipulating Objects The cbind(), rbind(), cbind2(), and rbind2() Functions The Apply Functions The apply() Function The lapply(), sapply(), vapply(), and rapply() Functions The lapply() Function The sapply() Function The vapply() Function The rapply() Function The tapply() Function The mapply() Function The eapply() Function The sweep() and scale() Functions The sweep() Function The scale() Function The aggregate(), table(), tabulate(), and ftable() Functions The aggregate() Function Data Frames Formulas Time Series The table(), as.table(), and is.table() Functions The tabulate() Function The ftable() Function Some Character String Functions The grep Functions Functions to Manipulate Case in Character Strings The substr(), substring(), and strsplit() Functions Part V: Flow Control Chapter 12: Flow Control Brackets “{}” and the Semicolon “;” The “if” and “if/else” Control Statements The “while” Control Statement The “for” Control Statement The “repeat” Control Statement The Statements “break” and “next” Nesting Chapter 13: Examples of Flow Control Nested “for” Loops with an “if/else” Statement Using Indices A “while” Loop Using Indices Nested “for” Loops Using Indices A “for” Loop, “if” Statement, and “next” Statement Using Indices A “for” Loop, a “repeat” Loop, an “if” Statement, and a “break” Statement Using Indices Chapter 14: The ifelse() and switch() Functions The ifelse() Function The switch() Function Part VI: Some Common Functions, Packages, and Techniques Chapter 15: Some Common Functions The options() Function The round(), signif(), and noquote() Functions The round() Function The signif() Function The noquote() Function The format(), print(), and plot() Functions The format() Function The print() Function The plot() Function The eval(), attributes(), attr(), and summary() Functions The eval() Function The attributes() and attr() Functions The summary() Function The deriv(), numericDeriv(), and integrate() Functions The deriv() and Related Functions The numericDeriv() Function The integrate() Function The parse() and deparse() Functions The parse() Function The deparse() Function Some Functions for Models: anova(), coef(), effects(), residuals(), fitted(), vcov(), confint(), and predict() Chapter 16: The base, stats, and graphics Packages The base Package Reserved Words Built-in Constants Trigonometric and Hyperbolic Functions Exponential and Log Functions Beta- and Gamma-Related Functions Miscellaneous Mathematical Functions Complex Numbers Matrices, Arrays, and Data Frames A Few Other Functions and Some Comments The stats Package Basic Descriptive Statistics Some Functions That Do Tests Some Modeling Functions in stats Clustering Algorithms and Other Multivariate Techniques The graphics Package Chapter 17: Tricks of the Trade Value Substitution: NA, NaN, Inf, and –Inf If Statements and Logical Vectors Lists and the Functions list() and c() Paths and URLs Editing Objects Like Matrices and Data Frames A Bit More Recursive Functions Some Final Comments Index

Similar books

Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36

Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36

2010 · PDF

THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.

THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.

1858 · PDF

Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.

Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.

2022 · PDF

The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians

The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians

1809 · PDF

Professional Linux kernel architecture ''Wrox programmer to programmer''--Cover. - ''What you are reading right now is the result of an evolution over more than seven years: After two years of writing, the first edition was published in German by Carl Hanser Verlag in 2003. It then described kernel 2.6.0. The test was used as a basis for the low-level design documentation for the EAL4+ security evaluation of Red Hat Enterprise Linux 5, requiring to update it to kernel 2.6.18 (if the EAL acronym does not mean anything to you, then Wikipedia is once more your friend). Hewlett-Packard sponsored the translation into English and has, thankfully, granted the rights to publish the result. Updates to kernel 2.6.24 were then performed specifically for this book''--P. ix

Professional Linux kernel architecture ''Wrox programmer to programmer''--Cover. - ''What you are reading right now is the result of an evolution over more than seven years: After two years of writing, the first edition was published in German by Carl Hanser Verlag in 2003. It then described kernel 2.6.0. The test was used as a basis for the low-level design documentation for the EAL4+ security evaluation of Red Hat Enterprise Linux 5, requiring to update it to kernel 2.6.18 (if the EAL acronym does not mean anything to you, then Wikipedia is once more your friend). Hewlett-Packard sponsored the translation into English and has, thankfully, granted the rights to publish the result. Updates to kernel 2.6.24 were then performed specifically for this book''--P. ix

2008 · PDF