Sorry Jacques and all the other helpful people!

I made a mistake because I didn´t realize that I have a vector only  
containing NAs. That happened during standardization and i didn´t  
check this.
I apologize for that.

Greetings

Birgit

Am 28.06.2007 um 15:17 schrieb Jacques VESLOT:

> you may have a vector with only NA values in it...
>
> max(c(NA,NA), na.rm=T)
> [1] -Inf
> Warning message:
> aucun argument pour max ; -Inf est renvoyé
>
> Jacques VESLOT
>
> INRA - Biostatistique & Processus Spatiaux
> Site Agroparc 84914 Avignon Cedex 9, France
>
> Tel: +33 (0) 4 32 72 21 58
> Fax: +33 (0) 4 32 72 21 84
>
>
>
> Birgit Lemcke a écrit :
>> Thanks that was really a quick answer.
>>
>> It works but I get this warning message anyway:
>>
>> 1: kein nicht-fehlendes Argument für min; gebe Inf zurück (None  
>> not-lacking argument for min; give Inf back)
>> 2: kein nicht-fehlendes Argument für max; gebe -Inf zurück
>> what does this mean?
>>
>> Greeting and thanks for your help!
>>
>> Birgit
>>
>> Am 28.06.2007 um 12:05 schrieb Jacques VESLOT:
>>
>>> sapply(1:85, function(i) eval(parse(text=paste("range(V", i, ",  
>>> na.rm=T)", sep=""))))
>>>
>>> Jacques VESLOT
>>>
>>> INRA - Biostatistique & Processus Spatiaux
>>> Site Agroparc 84914 Avignon Cedex 9, France
>>>
>>> Tel: +33 (0) 4 32 72 21 58
>>> Fax: +33 (0) 4 32 72 21 84
>>>
>>>
>>>
>>> Birgit Lemcke a écrit :
>>>> Hello,
>>>> (Power Book G4, Mac OS X, R 2.5.0)
>>>>
>>>> I would like to repeat the function range for 85 Vectors (V1-V85).
>>>> I tried with this code:
>>>>
>>>> i<-0
>>>>  > repeat {
>>>> + i<-i+1
>>>> + if (i<85) next
>>>> + range (Vi, na.rm = TRUE)
>>>> + if (i==85) break
>>>> + }
>>>>
>>>> I presume that the Vi is wrong, because in this syntax i is not  
>>>> known  as a variable. But I don´t know how to say that it is a  
>>>> variable here.
>>>> Would be nice if somebody could help me.
>>>> Perhaps I´m thinking too complicated and there is an easier way  
>>>> to do  this.
>>>>
>>>> Thanks in advance
>>>>
>>>> Greetings
>>>>
>>>> Birgit
>>>>
>>>> Birgit Lemcke
>>>> Institut für Systematische Botanik
>>>> Zollikerstrasse 107
>>>> CH-8008 Zürich
>>>> Switzerland
>>>> Ph: +41 (0)44 634 8351
>>>> birgit.lemcke@systbot.uzh.ch <mailto:birgit.lemcke@systbot.uzh.ch>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> [[alternative HTML version deleted]]
>>>>
>>>>    
>>>> ------------------------------------------------------------------- 
>>>> -----
>>>>
>>>> ______________________________________________
>>>> R-help@stat.math.ethz.ch <mailto:R-help@stat.math.ethz.ch>  
>>>> mailing list
>>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>>> PLEASE do read the posting guide http://www.R-project.org/ 
>>>> posting-guide.html
>>>> and provide commented, minimal, self-contained, reproducible code.
>>>>
>>>>
>>
>> Birgit Lemcke
>> Institut für Systematische Botanik
>> Zollikerstrasse 107
>> CH-8008 Zürich
>> Switzerland
>> Ph: +41 (0)44 634 8351
>> birgit.lemcke@systbot.uzh.ch <mailto:birgit.lemcke@systbot.uzh.ch>
>>
>>
>>
>>

Birgit Lemcke
Institut für Systematische Botanik
Zollikerstrasse 107
CH-8008 Zürich
Switzerland
Ph: +41 (0)44 634 8351
birgit.lemcke@systbot.uzh.ch






	[[alternative HTML version deleted]]

