f Newmiller
>Sent: Friday, December 15, 2017 10:09 PM
>To: r-help@r-project.org; Duncan Murdoch; akshay kulkarni;
>r-help@r-project.org
>Subject: Re: [R] something weird has happened!!
>
>Entry 250 is different between the two. However, I (we?) have no idea
>what that functio
> On Dec 15, 2017, at 4:45 AM, akshay kulkarni wrote:
>
> dear Members,
>
>
>
> Today something weird has happened on my R console. I have attached two
> screenshots of the same vector in my R console but they differ.
>
>
> Also one of my function returns negative values, even after double
You can see if your function uses R's random number generator with
the following function.
isRandom <- function(expr) {
randomSeedBefore <- get0(".Random.seed")
force(expr)
!identical(randomSeedBefore, get0(".Random.seed"))
}
isRandom(1:10)
#[1] FALSE
isRandom(runif(3)>.4)
#[1] TRUE
I
You could try this and see what you get:
unique( yguii(ZEEL.NS, "o") - yguii(ZEEL.NS, "o") )
or maybe
table( yguii(ZEEL.NS, "o") - yguii(ZEEL.NS, "o") )
You showed two sets of output from the expression
yguii(ZEEL.NS, "o")
Were they done one right after the other? Or could ZEEL.NS h
Entry 250 is different between the two. However, I (we?) have no idea what that
function is so it might be using randomness as part of its calculation.
--
Sent from my phone. Please excuse my brevity.
On December 15, 2017 7:11:30 AM PST, Duncan Murdoch
wrote:
>On 15/12/2017 7:45 AM, akshay kul
Dear Akshay,
Where is the problem !!Two data set seems identical except one of them show 10
column and other showing 11 column on r console .
Regards.Tanvir AhamedStockholm, Sweden |
mashra...@yahoo.com
On Friday, December 15, 2017, 3:49:03 PM GMT+1, akshay kulkarni
On 15/12/2017 7:45 AM, akshay kulkarni wrote:
dear Members,
Today something weird has happened on my R console. I have attached two
screenshots of the same vector in my R console but they differ.
Those are function calls, you aren't just printing the same vector
twice, you're producing two
> On Jun 3, 2016, at 6:03 AM, Juan Andres Hernandez
> wrote:
>
> Can anybody explain me this weird result?
> a=3
> as.integer(a)
> 1] 3
>
> a=(3/10)/0.1
> a
> [1] 3
>
> as.integer(a)
> [1] 2
>
> Thank's in advance
>
> Juan A Hernández
See:
https://cran.r-project.org/doc/FAQ/R-FAQ.html
Can anybody explain me this weird result?
a=3
as.integer(a)
1] 3
a=(3/10)/0.1
a
[1] 3
as.integer(a)
[1] 2
Thank's in advance
Juan A Hernández
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and mor
Hi,
library(pracma)
k=20
mu=4.5
casigma=17000
myint=function(j) {
quadinf(function(x)
(1/(1+exp(-x)))^j*(1-1/(1+exp(-x)))^(k-j)*dnorm(x,mu,casigma),-Inf,Inf)
}
sapply(0:k,myint)
##
10 matches
Mail list logo