0
library(tidyverse)
y <- read_tsv("assignment_data.tsv")
x <- 1

When I check R console I get the following:

> y <- read_tsv("assignment_data.tsv", header=TRUE)
Error in read_tsv("assignment_data.tsv", header = TRUE) : 
  unused argument (header = TRUE)
> 
> x <- 1
> 

However, I can only access x in the global environment and I can't visualize the data in the file I tried to import.

Ben Bolker
  • 211,554
  • 25
  • 370
  • 453
github292929
  • 185
  • 7

1 Answers1

1

Regarding your error:

Error in read_tsv("assignment_data.tsv", header = TRUE) : 
  unused argument (header = TRUE)

If you use

?read_tsv

you will find header is not one of the arguments. Instead, you are looking for col_names

Edit: We found out the problem laid within the tsv itself. The number of column names did not match the number of columns (implied by data)

Sweepy Dodo
  • 1,761
  • 9
  • 15