Skip to main content
Top

6. Importing Data

  • 2024
  • OriginalPaper
  • Chapter
Published in:

Activate our intelligent search to find suitable subject content or patents.

search-config
loading …

Abstract

Various methods are illustrated for importing data from local or internet text and .csv files, for situations when the data is unavailable in an R package. The base R functions read.table() and read.csv() as well as tidyverse package readr functions for importing data are illustrated by examples. Some data preprocessing tasks are described such as recoding data and identifying missing data. The chapter describes different methods for reshaping data from wide to long format using stack(), reshape(), melt() (reshape2 package) and pivot_longer() (tidyr package).

Not a customer yet? Then find out more about our access models now:

Individual Access

Start your personal individual access now. Get instant access to more than 164,000 books and 540 journals – including PDF downloads and new releases.

Starting from 54,00 € per month!    

Get access

Access for Businesses

Utilise Springer Professional in your company and provide your employees with sound specialist knowledge. Request information about corporate access now.

Find out how Springer Professional can uplift your work!

Contact us now
Title
Importing Data
Authors
Jim Albert
Maria Rizzo
Copyright Year
2024
DOI
https://doi.org/10.1007/978-3-031-76074-7_6
This content is only visible if you are logged in and have the appropriate permissions.
This content is only visible if you are logged in and have the appropriate permissions.

Premium Partner

    Image Credits
    Neuer Inhalt/© ITandMEDIA, Nagarro GmbH/© Nagarro GmbH, AvePoint Deutschland GmbH/© AvePoint Deutschland GmbH, AFB Gemeinnützige GmbH/© AFB Gemeinnützige GmbH, USU GmbH/© USU GmbH, Ferrari electronic AG/© Ferrari electronic AG