Hub
Pricing About
WorkflowWorkflow

Force R’s readr to import all columns of a messy CSV file as strings - allow changing table structures

CsvImportForceStringStrings
+4
mlauber71 profile image
Draft Latest edits on 
Feb 24, 2024 5:40 PM
Drag & drop
Like
Download workflow
Workflow preview
Force R’s readr to import all columns of a messy CSV file as strings - allow changing table structures ——— library(readr) file_location <- knime.flow.in[["File path"]] knime.out <- as.data.frame(read_delim(file=file_location, delim=",", col_names = TRUE, col_types = cols(.default = "c")))

External resources

  • KNIME and R — installation across operating systems — some remarks
  • forum entry
  • Read A Delimited File (Including Csv & Tsv) Into A Tibble
  • col_types = "c" with readr
  • Force all Strings on CSV
Loading deploymentsLoading ad hoc jobs

Used extensions & nodes

Created with KNIME Analytics Platform version 4.7.8
  • Go to item
    KNIME Base nodesTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.7.8

    knime
  • Go to item
    KNIME Basic File System ConnectorsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.7.7

    knime
  • Go to item
    KNIME Interactive R Statistics IntegrationTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.7.0

    knime

Legal

By using or downloading the workflow, you agree to our terms and conditions.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits