Hello everyone,

I am currently woking with package "snowfall", it speeds up my code badly. Only problem stay annoying, I call a function within a global function as below,

fn1<-(a,…){
.
.
.
fn2<-(a,…){

if condition 1
alpha<-a[-5]
  if condition 2
   alpha<-a[-4]
.
.
.

}
}

Things like that, I've exported fn2 by calling sfExport(). However, It still return error said 'alpha is not found', I take this error as that I need to export 'alpha' to the slaves? but how can I do that, any suggestion is welcome!

Liv
On 14 Oct 2010, at 12:00, r-sig-ecology-request@r-project.org wrote:

> Send R-sig-ecology mailing list submissions to
> 	r-sig-ecology@r-project.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
> or, via email, send a message with subject or body 'help' to
> 	r-sig-ecology-request@r-project.org
> 
> You can reach the person managing the list at
> 	r-sig-ecology-owner@r-project.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of R-sig-ecology digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: Contrasts for Adonis in Vegan (Emma Stone)
>   2. se and confidence limits for predictors from a model output
>      not obtained in R (Manuel Sp?nola)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Wed, 13 Oct 2010 11:38:33 +0100
> From: Emma Stone <Emma.Stone@bristol.ac.uk>
> To: r-sig-ecology@r-project.org
> Subject: Re: [R-sig-eco] Contrasts for Adonis in Vegan
> Message-ID: <C5A32987BF9078709C47B08E@bio-mammal012.bio.bris.ac.uk>
> Content-Type: text/plain; charset=us-ascii; format=flowed
> 
> Hi guys,
> 
> Just wandered if anyone can help regards contrasts for   adonis in the 
> Vegan package.
> 
> I am running the following code for adonis
> 
> adonis(formula = resp ~ roostfact + impactfact + sppfact, data = alldata, 
> permutations = 999, method = "euclidean")
> 
> And would like to run a contrast on the impactfact which has three levels.
> 
> I have tried setting it up using the following code:
> 
> 
> contrasts(impactfact)<-cbind(c(-1,0,1),c(0,-1,1))
> contrasts(impactfact)
> 
> But I am not sure what to do next can anyone help at all?
> 
> Thanks
> 
> Emma
> 
> 
> 
> ----------------------
> Emma Stone
> Postgraduate Researcher
> Bat Ecology and Bioacoustics Lab
> & Mammal Research Unit
> School of Biological Sciences,
> University of Bristol, Woodland Road,
> Bristol, BS8 1UG
> Email: emma.stone@bristol.ac.uk
> 
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Wed, 13 Oct 2010 05:28:44 -0600
> From: Manuel Sp?nola <mspinola10@gmail.com>
> To: r-sig-ecology@r-project.org
> Subject: [R-sig-eco] se and confidence limits for predictors from a
> 	model output not obtained in R
> Message-ID: <4CB597EC.2080201@gmail.com>
> Content-Type: text/plain
> 
>  Dear list members,
> 
> Is there a way to obtain the confidence limits for a model that was not 
> generated in R to obtain a plot of the model?  I have the output from a 
> logistic model: coefficients, se and varcov matrix (all in logit).
> I am thinking in a way to use the function predict to get the se (and 
> the  confidence limits) for different predictors in the model to obtain 
> a plot for each predictor like the effect package does.
> Thank you very much in advance.
> Best,
> 
> Manuel
> 
> 
> 
> -- 
> *Manuel Spínola, Ph.D.*
> Instituto Internacional en Conservación y Manejo de Vida Silvestre
> Universidad Nacional
> Apartado 1350-3000
> Heredia
> COSTA RICA
> mspinola@una.ac.cr
> mspinola10@gmail.com
> Teléfono: (506) 2277-3598
> Fax: (506) 2237-7036
> Personal website: Lobito de río 
> <https://sites.google.com/site/lobitoderio/>
> Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/>
> 
> 	[[alternative HTML version deleted]]
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> R-sig-ecology mailing list
> R-sig-ecology@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
> 
> 
> End of R-sig-ecology Digest, Vol 31, Issue 7
> ********************************************


	[[alternative HTML version deleted]]

