Duncan,
Thank you so much. It is exactly what I was looking for. However, for some
reason, indices() does not work ("Error: could not find function "indices").
I used which(), it worked.
Thanks again for the help,
Julia
Duncan Murdoch-2 wrote:
>
> On 08/10/2008 2:36 PM, liujb wrote:
>> Dear
Can this be an answer ?
which(v %in% names(table(v)[table(v)>1]))
[1] 2 5
Nael
On Wed, Oct 8, 2008 at 8:36 PM, liujb <[EMAIL PROTECTED]> wrote:
>
> Dear R users,
>
> I have this vector that consists numeric numbers. Is there a command that
> detects the repeated numbers in a vector and returns
On 08/10/2008 2:36 PM, liujb wrote:
Dear R users,
I have this vector that consists numeric numbers. Is there a command that
detects the repeated numbers in a vector and returns the index of the
repeated numbers (or the actual numbers)? For example, v <- c(3,4,5,7,4).
The command would return me
Dear R users,
I have this vector that consists numeric numbers. Is there a command that
detects the repeated numbers in a vector and returns the index of the
repeated numbers (or the actual numbers)? For example, v <- c(3,4,5,7,4).
The command would return me index 2 and 5 (or the repeated number
4 matches
Mail list logo