简体   繁体   中英

How to read a csv file in R appropriately

I have problem reading the.csv file as below in R appropriately. Anyone knows the efficient way? You may download the csv file from the link (in the link https://gtexportal.org/home/gene/ ). You need to click on the csv to download it.

using the:

data<-read.csv('GTExPortal.csv',sep=","), read the data in one column.

Try this


library(haven)
data<-read.csv('your path',sep=",")

or

library(tidyverse)
library(readr)
data<-read_csv('your path')

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM