[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-760308-105":59,"doc-detail-760308-en":130,"doc-similar-760308":162},{"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","table-of-useful-r-commands","Table of Useful R commands","","Quick reference covering common R commands and their purposes, including help() and example() for learning, vector creation with c(), seq(), rep(), and data handling via data(), read.csv(), and read.table(). Includes functions for inspecting objects (View(), str(), names(), dim(), length(), ls(), rm()) and for data summaries like summary(), mean(), median(), var(), sd(), quantile(), and sum(). Adds graphics tools for histograms, boxplots, bar charts, mosaics, scatterplots, and lattice variants, plus statistical tests and model fitting utilities.",{"@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/table-of-useful-r-commands/760308/",{"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/table-of-useful-r-commands/760308.png","ImageObject",300,407,{"name":92,"@type":93},"Danger Angel","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-29","2026-11-28",true,{"@type":102,"interactionType":103,"userInteractionCount":8},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"Where can I get usage help for an R command?","Question",{"text":112,"@type":113},"Use help() to view documentation and example() to see usage examples for commands.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How do I create and inspect vectors in R?",{"text":117,"@type":113},"Create vectors with c(), seq(), and rep(). Inspect them using ls(), names(), str(), dim(), and length().",{"name":119,"@type":110,"acceptedAnswer":120},"Which commands help visualize data in R?",{"text":121,"@type":113},"Use hist() and histogram() for histograms, barplot()/barchart() for bars, boxplot() for boxplots, plot() or xyplot() for scatterplots, and mosaicplot() for mosaic charts.","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},760308,1795899489,{"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":8,"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":19,"preview_urls":145},962090769052,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","Table of Useful R commands  \nCommand  \nPurpose  \nhelp()  \nexample()  \nc() , scan()  \nseq()  \nrep()  \ndata()  \nView()  \nstr()  \nread.csv() , read.table() library() , require() dim()  \nlength()  \nls()  \nrm()  \nnames()  \nhist()  \nhistogram() stem()  \ntable()  \nxtabs()  \nmosaicplot() cut()  \nmean() , median()  \nby()  \nsummary()  \nvar() , sd()  \nsum()  \nquantile()  \nbarplot()  \nbarchart()  \nboxplot()  \nbwplot()  \nObtain documentation for a given R command View some examples on the use of a command Enter data manually to a vector in R  \nMake arithmetic progression vector  \nMake vector of repeated values  \nLoad (often into a data.frame) built-in dataset View dataset in a spreadsheet-type format Display internal structure of an R object Load into a data.frame an existing data 􀀌le Make available an R add-on package See dimensions (\\# of rows/cols) of data.frame Give length of a vector  \nLists memory contents  \nRemoves an item from memory  \nLists names of variables in a data.frame Command for producing a histogram  \nLattice command for producing a histogram Make a stem plot  \nList all values of a variable with frequencies Cross-tabulation tables using formulas  \nMake a mosaic plot  \nGroups values of a variable into larger bins Identify \\center\" of distribution  \napply function to a column split by factors Display 5-number summary and mean  \nFind variance, sd of values in vector  \nAdd up all values in a vector  \nFind the position of a quantile in a dataset Produces a bar graph  \nLattice command for producing bar graphs Produces a boxplot  \nLattice command for producing boxplots  \nCommand  \nPurpose  \nplot()  \nxyplot()  \nlm()  \nanova()  \npredict()  \nnls()  \nresiduals()  \nsample()  \nreplicate()  \ncumsum()  \necdf()  \ndbinom() , etc. dpois() , etc.  \npnorm() , etc.  \nqt() , etc.  \npchisq() , etc. binom.test() prop.test() chisq.test() fisher.test() t.test()  \nqqnorm() , qqline() addmargins() prop.table() par()  \npower.t.test() anova()  \nProduces a scatterplot  \nLattice command for producing a scatterplot Determine the least-squares regression line Analysis of variance (can use on results of lm()) Obtain predicted values from linear model estimate parameters of a nonlinear model  \ngives (observed-predicted) for a model 􀀌t to data take a sample from a vector of data  \nrepeat some process a set number of times produce running total of values for input vector builds empirical cumulative distribution function  \ntools for binomial distributions tools for Poisson distributions tools for normal distributions tools for student t distributions tools for chi-square distributions  \nhypothesis test and con􀀌dence interval for 1 proportion inference for 1 proportion using normal approx.  \ncarries out a chi-square test  \nFisher test for contingency table  \nstudent t test for inference on population mean tools for checking normality  \nadds marginal sums to an existing table compute proportions from a contingency table query and edit graphical settings  \npower calculations for 1-and 2-sample t compute analysis of variance table for 􀀌tted model  \nExamples of usage  \nhelp()  \nhelp(mean)  \nexample()  \nrequire(lattice) example(histogram)  \nc() , rep() seq()  \n> x = c(8, 6, 7, 5, 3, 0, 9)> x  \n[1] 8 6 7 5 3 0 9  \n> names = c(\"Owen\", \"Luke\", \"Anakin\", \"Leia\", \"Jacen\", \"Jaina\")> names  \n[1] \"Owen\" \"Luke\" \"Anakin\" \"Leia\" \"Jacen\" \"Jaina\"  \n> heartDeck = c(rep(1, 13), rep(0, 39))  \n> heartDeck  \n[1] 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [49] 0 0 0 0  \n> y = seq(7, 41, 1.5)  \n> y  \n[1] 7 .0 8 .5 10 .0 11 .5 13 .0 14 .5 16 .0 17 .5 19 .0 20 .5 22 .0 23 .5 25 .0 26 .5 28 .0 29 .5 31 .0 32 .5 34 .0  \n[20] 35 .5 37 .0 38 .5 40 .0  \ndata() , dim() , names() , View() , str()  \n> data(iris)  \n> names(iris)  \n[1] \"Sepal .Length\" \"Sepal .Width\" \"Petal .Length\" \"Petal .Width\" \"Species\"  \n> dim(iris)  \n[1] 150 5  \n> str(iris)  \n' data .frame ' : 150 obs . of 5 variables:  \n$ Sepal .Length: num 5 .1 4.9 4.7 4 .6 5 5 .4 4 .6 5 ","cbCaiu6OIbN75yCK","https://ap.wps.com/l/cbCaiu6OIbN75yCK","pdf",251699,17,"English","# Command Reference\n## Data and Object Utilities\n## Vectors and Summaries\n## Plots and Graphics\n## Statistical Tests and Models","[{\"question\":\"Where can I get usage help for an R command?\",\"answer\":\"Use help() to view documentation and example() to see usage examples for commands.\"},{\"question\":\"How do I create and inspect vectors in R?\",\"answer\":\"Create vectors with c(), seq(), and rep(). Inspect them using ls(), names(), str(), dim(), and length().\"},{\"question\":\"Which commands help visualize data in R?\",\"answer\":\"Use hist() and histogram() for histograms, barplot()/barchart() for bars, boxplot() for boxplots, plot() or xyplot() for scatterplots, and mosaicplot() for mosaic charts.\"}]","Table of Useful R commands | PDF",43,[146,150,154,158],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/10e7d5cb3ccea032363897d357f49c3f.webp",983,759,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/12c0c83ba6bee8b242afd44c6a5fd3ac.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/b8c01dd29d0bea3a86571ce101b37b10.webp",981,1269,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/3e62b1701cbfb89552834c63058ee353.webp",980,1268,{"list":163,"token":66},[164,170,176,182,188,194,200,206,212,218],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":34,"category_name":30,"create_tm":169},719798,"An Introduction to UNIX - Michaelmas 2006 - Basic UNIX","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023662331/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111579&Signature=XzwiZpfKYFxmLaIN23yKfGH7J9U%3D","an-introduction-to-unix-michaelmas-2006-basic-unix",1795032115,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":19,"category_name":30,"create_tm":175},687562,"BASIC LINUX TERMINAL COMMANDS - Quick Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001262448/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111579&Signature=Kr88P36Ziq9%2Fr33kDkK74EFNDIc%3D","basic-linux-terminal-commands-quick-introduction",1794084146,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":81,"category_name":30,"create_tm":181},687680,"Campus Network Design and Security Workshop - A few Linux basics - Ubuntu Linux 14.04 LTS 32-bit","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000649992/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111579&Signature=tZN2krWKUx%2B28jNtUF87erK2kTY%3D","campus-network-design-and-security-workshop-a-few-linux-basics-ubuntu-linux-1404-lts-32-bit",1794084504,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":29,"category_name":30,"create_tm":187},689839,"TTL Data Book 1992 - Motorola - FAST/LS TTL Selection, Circuit Characteristics, Design Considerations","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001412769/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111579&Signature=JTiQ4MdxXgEY3QNgt%2FS1JpY86Tw%3D","ttl-data-book-1992-motorola-fastls-ttl-selection-circuit-characteristics-design-considerations",1794128402,{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":81,"category_name":30,"create_tm":193},700044,"TTL Databook - Fifth Edition - First Printing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011560506/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111579&Signature=P%2BYQjI4OuSUaLhjXgd%2FAFwpyseo%3D","ttl-databook-fifth-edition-first-printing",1794515357,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":44,"category_name":30,"create_tm":199},656104,"DiagramFlyer - A Search Engine for Data-Driven Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975300602/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111579&Signature=4beabmg72V1o9ZztbWtRLPHEVMg%3D","diagramflyer-a-search-engine-for-data-driven-diagrams",1792966438,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":81,"category_name":30,"create_tm":205},703131,"Discriminant Analysis of Principal Components (DAPC) using adegenet 2.0.0 - Tutorial","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230013405655/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111579&Signature=YIlCefMMjXd8zmJ9rg7WEb6dsRQ%3D","discriminant-analysis-of-principal-components-dapc-using-adegenet-200-tutorial",1794561111,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":44,"category_name":30,"create_tm":211},651637,"FOR GARDNER DENVER ROTARY SCREW COMPRESSORS - START UP PROCEDURES","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229973500136/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111579&Signature=fAEvm6ZXWuJmvLwdOE3dT%2FUgQLc%3D","for-gardner-denver-rotary-screw-compressors-start-up-procedures",1792875692,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":19,"category_name":30,"create_tm":217},565655,"G-LiHT User Guide - Version 2 - Updated Dataset Releases","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229948392019/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111579&Signature=Gcz%2BX8PY9g3sVVJz07q2pGjpYuA%3D","g-liht-user-guide-version-2-updated-dataset-releases",1791856883,{"doc_id":219,"doc_title":220,"file_type":137,"home_preview_img_url":221,"slug":222,"view_count":223,"category_name":30,"create_tm":224},315162,"General Mathematics UDF Guide - Version 1.5","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229907388238/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111579&Signature=Bzc9sI7agSoGhFOCVRKziN%2BtsLQ%3D","general-mathematics-udf-guide-version-15",28,1789903563]