Displaying 8 results from an estimated 8 matches similar to: "parallel computing with foreach()"
2017 Dec 07
0
parallel computing with foreach()
Your code generates an error that has nothing to do with dopar. I have
no idea what your function stack is supposed to do; you may be
inadvertently calling utils::stack which would produce this kind of
error:
> stack(1:25, RAT = FALSE)
Error in data.frame(values = unlist(unname(x)), ind, stringsAsFactors = FALSE) :
arguments imply differing number of rows: 25, 0
HTH,
Peter
On Wed, Dec 6,
2015 Aug 25
2
match()/%in% with language objects?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I haven't yet dug into the internals of match() yet to see what's
going on, but I'm wondering whether there's a design reason why I
can't use %in% (which is a wrapper for match()) on language objects.
I'd like to test whether a language object is in a list of language
objects, but I get the error "'match'
2015 Aug 26
1
match()/%in% with language objects?
>>>>> William Dunlap <wdunlap at tibco.com>
>>>>> on Tue, 25 Aug 2015 09:47:23 -0700 writes:
> match(x,table) and x%in%table work when x and table are lists of language
> objects or expressions. E.g.,
> expression(quote(1+2), quote(log2(16))) %in% expression(3, quote(1+2), c(4L,5L,6L,7L))
> #[1] TRUE FALSE
>
2009 Mar 27
3
color vectors other than gray()
I'm trying to create a graph where different cells of a grid (a shapefile)
will be painted with a color share scale, where the most easy way is to use
gray().
Can I somehow get a vector (gradient) of colors, a vector of colors with
other methods but gray()?
I'm doing this until now
quad_N_sp <-
2005 May 03
3
Lattice dotplot with symbols sized and colored
Apologies if this is a naive beginners question.
I am trying to create a dotplot with the lattice dotplot function in which
my dots are colored differently depending on if positive or negative and
sized by sp.nc.bdrs.data$mwZ
I have tried...
dotplot(sporder ~ cvarorder | direct, data=sp.nc.bdrs.data,
cex=abs(sp.nc.bdrs.data$mwZ * 0.05),
xlab="climate variables",
2015 Aug 25
0
match()/%in% with language objects?
match(x,table) and x%in%table work when x and table are lists of language
objects or expressions. E.g.,
expression(quote(1+2), quote(log2(16))) %in% expression(3, quote(1+2),
c(4L,5L,6L,7L))
#[1] TRUE FALSE
list(quote(1+2), quote(log2(16))) %in% list(3, quote(1+2), c(4L,5L,6L,7L))
#[1] TRUE FALSE
match(list(quote(1+2), quote(log2(16))), list(3, quote(1+2),
c(4L,5L,6L,7L)))
#[1] 2
2010 Jan 26
0
create custom function to annotate a levelplot
Dear list users,
I modeled the probability of occurrence of one species: "Cyperus
dilatatus".
I modeled the species using three different approaches:
c("random","target","index")
What I want to achieve is to make a plot of all prediction maps in a row
with to conditional variables, that is, with the species and the
approach
I prepared a data.frame to try
2008 Mar 20
0
Mixing stored procedure call with RoR db calls in the same function gives errors
Folks,
I am using ruby 1.8.5 with rails 1.2.3 and have made changes to
mysql_adapter.rb based on recommendations made here
http://wiki.rubyonrails.org/rails/pages/StoredProceduresInMySql to be
able to use stored procs in my code.
I have changed this call in mysql_adapter.rb
ConnectionAdapters::MysqlAdapter.new(mysql, logger, [host, username,
password, database, port, socket], config)
to