[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-699669-105":59,"doc-detail-699669-en":130,"doc-similar-699669":186},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","an-introduction-to-r-version-2-programming-environment-for-data-analysis-and-graphics","An Introduction to R - Version 2 - Programming Environment for Data Analysis and Graphics","","An Introduction to R presents R as a programming environment for data analysis and graphics, covering core concepts from the interactive session to fundamental data structures. It explains the R environment, related software and documentation, help and command usage, and how to execute or redirect commands. It then develops practical foundations including vectors, numbers, logical and character vectors, missing values, indexing, object modes and attributes, factors, arrays, matrices, lists, and data frames.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/an-introduction-to-r-version-2-programming-environment-for-data-analysis-and-graphics/699669/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/an-introduction-to-r-version-2-programming-environment-for-data-analysis-and-graphics/699669.png","ImageObject",300,407,{"name":92,"@type":93},"WPS_1790064749","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-16","2026-11-12",true,{"@type":102,"interactionType":103,"userInteractionCount":29},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What does the book cover about using R interactively?","Question",{"text":112,"@type":113},"It covers using R interactively, getting help with functions and features, executing commands, and working with case sensitivity, as well as recalling and correcting previous commands.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"Which basic data types and operations are introduced early?",{"text":117,"@type":113},"Early chapters introduce vectors and assignment, vector arithmetic, regular sequences, logical and character vectors, missing values, index vectors for subsetting, and other object types.",{"name":119,"@type":110,"acceptedAnswer":120},"How does the book treat structured data like arrays, matrices, lists, and data frames?",{"text":121,"@type":113},"It explains arrays and indexing, matrix facilities including multiplication and linear equations, then moves to lists and data frames, including constructing, modifying, and working with them.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},699669,1794486678,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":29,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":52,"preview_urls":145},3985747859154,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","An Introduction to R  \nNotes on R: A Programming Environment for Data Analysis and Graphics Version 2.4.0 (2006-10-03)  \nW . N . Venables, D . M . Smith  \nand the R Development Core Team  \nCopyright 􀀍c 1990 W. N. Venables  \nCopyright 􀀍c 1992 W. N. Venables & D. M. Smith Copyright 􀀍c 1997 R. Gentleman & R. Ihaka Copyright 􀀍c 1997, 1998 M. Maechler  \nCopyright 􀀍c 1999{2006 R Development Core Team  \nPermission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.  \nPermission is granted to copy and distribute modi􀀌ed versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.  \nPermission is granted to copy and distribute translations of this manual into another language, under the above conditions for modi􀀌ed versions, except that this permission notice may be stated in a translation approved by the R Development Core Team.  \nISBN 3-900051-12-7  \ni  \nTable of Contents  \nPreface ................................................... 1  \n1 Introduction and preliminaries .......................... 2  \n1.1 The R environment ............................................................ 2  \n1.2 Related software and documentation ............................................ 2  \n1.3 R and statistics ............................................................... 2  \n1.4 R and the window system ...................................................... 3  \n1.5 Using R interactively .......................................................... 3  \n1.6 An introductory session ........................................................ 4  \n1.7 Getting help with functions and features ........................................ 4  \n1.8 R commands, case sensitivity, etc............................................... 4  \n1.9 Recall and correction of previous commands ..................................... 5  \n1.10 Executing commands from or diverting output to a 􀀌le .......................... 5  \n1.11 Data permanency and removing objects ........................................ 5  \n2 Simple manipulations; numbers and vectors .............. 7  \n2.1 Vectors and assignment ........................................................ 7  \n2.2 Vector arithmetic .............................................................. 7  \n2.3 Generating regular sequences ................................................... 8  \n2.4 Logical vectors ................................................................ 9  \n2.5 Missing values ................................................................. 9  \n2.6 Character vectors ............................................................ 10  \n2.7 Index vectors; selecting and modifying subsets of a data set ...................... 10  \n2.8 Other types of objects ........................................................ 11  \n3 Objects, their modes and attributes .................... 13  \n3.1 Intrinsic attributes: mode and length .......................................... 13  \n3.2 Changing the length of an object .............................................. 14  \n3.3 Getting and setting attributes ................................................. 14  \n3.4 The class of an object ........................................................ 14  \n4 Ordered and unordered factors ......................... 16  \n4.1 A speci􀀌c example ............................................................ 16  \n4.2 The function tapply() and ragged arrays ...................................... 16  \n4.3 Ordered factors .............................................................. 17  \n5 Arrays and matrices ................................... 18  \n5.1 Arrays ....................................................................... 18  \n5.2 Array indexing. Subsections of an array ........................................ 18  \n5.3 Index matrices ...","cbCaid5iUVziQGwX","https://ap.wps.com/l/cbCaid5iUVziQGwX","pdf",669784,99,"English","# Preface\n# 1 Introduction and preliminaries\n## 1.1 The R environment\n## 1.2 Related software and documentation\n## 1.3 R and statistics\n## 1.4 R and the window system\n## 1.5 Using R interactively\n## 1.6 An introductory session\n## 1.7 Getting help with functions and features\n## 1.8 R commands, case sensitivity, etc\n## 1.9 Recall and correction of previous commands\n## 1.10 Executing commands from or diverting output to a file\n## 1.11 Data permanency and removing objects\n# 2 Simple manipulations; numbers and vectors\n## 2.1 Vectors and assignment\n## 2.2 Vector arithmetic\n## 2.3 Generating regular sequences\n## 2.4 Logical vectors\n## 2.5 Missing values\n## 2.6 Character vectors\n## 2.7 Index vectors; selecting and modifying subsets of a data set\n## 2.8 Other types of objects\n# 3 Objects, their modes and attributes\n## 3.1 Intrinsic attributes: mode and length\n## 3.2 Changing the length of an object\n## 3.3 Getting and setting attributes\n## 3.4 The class of an object\n# 4 Ordered and unordered factors\n## 4.1 A specific example\n## 4.2 The function tapply() and ragged arrays\n## 4.3 Ordered factors\n# 5 Arrays and matrices\n## 5.1 Arrays\n## 5.2 Array indexing. Subsections of an array\n## 5.3 Index matrices\n## 5.4 The array() function\n## 5.4.1 Mixed vector and array arithmetic. The recycling rule\n## 5.5 The outer product of two arrays\n## 5.6 Generalized transpose of an array\n## 5.7 Matrix facilities\n## 5.8 Forming partitioned matrices, cbind() and rbind()\n## 5.9 The concatenation function, c(), with arrays\n## 5.10 Frequency tables from factors\n# 6 Lists and data frames\n## 6.1 Lists\n## 6.2 Constructing and modifying lists\n## 6.2.1 Concatenating lists\n## 6.3 Data frames\n## 6.3.1 Making data frames\n## 6.3.2 attach() and detach()\n## 6.3.3 Working with data frames\n## 6.3.4 Attaching arbitrary lists\n## 6.3.5 Managing the search path","[{\"question\":\"What does the book cover about using R interactively?\",\"answer\":\"It covers using R interactively, getting help with functions and features, executing commands, and working with case sensitivity, as well as recalling and correcting previous commands.\"},{\"question\":\"Which basic data types and operations are introduced early?\",\"answer\":\"Early chapters introduce vectors and assignment, vector arithmetic, regular sequences, logical and character vectors, missing values, index vectors for subsetting, and other object types.\"},{\"question\":\"How does the book treat structured data like arrays, matrices, lists, and data frames?\",\"answer\":\"It explains arrays and indexing, matrix facilities including multiplication and linear equations, then moves to lists and data frames, including constructing, modifying, and working with them.\"}]","An Introduction to R - Version 2 - Programming Environment for Data Analysis and Graphics | PDF",249,[146,150,154,158,162,166,170,174,178,182],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/ef9bdd53832f5b37be6e54f649bc07ab.webp",983,1390,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/d336e1c2d60f4dfbf4a07a578b9d6c79.webp",982,1388,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/39652dabb3ff8104336cb002570dd56a.webp",981,1387,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/c38ec73c94b594c7d7ff80e6327a7e5d.webp",980,1385,{"page_no":24,"url":163,"width":164,"height":165},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/aba6bb506760b76336a333512060db7e.webp",979,1384,{"page_no":29,"url":167,"width":168,"height":169},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/bac6cf1c381b7f13e9eaf76855dcb562.webp",978,1383,{"page_no":34,"url":171,"width":172,"height":173},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/710b768970fdf20845277c5be0658e4f.webp",977,1381,{"page_no":39,"url":175,"width":176,"height":177},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/ef605b53d2cd676eaed029c62c1f9a9a.webp",976,1380,{"page_no":44,"url":179,"width":180,"height":181},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/2a6d132942151578f7b66c1f88f67306.webp",975,1378,{"page_no":52,"url":183,"width":184,"height":185},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/ed5035b7c03fcba66566403b5dc48f69.webp",974,1377,{"list":187,"token":66},[188,194,201,207,213,219,226,232,238,244],{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":44,"category_name":30,"create_tm":193},640107,"An Introduction to R - Notes on R - A Programming Environment for Data Analysis and Graphics Version 4.6.1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229970392903/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110499&Signature=ueHVExZADy%2FheRrpLpw1%2Fp0MtRc%3D","an-introduction-to-r-notes-on-r-a-programming-environment-for-data-analysis-and-graphics-version-461",1792707843,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":199,"category_name":30,"create_tm":200},512061,"Tesira Text Protocol Version 3.5 - Command Syntax and Error Handling","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229935929473/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110499&Signature=Gyf3EIrVBcWgMYzQZYflS5%2FyG%2FU%3D","tesira-text-protocol-version-35-command-syntax-and-error-handling",12,1791264419,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":81,"category_name":30,"create_tm":206},685787,"Arrays - Java Arrays vs Python Lists - Learn how to declare and use arrays in Java","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000208980/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110499&Signature=jx968ZewXq7%2FwTss%2BYkaJuH9YS0%3D","arrays-java-arrays-vs-python-lists-learn-how-to-declare-and-use-arrays-in-java",1794018478,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":52,"category_name":30,"create_tm":212},493545,"Key Vocabulary Map for Computing - Unit Vocabulary","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229928445132/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110499&Signature=Zbnzi4BgFtkbF0cHIPIIO066KEU%3D","key-vocabulary-map-for-computing-unit-vocabulary",1790883793,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":24,"category_name":30,"create_tm":218},688043,"RLT Keyboard Shortcuts - command list","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001266540/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110499&Signature=cXu0fOQ9we4Yila8JmlgQF6xp%2BA%3D","rlt-keyboard-shortcuts-command-list",1794085817,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":224,"category_name":30,"create_tm":225},290697,"The Book of R - A first course in programming and statistics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229903066227/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110499&Signature=m6Zy7gAy4woVupzUrBjbNSWbMjw%3D","the-book-of-r-a-first-course-in-programming-and-statistics",18,1789642382,{"doc_id":227,"doc_title":228,"file_type":137,"home_preview_img_url":229,"slug":230,"view_count":19,"category_name":30,"create_tm":231},688530,"The Ultimate Windows Run Commands List - Tricks","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000659130/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110499&Signature=wAl36Bgb9DPHqON%2BFkrvA4gZ3w0%3D","the-ultimate-windows-run-commands-list-tricks",1794089527,{"doc_id":233,"doc_title":234,"file_type":137,"home_preview_img_url":235,"slug":236,"view_count":52,"category_name":30,"create_tm":237},688015,"AutoCad 2004 Keyboard Shortcuts","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001266325/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110499&Signature=5X%2Fcn35omMIg3qmEMiAuMB09xQs%3D","autocad-2004-keyboard-shortcuts",1794085758,{"doc_id":239,"doc_title":240,"file_type":137,"home_preview_img_url":241,"slug":242,"view_count":19,"category_name":30,"create_tm":243},697965,"Arrays Made Easy - An Introduction to Arrays and Array Processing - SUGI 30 Tutorials","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010146275/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110499&Signature=TXod%2FXVJkzQAS2yuNR0NfYa0gNc%3D","arrays-made-easy-an-introduction-to-arrays-and-array-processing-sugi-30-tutorials",1794446535,{"doc_id":245,"doc_title":246,"file_type":137,"home_preview_img_url":247,"slug":248,"view_count":24,"category_name":30,"create_tm":249},685756,"UNIT- I - Introduction to Data Structures and Linear Data Structures","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000192540/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110499&Signature=XZoXP5YKuECynrel%2FIUKnaMU2iQ%3D","unit-i-introduction-to-data-structures-and-linear-data-structures",1794017620]