Go to TogaWare.com Home Page. Data Science Desktop Survival Guide
by Graham Williams
Duck Duck Go


TSV Data

20200928 A common interchange format for sharing data across different applications is the Tab Separated Value (tsv) file format. Reading tsv files is straight forward using readr::read_tsv().

library(readr)        # Modern and efficient data reader/writer.
library(stringi)      # String concat operator: %s+%.

dsname <- "abc"
dspath <- dsname %s+% ".tsv"
abc    <- read_csv(dspath)
ds     <- get(dsname)

Writing a dataset to a csv file is straightforward using readr::write_csv():

library(rattle)       # Dataset: weatherAUS.
library(dplyr)        # Wrangling: select().
library(readr)        # Modern and efficient data reader/writer.

dsname <- "weatherAUS"
ds     <- get(dsname)

fname  <- "australian_temperatures.tsv"

ds %>%
  select(Date, Location, MinTemp, MaxTemp, Temp9am, Temp3pm) %>%

Support further development by purchasing the PDF version of the book.
Other online resources include the GNU/Linux Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 2000-2020 Togaware Pty Ltd. . Creative Commons ShareAlike V4.