读取CSV文件遇到报错
Error in read.table(file = file, header = header, sep = sep, quote = quote, :
列的数目比列的名字要多
>clinical=read.csv('survival.csv')
Error in read.table(file = file, header = header, sep = sep, quote = quote, :
列的数目比列的名字要多
解决办法1:
用rio包读取
> library(rio)
The following rio suggested packages are not installed: ‘arrow’, ‘feather’, ‘fst’, ‘hexView’, ‘pzfx’, ‘readODS’, ‘rmatio’
Use 'install_formats()' to install them
Warning message:
程辑包‘rio’是用R版本4.0.4 来建造的
> clinical=import('survival.csv')
解决办法2:
把CVS另存为下面的格式之后再读取

网友评论