search for: zjoanna2013

Displaying 3 results from an estimated 3 matches for "zjoanna2013".

2013 Mar 29
3
if clause in data frame
...final1) #? m1 n1 x1 y1 flag #1? 4? 4? 0? 0??? 0 #2? 4? 4? 0? 1??? 0 #3? 4? 4? 0? 2??? 0 #4? 4? 4? 0? 3??? 0 #5? 4? 4? 0? 4??? 0 #6? 4? 4? 1? 0??? 1 Also, just by looking at your code, you have "flag" and "flap". A.K. ________________________________ From: Joanna Zhang <zjoanna2013 at gmail.com> To: arun <smartpink111 at yahoo.com> Sent: Friday, March 29, 2013 10:56 AM Subject: if clause in data frame Why the if clause code not working here? final<-data.frame() ? ?for (m1 in 4:10) { ? ? ? ?for (n1 in 4:10){ ? ? ? ? ? ? ?for (x1 in 0: m1) { ? ? ? ? ? ? ? for (...
2013 Mar 10
0
max row
...<- 0.10 c2<- 0.10 One possible problem is that: dim(res5) #[1] 513? 20 res6<-aggregate(.~m1+n1+m+n,data=res5[,c(1:6,9:12,21:24)] ,max) #Error in `[.data.frame`(res5, , c(1:6, 9:12, 21:24)) : ?# undefined columns selected A.K. ________________________________ From: Joanna Zhang <zjoanna2013 at gmail.com> To: arun <smartpink111 at yahoo.com> Sent: Saturday, March 9, 2013 10:38 PM Subject: Re: max row I think something is wrong with EN, it should not be integer. Let me check. On Sat, Mar 9, 2013 at 9:36 PM, arun <smartpink111 at yahoo.com> wrote: In the example set...
2013 Feb 01
29
cumulative sum by group and under some criteria
Thank you very much for your reply. Your code work well with this example. I modified a little to fit my real data, I got an error massage. Error in split.default(x = seq_len(nrow(x)), f = f, drop = drop, ...) : Group length is 0 but data length > 0 On Thu, Jan 31, 2013 at 12:21 PM, arun kirshna [via R] < ml-node+s789695n4657196h87@n4.nabble.com> wrote: > Hi, > Try this: >