Displaying 5 results from an estimated 5 matches for "__where".
Did you mean:
_where
2007 Apr 20
1
A particular shuffling on a vector
Hello,
I was wondering if anyone can think of a straightforward way (without
loops) to do the following shuffling:
Let's imagine a vector:
c(1,1,1,2,2,3,3,3)
I would like to derive shuffled vectors __where the same digits are
never separated__, although they can be at both ends (periodicity).
So the following shuffled vectors are possible:
c(2,2,1,1,1,3,3,3)
c(2,1,1,1,3,3,3,2)
c(3,3,3,1,1,1,2,2)
c(3,1,1,1,2,2,3,3)
etc ...
I should mention that there can be any number of different numbers,
and any...
2017 Jan 26
2
Undefined behavior of head() and tail() with n = 0
...e
> || version of Windows). One place in R where the difference might be
> || seen is in division by zero: ?1/x? is ?Inf? or ?-Inf? depending on
> || the sign of zero ?x?. Another place is ?identical(0, -0, num.eq =
> || FALSE)?.
>
> says the *contrary* ( __Where possible R treats them as the same__ ):
> We do _not_ want to distinguish -0 and +0,
> but there are cases where it is inavoidable
>
> And there are good reasons (mathematics !!) for this.
>
> I'm pretty sure that it would be quite a mistake to start
> differentiating it he...
2017 Jan 25
3
Undefined behavior of head() and tail() with n = 0
Hi all,
The documentation for head() and tail() describes the behavior of
these generic functions when n is strictly positive (n > 0) and
strictly negative (n < 0). How these functions work when given a zero
value is not defined.
Both GNU command-line utilities head and tail behave differently with +0 and -0:
http://man7.org/linux/man-pages/man1/head.1.html
2017 Jan 26
0
Undefined behavior of head() and tail() with n = 0
...does so or not depends on the
|| version of Windows). One place in R where the difference might be
|| seen is in division by zero: ?1/x? is ?Inf? or ?-Inf? depending on
|| the sign of zero ?x?. Another place is ?identical(0, -0, num.eq =
|| FALSE)?.
says the *contrary* ( __Where possible R treats them as the same__ ):
We do _not_ want to distinguish -0 and +0,
but there are cases where it is inavoidable
And there are good reasons (mathematics !!) for this.
I'm pretty sure that it would be quite a mistake to start
differentiating it here... but of course we can conti...
2017 Jan 27
0
Undefined behavior of head() and tail() with n = 0
...ion of Windows). One place in R where the difference might be
>> || seen is in division by zero: ?1/x? is ?Inf? or ?-Inf? depending on
>> || the sign of zero ?x?. Another place is ?identical(0, -0, num.eq =
>> || FALSE)?.
>>
>> says the *contrary* ( __Where possible R treats them as the same__ ):
>> We do _not_ want to distinguish -0 and +0,
>> but there are cases where it is inavoidable
>>
>> And there are good reasons (mathematics !!) for this.
>>
>> I'm pretty sure that it would be quite a mistake to start
&g...