Thank you all it worked after I checked for length of agrep's result :)
On Tue, Dec 11, 2012 at 6:11 PM, Rui Barradas wrote:
> Hello,
>
> Inline.
>
> Em 11-12-2012 12:04, surekha nagabhushan escreveu:
>
>> Rui,
>>
>>
>> I have initialized i
alue = TRUE,
> max.distance = 0.1)
> if(length(tmp) > 0) result_vector[j-i] <- tmp
> }
> result[[i]] <- result_vector
> }
> result
>
>
>
> Hope this helps,
>
> Rui Barradas
> Em 11-12-2012 11:23, surekha nagabhush
Hello,
>
> And another error in line 2. It should be
>
> for(j in (i+1):length(test1))
>
>
> Hope this helps,
>
> Rui Barradas
>
> Em 11-12-2012 07:54, Pascal Oettli escreveu:
>
> Hi,
>>
>> There is a mistake in the first line. It should be:
>
; > for(i in 1:(length(test1)-1))
>
> Regards,
> Pascal
>
>
> Le 11/12/2012 16:01, surekha nagabhushan a écrit :
>
>> Hi all.
>>
>> This is my first message at R-help...so I'm hoping I have some beginner's
>> luck and get some good help for
Hi all.
This is my first message at R-help...so I'm hoping I have some beginner's
luck and get some good help for my problem!
FYI I have just started using R recently so my knowledge of R is pretty
preliminary.
Okay here is what I need help with - I need to know how to use agrep in a
for loop.
5 matches
Mail list logo