R Language Data analysis process

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.