Re: [R] Minimum and blanks

2009-10-02 Thread Chris Li
Thanks Joris and Peter. Sorry for not giving enough details. I have tried your suggestions and the problem is solved. Thank you. :) JorisMeys wrote: The minimum of a character vector is returned according to the unicode or ascii code values, but I guess that's not what Chris is looking

[R] Minimum and blanks

2009-10-01 Thread Chris Li
Hi all, I want to calculate the minimum of a column which contains blanks. R returns as the minimum, which is not I want. Is there a way to overcome it? Thanks in advance. Chris -- View this message in context: http://www.nabble.com/Minimum-and-blanks-tp25692189p25692189.html Sent from the

Re: [R] Minimum and blanks

2009-10-01 Thread Peter Ehlers
Chris, What is your definition of the minimum of a *character* vector? -Peter Ehlers Chris Li wrote: Hi all, I want to calculate the minimum of a column which contains blanks. R returns as the minimum, which is not I want. Is there a way to overcome it? Thanks in advance. Chris

Re: [R] Minimum and blanks

2009-10-01 Thread joris meys
The minimum of a character vector is returned according to the unicode or ascii code values, but I guess that's not what Chris is looking for. Chris, please always try to provide a minimal working example of code to see what is wrong. Something goes wrong with the input in your example. As Peter