Displaying 1 result from an estimated 1 matches for "mm_0206".
Did you mean:
m000206
2007 May 21
0
A "subscript out of bonds" and "write.table" problem on manipulating a large size dataset
...f
fields not euqal to 23
del <- del-1; # count cf contains the fields of header, -1 give the
row I want to remove
data.mm <- data.mm[-del,]; # try to remove the rows with fields number
unequal to 23
### PROBLEM: R says "subscripts out of bonds"
write.table(data.mm,file="mm_0206.txt",
eol="\n",sep="\t",
quote=F,row.names=F); # since data.mm <- data.mm[-del,] aborted,
write the original data as mm_0206.txt
### PROBLEM:then following code should have the same output
table(cf); # maximal fields number is 23
table( count.fields...