R Language Data Analysis Prophase: preprocessing process, for their own inspection, welcome to correct.
Import data using the R language :
Taobao<-read.csv ("Taobao.csv", stringsasfactors = F)
I most commonly used to be read.csv, of which stringsasfactors=f is very important, indispensable, otherwise it will greatly reduce the reading efficiency.
In addition to read.table, they have different separators.
Read.table (file (read in data name, not the default path to add a working path, note the use of double quotation marks),
Header = FALSE (if the first row is the header of each column),
Sep = "" (What is the separator, table default "Empty", csv Default ","),
Row.names (row name), col.names (column name),
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)
After importing, the data is viewed as a window:
View (Taobao)
Make a basic statistic of the imported table:
Summary (Taobao)
R Language Data analysis process