Displaying 4 results from an estimated 4 matches for "answert".
Did you mean:
answer
2008 Nov 09
1
attr.all.equal() and all.equal(attributes(), attributes())
Dear All!
If I try to compare the attributes of two
objects, I find a surprising behaviour of
attr.all.equal(). With identical attributes I
receive the answert NULL. If the attributes
differ, the answer is as expecxted and differences are shown.
all.equal(attributes(), attributes()) instead
returns TRUE, if attributes are equal.
See example:
v <- 1:5
attr(v, 'testattribute') <- 'testattribute v'
v_c <- v
attributes(v)
$testatt...
2013 Feb 12
7
Is there a neat R trick for this?
Hello all,
given two vectors X and Y I'd like to receive a vector Z which
contains, for each element of X, the index of the corresponding
element in Y (or NA if that element isn't in Y).
Example:
x <- c(4,5,6)
y <- c(10,1,5,12,4,13,14)
z <- findIndexIn(x, y)
z
[1] 5 3 NA
1st element of z is 5, because the 1st element of x is at the 5th position in y
2nd element of z is 3,
2011 Mar 15
2
(R) transitions in a Markov Chain
Dear experts,
I have to generate 1000 transitions of a discrete time Markov Chain and
then give and estimation of the equilibrium distribution.
I know the transition matrix.
0.3 0.7 0
0.2 0.5 0.3
0 0.4 0.6
Do you know how to do it with R?
Thanks a lot!
Estefania
[[alternative HTML version deleted]]
2006 May 25
4
Does TMail support Nested Multipart Messages? (Repost)
Hi,
does anybody know if TMail supports nested multipart messages? I read
a changelog that indicates so
(http://dev.rubyonrails.org/svn/rails/trunk/actionmailer/CHANGELOG), but
I haven''t been able to get it working so far.
Maybe I am doing something wrong here?
I attached the sample mail. Here is the code to parse it:
require File.dirname(__FILE__) +