hi,
I have a bed file like below
FLP1 252 1523
RAF1 3271 3816
REP1 1887 3008
REP2 5308 6198
I was reading the file in R
bed <- as.data.frame(read.table("file.bed",header = FALSE, sep="\t",stringsAsFactors=FALSE))
Warning messages:
1: In scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, :
EOF within quoted string
2: In scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, :
number of items read is not a multiple of the number of columns
but when I read file as csv no error anymore
how I can read this file as table please?
thank you
Actually,
as.data.frame()
is not needed:read.table()
will already return a data frame.thank you very much
thank you so much
my file was read by your comment