Import data from a CSV-file into R - all you need to know

Поделиться
HTML-код
  • Опубликовано: 14 июл 2024
  • Importing data from a CSV-file into R can be easily achieved with a couple of lines of code.
    In this tutorial I'll show the read.csv() and read.csv2-function and its functionality to import data from .csv into an R data frame. I'll also show how to only import a certain sheet and within only a certain range of data as well as other helpful arguments like deleting whitespace, setting NA values and so forth.
    ⏰ Timestamps:
    ==============
    0:00 Introduction and difference between read.csv() and read.csv2()
    0:28 Defining a data frame and setting the source
    0:55 Additional arguments - I) header argument
    1:11 Additional arguments - II) change decimal sign
    1:22 Additional arguments - III) change seperator sign
    1:30 Additional arguments - IV) select first x rows
    1:39Additional arguments - V) skip first x rows
    1:48Additional arguments - VI) skip blank lines
    2:02 Additional arguments - VII) stringsAsFactors
    #useR #statorials
    Support channel? 🙌🏼
    ===================
    Paypal donation: www.paypal.com/paypalme/Bjoer...
    Amazon affiliate link: amzn.to/49BqP5H

Комментарии •