[Rd] mean

2020-01-09 Thread Lipatz Jean-Luc
Hello, Is there a reason for the following behaviour? > mean(c("1","2","3")) [1] NA Warning message: In mean.default(c("1", "2", "3")) : l'argument n'est ni numérique, ni logique : renvoi de NA But: > var(c("1","2","3")) [1] 1 And also: > median(c("1","2","3")) [1] "2" But: > quantile(c("1","

[Rd] 'gsub' not perl compatible?

2017-07-21 Thread Lipatz Jean-Luc
Hi all, Working on some SAS program conversions, I was testing this (3.4.0 Windows, but also 2.10.1 MacOsX): gsub("b?","!","abc",perl=T) which returns [1] "!a!c!" that I didn't understand. Unfortunately, asked for the same thing SAS 9.4 replies : "!a!!c!", and so does Perl (Strawberry 5.26),

[Rd] list.files returns unwanted files

2017-07-18 Thread Lipatz Jean-Luc
Hi all, I have found a strange behaviour with 'list.files' (it can easily be bypassed with the 'pattern' argument but doesn't seem to me very constistent to the 'files.all' one): The problem is that Windows files begining with a tilde are returned by list.files, even if they are hidden. I repr

Re: [Rd] write.csv

2017-07-04 Thread Lipatz Jean-Luc
JLL -Message d'origine- De : Duncan Murdoch [mailto:murdoch.dun...@gmail.com] Envoyé : mardi 4 juillet 2017 14:24 À : Lipatz Jean-Luc; r-devel@r-project.org Objet : Re: [Rd] write.csv On 04/07/2017 5:40 AM, Lipatz Jean-Luc wrote: > Hi all, > > I am currently studying how to genera

[Rd] write.csv

2017-07-04 Thread Lipatz Jean-Luc
Hi all, I am currently studying how to generalize the usage of R in my statistical institute and I encountered a problem that I cannot declare on bugzilla (cannot understand why). Sorry for trying this mailing list but I am really worried about the problem itself and the possible implications i