[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-571697-105":53,"doc-detail-571697-en":127},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":120,"head_meta":122,"extra_data":124,"updated_unix":126},105,"en","r-reference-card-getting-help-input-and-output-data-creation-slicing-and-extracting-data","R Reference Card - Getting help, Input and output, Data creation, Slicing and extracting data","","Concise R reference covering essential help functions, searching and starting the HTML help system, and quick summaries for common objects. Provides core input and output guidance including loading data, reading tables/CSV/DELIM, fixed-width formats, saving objects, formatted printing, and file/connection usage for clipboard and standard streams. Includes data creation utilities such as sequences, replication, data.frame, list and array constructors, plus slicing and indexing patterns for vectors, lists, matrices, and data frames.",{"@graph":63,"@context":119},[64,80,102],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":11,"@type":70,"position":76},"https://docshare.wps.com/template/presentations/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/r-reference-card-getting-help-input-and-output-data-creation-slicing-and-extracting-data/571697/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":95,"encodingFormat":93,"isAccessibleForFree":96,"interactionStatistic":97},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/r-reference-card-getting-help-input-and-output-data-creation-slicing-and-extracting-data/571697.png","ImageObject",442,249,{"name":88,"@type":89},"Noah","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-22","2026-10-13",true,{"@type":98,"interactionType":99,"userInteractionCount":101},"InteractionCounter",{"@type":100},"ViewAction",6,{"@type":103,"mainEntity":104},"FAQPage",[105,111,115],{"name":106,"@type":107,"acceptedAnswer":108},"How do you search R help for a topic?","Question",{"text":109,"@type":110},"Use help.search(\"topic\") to search the help system by topic. Use apropos(\"topic\") to list object names matching a regular expression.","Answer",{"name":112,"@type":107,"acceptedAnswer":113},"What functions are used to read CSV, delimited text, and fixed-width files?",{"text":114,"@type":110},"read.csv(\"filename\", header=TRUE) reads comma-delimited files. read.delim(\"filename\", header=TRUE) reads tab-delimited files. read.fwf(file, widths, header=FALSE, sep=\"\", as.is=FALSE) reads fixed-width formatted data.",{"name":116,"@type":107,"acceptedAnswer":117},"How can you index vectors, lists, and matrices in R?",{"text":118,"@type":110},"Vectors can use x[n], x[-n], and ranges like x[1:n] or x[c(1,4,2)]. Lists use x[n], nx[[n]], and named access like x[[\"name\"]]. Matrices use x[i,j] for elements, x[i,] for a row, and x[,j] for a column.","https://schema.org",{"og:url":78,"og:type":121,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":123,"canonical":78},"index,follow",{"doc_id":125,"site_id":56},571697,1792359770,{"code":4,"msg":5,"data":128},{"doc_id":125,"user_id":129,"nickname":88,"user_avatar":130,"doc_module":9,"category_id":8,"category_name":11,"doc_title":59,"doc_description":61,"doc_content":131,"file_id":132,"file_url":133,"file_type":134,"file_size":135,"view_count":101,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":79,"language":136,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":137,"faqs":138,"seo_title":139,"seo_description":61,"update_tm":140,"read_time":73},8796095462418,"https://ap-avatar.wpscdn.com/avatar/80000253c1241d02b47?x-image-process=image/resize,m_fixed,w_180,h_180&k=1778826106357471780","R Reference Card  \nby Tom Short, EPRI PEAC, [tshort@epri-peac.com 2004-11-07](tshort@epri-peac.com 2004-11-07)  \nGranted to the public [domain. See www.Rpad.org](domain. See www.Rpad.org) for the source and latest version. Includes material from R for Beginners by Emmanuel Paradis (with permission) .  \nGetting help  \nMost R functions have online documentation. help(topic) documentation on topic?topic id.  \n[help.search](help.search) (\"topic\") search the help system  \napropos(\"topic\") the names of all objects in the search list matching the regular expression ”topic”  \nhelp.start() start the HTML version of helpstr(a) display the internal *str*ucture of an R object  \nsummary(a) gives a “summary” of a, usually a statistical summary but it is generic meaning it has different operations for different classes of a  \nls() show objects in the search path; specify pat=\"pat\" to search on a pattern  \nls.str() str() for each variable in the search path dir() show ﬁles in the current directory methods(a) shows S3 methods ofa  \nmethods(class=class(a)) lists all the methods to handle objects of class a  \nInput and output  \nload() load the datasets written with save data(x) loads speciﬁed data sets library(x) load add-on packages  \nread .table(file) reads a ﬁle in table format and creates a data frame from it; the default separator sep=\"\" is any whitespace; use header=TRUE to read the ﬁrst line as a header of column names; use [as.is=TRUE](as.is=TRUE to prevent character vectors)[ to prevent character vectors](as.is=TRUE to prevent character vectors) from being converted to factors; use comment.char=\"\" to prevent \"\\#\" from being interpreted asa comment; use skip=n to skip n lines before reading data; see the help for options on row naming, NA treatment, and others  \nread .csv(\"filename\",header=TRUE) id. but with defaults set for reading comma-delimited ﬁles  \nread .delim(\"filename\",header=TRUE) id. but with defaults set for reading tab-delimited ﬁles  \n􀁿  \nread.fwf(file,widths,header=FALSE,sep=\"\",[as.is=FALSE](as.is=FALSE) )  \nread a table offixed width formatted data into a ’data.frame’; widths  \nis an integer vector, giving the widths ofthe ﬁxed-width ﬁelds save(file, . . . ) saves the speciﬁed objects (...) in the XDR platform  \nindependent binary format save.image(file) saves all objects  \ncat( . . . , file=\"\", sep=\" \") prints the arguments after coercing to character; sep is the character separator between arguments print(a, . . . ) prints its arguments; generic, meaning it can have differ  \nent methods for different objects format(x, . . . ) format an R object for pretty printing  \nwrite .table(x,file=\"\",row .names=TRUE,col .names=TRUE, sep=\" \") prints x after converting to a data frame; ifquote is TRUE,  \ncharacter or factor columns are surrounded by quotes ( \"); sep is the ﬁeld separator; eol is the end-of-line separator; na is the string for missing values; use col.names=NA to add a blank column header to  \nget the column headers aligned correctly for spreadsheet input sink(file) output to file, until sink()  \nMost ofthe I/O functions have a file argument. This can often be a character string naming a ﬁle or a connection. file=\"\" means the standard input or output. Connections can include ﬁles, pipes, zipped ﬁles, and R variables. On windows, the ﬁle connection can also be used with description =  \n\"clipboard\". To read a table copied from Excel, use x \u003C -read.delim(\"clipboard\")  \nTo write a table to the clipboard for Excel, use  \nwrite.table(x,\"clipboard\",sep=\"nt\",col.names=NA) For database interaction, see packages RODBC, DBI, RMySQL, RPgSQL, and ROracle. See packages XML, hdf5, netCDF for reading other ﬁle formats.  \nData creation  \nc( . . . ) generic function to combine arguments with the default forming a vector; with recursive=TRUE descends through lists combining all elements into one vector  \nfrom:to generates a sequence; “:” has operator priority; 1:4 + 1 is “2,3,4,5”  \nseq(from,to) generates a sequence by= speciﬁes incremen","cbCair6KsLFqdJtv","https://ap.wps.com/l/cbCair6KsLFqdJtv","pdf",73028,"English","# Getting help\n## Help search and documentation\n## Object inspection and summarization\n# Input and output\n## Reading data (tables/CSV/DELIM/fixed-width)\n## Saving and formatting output\n## Files, connections, and clipboard\n# Data creation\n## Sequences and replication\n## data.frame, lists, arrays, and factors\n## Combining and expanding structures\n# Slicing and extracting data\n## Vector and list indexing\n## Matrix and data-frame indexing\n## Variable conversion","[{\"question\":\"How do you search R help for a topic?\",\"answer\":\"Use help.search(\\\"topic\\\") to search the help system by topic. Use apropos(\\\"topic\\\") to list object names matching a regular expression.\"},{\"question\":\"What functions are used to read CSV, delimited text, and fixed-width files?\",\"answer\":\"read.csv(\\\"filename\\\", header=TRUE) reads comma-delimited files. read.delim(\\\"filename\\\", header=TRUE) reads tab-delimited files. read.fwf(file, widths, header=FALSE, sep=\\\"\\\", as.is=FALSE) reads fixed-width formatted data.\"},{\"question\":\"How can you index vectors, lists, and matrices in R?\",\"answer\":\"Vectors can use x[n], x[-n], and ranges like x[1:n] or x[c(1,4,2)]. Lists use x[n], nx[[n]], and named access like x[[\\\"name\\\"]]. Matrices use x[i,j] for elements, x[i,] for a row, and x[,j] for a column.\"}]","R Reference Card - Getting help, Input and output, Data creation, Slicing and extracting data | PDF",1791923172]