I can't seem to access the data in my file?

github292929
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.

Sweepy Dodo

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)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324216790&siteId=291194637