search for: foolme

Displaying 1 result from an estimated 1 matches for "foolme".

Did you mean: fool
2009 Jan 02
1
[Fwd: Re: [R] Randomly remove condition-selected rows from a matrix]
...> convenience feature may lead to undesired behaviour when 'x' is of > varying length 'sample(x)'. See the 'resample()' example below. > > " > > yet the following works, even though x has length 1 and is *not* numeric: > > x = "foolme" > is.numeric(x) > sample(x, 1) > sample(x) > > x = NA > is.numeric(NA) > sample(x, 1) > sample(x) > > is this a bug in the code, or a bug in the documentation? > > > >> To my mind, it is bizarre to have an important basic function which >&g...