Skip to content

initial value in 'vmmin' is not finite

6 messages · June Wong, Brian Ripley, patricia garcía gonzález +2 more

#
On Wed, 28 Jan 2009, June Wong wrote:

            
It means that your function at your starting values is evaluating to a 
non-finite value (+/-Inf, NA, NaN).

Your example is unreadable, and we don't have the file so cannot help 
you debug this.
,!

  
    
#
you could start by something like the following:

x <- c("Y", "H", NA, NA)
y <- c(NA, "H", NA, "B")

ifelse(is.na(x), y, x)


I hope it helps.

Best,
Dimitris
patricia garc?a gonz?lez wrote:
!

  
    
#
Is position important? The vectors always have the same length? They
always have the same entry if both are not NA?

If yes, yes and yes, then

res <- ifelse( is.na(x), y, x)

does what you want. Otherwise please explain better what you want.

Gabor

On Wed, Jan 28, 2009 at 3:54 PM, patricia garc?a gonz?lez
<kurtney_84 at hotmail.com> wrote: