Re: [Rd] On read.csv and write.csv

2021-07-05 Thread Stephen Ellison
> From: Simon Urbanek > By default there is no column name for a column of row names. > spreadsheets. Note that such CSV files can be read in R by > >read.csv(file = "", row.names = 1) AHA!! Many thanks. I see this clue is in ?write.table, though; I was looking for help on

Re: [Rd] On read.csv and write.csv

2021-07-01 Thread Stephen Ellison
> the "unhelpful" column are the row names. They are considered an > important part of a data frame and therefore the default (row.names = > TRUE) is to not lose them (as there is no way back once you do). If you don't > want to preserve the row names you can simply set row.names=FALSE. Please run

[Rd] On read.csv and write.csv

2021-06-30 Thread Stephen Ellison
Apologies if this is a well-worn question; I haven’t found it so far but there's a lot of r-dev and I may have missed it in the archives. In the mean time: I've managed to avoid writing csv files with R for a couple of decades but we're swopping data with a collaborator and I've tripped over an

Re: [Rd] mean

2020-01-09 Thread Stephen Ellison
Note that in > > quantile(c("1","2","3"),p=.5) > Error in (1 - h) * qs[i] : > argument non numérique pour un opérateur binaire the default quantile type (7) does not work for non-numerics. Quantile types 1 and 3 work as expected: > quantile(c("1","2","3"),p=.5, type=1) 50% "2" > quantile(c(

Re: [Rd] ?Syntax wrong about `?`'s precedence ?

2019-09-02 Thread Stephen Ellison
> From: William Dunlap [mailto:wdun...@tibco.com] > Precedence is a property of the parser and has nothing to do with the > semantics assigned to various symbols. Yes, but output depends on evaluation as well as precedence. Seeing different things wasn't an immediate surprise. Your own parse(

Re: [Rd] ?Syntax wrong about `?`'s precedence ?

2019-08-30 Thread Stephen Ellison
> From: R-devel [mailto:r-devel-boun...@r-project.org] On Behalf Of Ant F > Sent: 29 August 2019 12:06 > To: r-devel@r-project.org > Subject: [Rd] ?Syntax wrong about `?`'s precedence ? > ... > See the following example : > > `?` <- `+` I'm curious; What did you expect to happen if you replac

Re: [Rd] Underscores in package names

2019-08-12 Thread Stephen Ellison
To throw a very small pennyworth into this debate, the metRology package I maintain uses mixed case to highlight R for that community when I'm talking about, or citing it. R takeup in that community is not yet high and the visible reminder seems to help. I'll obviously accept a consensus deci

Re: [Rd] R evolution suggestion request

2019-08-02 Thread Stephen Ellison
> It is pure native R annotation, I mean à la java. I wish to have an @ > operator available a R language level to create/embed real code > annotations. Currently, the best I can get is to use a trick of hiding such > thing behind a comment. Neither good, not the right way, as comments are > commen

[Rd] Unexpected email address change - and maybe a missing manual patch

2011-06-23 Thread Stephen Ellison
Please forgive the unorthodox posting, but some marketing genius here has decided I need a new corporate email address and has duly changed my outgoing email without adequate notice to amend listserve subscriptions. The result is a lot of unexpected bounces from R-help and R-devel. I'll try to f

[Rd] Checking R manual build

2011-06-22 Thread Stephen Ellison
Is there a quick way of checking the R manuals built from the .texi files in ../doc/manual without building the rest of R? Going from a vanilla checkout, some included files are missing (eg version.texi) and created by the makefiles, so it looks like the complete make script needs to be run at

[Rd] Loose code in R package files

2011-06-15 Thread Stephen Ellison
I'm sure i've seen the answer to this, but can't find it: If there is executable code in an R package .R file that does not return a function (that is, something like x <- rnorm(5), outside any function body ), what will actually happens at build and load time? And (more importantly, so I can p