Better HN
topnewbestaskshowjobs
Log inSign up

sirukinx

1 karma · joined Mar 27, 2025 (1y ago) · 2 submissions

Submissions

comment 1y ago · link · parent

Fair, but I believe that this is intended for a web browser rather than a terminal.

comment 1y ago · link · parent

For everyone complaining about CSV/TSV, there's a scripting language called R.

It makes working with CSV/TSV files super simple.

It's as easy this:

# Import tidyverse after installing it with install.packages("tidyverse")

library(tidyverse)

# Import TSV

dataframe_tsv <- read_tsv("data/FileFullOfDataToBeRead.tsv")

# Import CSV

dataframe_csv <- read_csv("data/FileFullOfDataToBeRead.csv")

# Mangle your data with dplyr, regular expressions, search and replace, drop NA's, you name it.

<code to sanitize all your data>

Multiple libraries exist for R to move data around, change the names of entire columns, change values in every single row with regular expressions, drop any values that have no assigned value, it's the swiss army knife of data. There are also all sorts of things you can do with data in R, from mapping with GPS coordinates to complex scientific graphing with ggplot2 and others.

Here's an example for reading iButton temperature sensor data: https://github.com/hominidae/ibutton_tempsensors/

Notice that in the code you can do the following to skip leading lines by passing it as an argument: skip = 18

cf1h <- read_csv("data/Coldframe_01_High.csv", skip = 18)