Re: [R] Subset data

2012-08-02 Thread arun kirshna [via R]
-tp4638928p4638939.html This email was sent by arun kirshna (via Nabble) To receive all replies by email, subscribe to this discussion: http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=subscribe_by_code&node=4638928&code=ci1oZWxwQHItcHJvamVjdC5vcmd8NDYzODkyOHwtNzg0

Re: [R] apply function over same column of all objects in a list

2012-08-02 Thread arun kirshna [via R]
Thanks Elk, That was the missing link. #or lapply(list6,function(x)max(x$target)) [[1]] [1] 6 [[2]] [1] 18 [[3]] [1] 9 max(unlist(lapply(list6,function(x) max(x$target A.K. ___ If you reply to this email, your message will be added to the disc

Re: [R] apply function over same column of all objects in a list

2012-08-02 Thread arun kirshna [via R]
lue<-as.numeric(as.character(value))}) max(b6$value) #[1] 18 A.K. __ If you reply to this email, your message will be added to the discussion below: http://r.789695.n4.nabble.com/apply-function-over-same-column-of-all-objects-in-a-list-tp4638681p4638926.

Re: [R] apply function over same column of all objects in a list

2012-08-02 Thread arun kirshna [via R]
lists. A.K. __ If you reply to this email, your message will be added to the discussion below: http://r.789695.n4.nabble.com/apply-function-over-same-column-of-all-objects-in-a-list-tp4638681p4638907.html This email was sent by arun kirshna (via Nabble) To r

Re: [R] apply function over same column of all objects in a list

2012-08-02 Thread arun kirshna [via R]
Hi Elk, Thanks for the input. Somehow, I got entangled with which.max. I should have used max. lapply(list4,function(x) max(x[[1]]$coconut)) [[1]] [1] 6 [[2]] [1] 18 [[3]] [1] 9 max(unlist(lapply(list4,function(x) max(x[[1]]$coconut #[1] 18 A.K.

Re: [R] apply function over same column of all objects in a list

2012-08-02 Thread arun kirshna [via R]
If you reply to this email, your message will be added to the discussion below: http://r.789695.n4.nabble.com/apply-function-over-same-column-of-all-objects-in-a-list-tp4638681p4638886.html This email was sent by arun kirshna (via Nabble) To receive all replies by email, subscribe to thi

Re: [R] apply function over same column of all objects in a list

2012-08-02 Thread arun kirshna [via R]
the discussion below: http://r.789695.n4.nabble.com/apply-function-over-same-column-of-all-objects-in-a-list-tp4638681p4638873.html This email was sent by arun kirshna (via Nabble) To receive all replies by email, subscribe to this discussion: http://r.789695.n4.nabble.com/template/NamlServlet.jt

Re: [R] apply function over same column of all objects in a list

2012-08-02 Thread arun kirshna [via R]
tp://r.789695.n4.nabble.com/apply-function-over-same-column-of-all-objects-in-a-list-tp4638681p4638870.html This email was sent by arun kirshna (via Nabble) To receive all replies by email, subscribe to this discussion: http://r.789695.n4.nabble.com/templat

Re: [R] sub setting a data frame with binomial responses

2012-08-02 Thread arun kirshna [via R]
ydata[,c(TRUE,idx)] n x1 1 5 2 2 5 3 3 5 1 4 5 3 A.K. __ If you reply to this email, your message will be added to the discussion below: http://r.789695.n4.nabble.com/sub-setting-a-data-frame-with-binomial-responses-tp4638702p4638833.html This email was se

Re: [R] apply function over same column of all objects in a list

2012-08-01 Thread arun kirshna [via R]
ur message will be added to the discussion below: http://r.789695.n4.nabble.com/apply-function-over-same-column-of-all-objects-in-a-list-tp4638681p4638829.html This email was sent by arun kirshna (via Nabble) To receive all replies by email, subscribe to this discussion: http://r.789695.n4.nabble.com

Re: [R] sapply and matrix command

2012-08-01 Thread arun kirshna [via R]
y to this email, your message will be added to the discussion below: http://r.789695.n4.nabble.com/sapply-and-matrix-command-tp4637769p4638821.html This email was sent by arun kirshna (via Nabble) To receive all replies by email, subscribe to this discussion: http://r.789695.n4.nabble.com

[R] state space model for poisson distribution

2008-03-10 Thread arun kirshna
Hi Rers, I have a poission time series model with 5 parameters. I just wanted to remove two of the lag on response in the model and put it as a system model. I am not sure about the codes to combine these two on R. If anybody has any R example (code), please post it. My original model: