Re: [R] Calling R object from R function

2012-11-17 Thread R. Michael Weylandt
If I understand your goal (still fuzzy) -- why don't you factor out the bits you want to calculate repeatedly into their own little utility function? That's just basic stuctured programming. On Thu, Nov 8, 2012 at 5:25 PM, frespider wrote: > Hi, > > I edit my post, Can you please help with this m

Re: [R] Calling R object from R function

2012-11-08 Thread frespider
Hi, I edit my post, Can you please help with this matter? Hi, Can you please help me with this please? What I am trying to do is call a vector from R function and used in the new function # Initialize some data Dat <- cbind( a0 = rep(1, 40), a = rep(0:1, 20), b = rep(c(1,0), each =

Re: [R] Calling R object from R function

2012-11-08 Thread R. Michael Weylandt
.com >> Date: Thu, 8 Nov 2012 16:46:14 + >> Subject: Re: [R] Calling R object from R function >> To: frespi...@hotmail.com; r-help@r-project.org >> >> On Thu, Nov 8, 2012 at 2:44 PM, Fares Said wrote: >> > Hi Michael, >> > >> >

Re: [R] Calling R object from R function

2012-11-08 Thread Fares Said
Re: [R] Calling R object from R function > To: frespi...@hotmail.com; r-help@r-project.org > > On Thu, Nov 8, 2012 at 2:44 PM, Fares Said wrote: > > Hi Michael, > > > > you mentioned I can get help, can you give more details please. > > Hi Fares, > > I al

Re: [R] Calling R object from R function

2012-11-08 Thread R. Michael Weylandt
On Thu, Nov 8, 2012 at 2:44 PM, Fares Said wrote: > Hi Michael, > > you mentioned I can get help, can you give more details please. Hi Fares, I also asked that you keep our correspondance on the mailing list. Please do so. If you want private help, you can seek a local statistical consultancy, b

Re: [R] Calling R object from R function

2012-11-07 Thread R. Michael Weylandt
o > the resampling. I only need these index and nothing else from that M11 > function nothing else. > > Can you help please? > >> From: michael.weyla...@gmail.com >> Date: Wed, 7 Nov 2012 18:28:38 +0000 >> Subject: Re: [R] Calling R object from R function >&

Re: [R] Calling R object from R function

2012-11-07 Thread R. Michael Weylandt
On Wed, Nov 7, 2012 at 3:31 PM, frespider wrote: > Hi, > > Can you please help me with this please? > > What I am trying to do is call a vector from R function and used in the new > function > > So I create 4 functions with these arguments > M11 <- function(TrainData,TestData,mdat,nsam) { > ls <-

[R] Calling R object from R function

2012-11-07 Thread frespider
Hi, Can you please help me with this please? What I am trying to do is call a vector from R function and used in the new function So I create 4 functions with these arguments M11 <- function(TrainData,TestData,mdat,nsam) { ls <- list() I have few statments one of them is vectx <- c(,1,2,3,4,5,