In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article editor for you a detailed introduction of "how to view read.table parameters", the content is detailed, the steps are clear, the details are handled properly, I hope this "how to view read.table parameters" article can help you solve your doubts, following the editor's ideas slowly in depth, let's learn new knowledge.
View read.table parameters
Read.table () parameter
If you need to know more about the definition, you can enter? read.table in R
Read.table (file, header = FALSE, sep = ", quote ="\ "'", dec = ".", numerals = c ("allow.loss", "warn.loss", "no.loss"), row.names, col.names, as.is =! stringsAsFactors, na.strings = "NA", colClasses = NA, nrows =-1, skip = 0, check.names = TRUE, fill =! blank.lines.skip Strip.white = FALSE, blank.lines.skip = TRUE, comment.char = "#", allowEscapes = FALSE, flush = FALSE, stringsAsFactors = default.stringsAsFactors (), fileEncoding = "", encoding = "unknown", text, skipNul = FALSE)
The header first line question, a logical value, reflects whether the first line of the file contains the variable name.
Sep delimiter problem, field separator in the file, if read tab delimited file using "\ t"
A quote reference that specifies the characters used to surround character-type data
A character used by dec to indicate the decimal point
Row.names holds the sequence number or name of a variable in the live vector file of the line name. The default line number is 1 ~ 2 ~ 3,.
Col.names specifies the character type vector of the column name. By default, it is V1menV2recoverV3, …
Whether an as.is character variable is converted to a factor variable (for example, the result value is FALSE), TRUE retains it as a character. As.is can be a logical, numerical or character vector to determine whether a variable is retained as a character.
The missing value of na.strings, which is represented by NA by default.
ColClasses specifies a character vector for each column data type
The maximum number of rows that can be read by nrows.-1 means all are read.
Skip skip=n means to skip the first n lines of the file
If check.names is TRUE, check whether the variable name is valid in R
If fill is TRUE and the number of variables in all rows is the same, fill in the blanks
Strip.white removes extra spaces before and after character variables if TRUE is specified by sep
If blank.lines.skip is TRUE, ignore blank lines
Comment.char comments. The default # in R language is comment content. When a character is used to write comments in the data file, lines starting with this will be ignored (to disable this parameter, you can use comment.char= "")
Read here, this "how to view read.table parameters" article has been introduced, want to master the knowledge of this article also need to practice and use to understand, if you want to know more about the article, welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.