Displaying 1 result from an estimated 1 matches for "manal76".
Did you mean:
manal
2013 Nov 21
0
How to extract sets of rows (not sorted) from text file in R, do some methods on these rows, save the result in another text file, then pick others set of rows and do the same
...ow(x)/2)*1))
dim(res)
#[1] 10? 8
res[1:2,] ## this is the result you showed in the excel sheet
? V2 V3 V4 V5 V6 V7 V8 V9
#1? 1? 0? 0? 0? 0? 0? 0? 0
#2? 0? 0? 0? 0? 0? 0? 0? 0
Then, you can use ?write.table() as showed previously.
A.K.
On Wednesday, November 20, 2013 7:27 PM, Manal H <manal76 at gmail.com> wrote:
Hi
First thanks a lot for answering me. sorry if I wasn't clear, English is not my first language.?I tried to use your code but it didn't give?what I want. I'm new in r, so sorry for being annoying.
I have attached a? reproducible example?
thanks and best...