Skip to content
Prev 350788 / 398502 Next

Error importing data - wrapping?

Hi Kate,
The following:

x<-read.table(text="A B C D E
A 1232 0.565
B 2323 0.5656 0.5656 0.5656
C 2323 0.5656
D 2323 0.5656
E 2323 0.5656
F 2323 0.5656
G 2323 0.5656
G 2323 0.5656 0.5656 0.5656",header=TRUE,fill=TRUE)

works fine for me:

x
  A    B      C      D      E
1 A 1232 0.5650     NA     NA
2 B 2323 0.5656 0.5656 0.5656
3 C 2323 0.5656     NA     NA
4 D 2323 0.5656     NA     NA
5 E 2323 0.5656     NA     NA
6 F 2323 0.5656     NA     NA
7 G 2323 0.5656     NA     NA
8 G 2323 0.5656 0.5656 0.5656

I just copied your example text into a text editor and added the
"x<-read.table...". Do you really have TAB delimiters in the file you
are trying to import? If so, can you do a global replace of TAB ->
space in the incoming file?

Jim
On Sun, May 10, 2015 at 2:43 AM, William Dunlap <wdunlap at tibco.com> wrote: