search for: env2

Displaying 17 results from an estimated 17 matches for "env2".

Did you mean: env
2015 Sep 29
3
making object.size() more meaningful on environments?
Hi, Currently object.size() is not very useful on environments as it always returns 56 bytes, no matter how big the environment is: env1 <- new.env() object.size(env1) # 56 bytes env2 <- new.env(hash=TRUE, size=75000000L) object.size(env2) # 56 bytes env3 <- list2env(list(a=runif(25000000), L=LETTERS)) object.size(env3) # 56 bytes This makes it pretty useless on reference class instances and other objects that use environments internally for caching or other p...
2007 Sep 18
1
Re-attaching a package environment drops the attributes
...anging/attaching package environments. # Example - Regular environments env <- new.env() attr(env, "foo") <- "bar" print(env) ## <environment: 0x023f3128> ## attr(,"foo") ## [1] "bar" attach(env, pos=2, name="foo", warn.conflicts=FALSE) env2 <- as.environment("foo") print(env2) ## <environment: 0x023f44c4> ## attr(,"name") ## [1] "foo" # Example - Package environments env <- as.environment("package:utils") attr(env, "foo") <- "bar" print(env) ## <environment...
2009 May 08
2
partial mantel tests "Ecodist"
...es? or should they be standardized? different variables have different measurment scales, my inclination is to standardize, but I don't know if this will dampen relationships between variables. 2) If env1 and another variable are correlated, is the appropriate test var1 ~ env1 + env2 + space?, or var1 ~ env1 + space and then var1 ~ env2 + space? 3) interpretation... Does the value of "r" (i.e. + or -) imply spatial overlap (+) or spatial exclusion (-)? Any assistance would be greatly appreciated! Thanks, -- David Depew PhD Candidate Department of Biology Uni...
2010 Aug 05
1
plot points using vis.gam
Hello, I'm trying to illustrate the relationships between various trait and environment data gathered from a number of sites. I've created a GAM to do this: gam1=gam(trait~s(env1)+s(env2)+te(env1,env2)) and I know how to create a 3D plot using vis.gam. I want to be able to show points on the 3D plot indicating the sites that the data came from. I can do this on a 2D plot when there is one term, e.g. gam2=gam(trait~s(env1)) but cannot figure it out for the 3D plot. Any help would...
2015 Sep 29
1
making object.size() more meaningful on environments?
...s at fredhutch.org>> wrote: > > Hi, > > Currently object.size() is not very useful on environments as it always > returns 56 bytes, no matter how big the environment is: > > env1 <- new.env() > object.size(env1) # 56 bytes > > env2 <- new.env(hash=TRUE, size=75000000L) > object.size(env2) # 56 bytes > > env3 <- list2env(list(a=runif(25000000), L=LETTERS)) > object.size(env3) # 56 bytes > > This makes it pretty useless on reference class instances and other > objects th...
2010 Jun 07
1
undefined method 'to_sym' for ["<var>", "<var">]:Array
I am running into a problem with my LDAP puppet setup with this error message: PuppetClient: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not parse for environment DR: undefined method `to_sym'' for ["ENV1", "ENV2"]:Array PuppetMaster: err: Could not parse for environment DR: undefined method `to_sym'' for ["ENV1", "ENV2"]:Array The "environment" variable is part of the LDAP node definition and in this case, the node in question belongs to two different environmen...
2013 Mar 27
1
Conditional CCA and Monte Carlo - Help!
...uly grateful for your help! I am fairly new to R, and I have quickly found myself in a place where "Google-ing" has no longer proven useful. Below are my scripts and error messages. Using Vegan: > vare.cca <- cca(InvertR.csv ~ Space1 + Space2... + Condition(Env1) + > Condition(Env2)..., HabitatSpaceR.csv) > randtest(vare.cca, nrepet = 1000) Error in randtest.cca(vare.cca, nrepet = 1000) : Object of class dudi expected Using ade4: > vare.cca <- cca(InvertR.csv ~ Space1 + Space2... + Condition(Env1) + > Condition(Env2)..., HabitatSpaceR.csv) Error in cca(InvertR...
2015 Sep 29
0
making object.size() more meaningful on environments?
...5 at 2:42 PM, Herv? Pag?s <hpages at fredhutch.org> wrote: > Hi, > > Currently object.size() is not very useful on environments as it always > returns 56 bytes, no matter how big the environment is: > > env1 <- new.env() > object.size(env1) # 56 bytes > > env2 <- new.env(hash=TRUE, size=75000000L) > object.size(env2) # 56 bytes > > env3 <- list2env(list(a=runif(25000000), L=LETTERS)) > object.size(env3) # 56 bytes > > This makes it pretty useless on reference class instances and other > objects that use environments int...
2013 Dec 17
1
Geppetto complains about uninitialized variables in reduce function
Hello, I''m using the following expression to format a list: $valid_environments = [''env1'', ''env2'', ''env3''] $env_message = $valid_environments.reduce |$message, $env| { "${message}, ${env}" } It works at run-time (Puppet 3.2.4 standalone with "--parser=future"). However in Eclipse (v4.3.1), Geppetto (v4.0) shows these errors: Re...
2017 Jul 30
1
Add Anova statistics in each figure
..., 0, 4.87, 4.86, 0, 0, 0, 4.83, 0, 4.85, 0, 4.48, 4.38, 0, 0, 4.53, 0, 4.79, 0, 0, 0, 4.7, 0, 4.84, 0, 0, 0, 4.35, 4.72, 4.72, 4.65, 4.65, 4.39, 4.73, 4.62, 0, 4.76, 0, 5, 0, 4.86, 0, -13.38, 0, 4.73, 0, 0, 0, 4.58, 4.76, 0, 0, 0, 0, 4.68, 4.74, 0, 0, 0, 4.83, 0, 0, 0, 0, 0, 0), Env2 = c(-5.89, 0, -4.13, -8.88, 2.79, -0.31, -1.21, -3.72, -0.52, -6.52, -10.28, -0.27, -21.27, 0, 0, -5.62, -11.49, 0, -4.85, 0, -0.8, 0, -5.4, 0.63, 0, 0, 0, -10.92, -9.41, 0, -9.62, -9.15, -4.32, -5.63, 0, 0, -6.07, 0, -3.34, -11.85, 0, -10.36, 0, 0, -5.29, 3, 0, 0, 0, -16.9...
2013 Jun 12
2
Functions within functions - environments
Dear list, I have a problem with nested functions and I don't manage to get it solved. I know I should be looking in environments, and I have tried a lot, but it keeps on erroring. An easy version of the problem is as follows: innerfunction<-function() { print(paste(a, " from inner function")) print(paste(b, " from inner function")) setwd(wd) }
2015 Feb 18
1
Different serialization of functions in interactive vs. batch mode
Hi Gabriel, thanks for your reply - it does solve the problem of my toy function, but does come with some other problems though. a) as.list(f)[[1]] yields an expression, not a function. In order to go the route you are suggesting, I would more likely use "deparse" in order to get the original back b) and more seriously - as.list strips the environment of the function (and thus
2005 Jul 13
3
nlme, MASS and geoRglm for spatial autocorrelation?
Hi. I'm trying to perform what should be a reasonably basic analysis of some spatial presence/absence data but am somewhat overwhelmed by the options available and could do with a helpful pointer. My researches so far indicate that if my data were normal, I would simply use gls() (in nlme) and one of the various corSpatial functions (eg. corSpher() to be analagous to similar analysis in SAS)
2007 Jan 07
2
environmentName
I noticed the new environmentName in R 2.5.0dev. Thus I gather that each environment has: (1) a name (2) a hex value so 1. environmentName gets the name. Is there any way to set the name? 2. is there any way to get the hex value for an environment other than doing: e <- new.env() capture.output(e)
2012 Feb 13
2
Puzzling... puzzling... puzzling...
Hi all, I made sure that it's "env$sRes1$nPositionsOptimizedM" that's correct... not the "env$sRes1$nPositionsOptimized"... But it seems both point to the same memory area... This is very dangerous because I have used naming conventions such as: MyLongVariableNameForA MyLongVariableNameForB MyLongVariableNameForC ... ... Then if internally they are actually the
2010 Nov 22
1
how do remove those predictor which have p value greater than 0.05 in GLM?
...a backward stepwise logistic regression, but i got a problem in removing those predictors which are above 0.05. I don't want to include those variables which were above 0.05 in final backward stepwise logetsic regression model. for example: first I run the model, "name<-glm(dep~env1+env2..., family= binomial, data=new)" after that, I did stepwise for name name.step<-step(name, direction="backward") here, I still got those variables which were not significant, for example: secchi was not significant (see below example), but still it was in the model. how can I...
2010 Nov 24
0
4. Rexcel (Luis Felipe Parra)-how to run a code from excel
...a backward stepwise logistic regression, but i got a problem in removing those predictors which are above 0.05. I don't want to include those variables which were above 0.05 in final backward stepwise logetsic regression model. for example: first I run the model, "name<-glm(dep~env1+env2..., family= binomial, data=new)" after that, I did stepwise for name name.step<-step(name, direction="backward") here, I still got those variables which were not significant, for example: secchi was not significant (see below example), but still it was in the model. how can I...