Re: [R] "invalid argument to unary operator" while selecting rows by name

2016-09-22 Thread Pauline Laïlle
thed in his "Bloom County" comic strip ) >> >> >> On Wed, Sep 21, 2016 at 1:26 AM, > > wrote: >> > Hello, >> > >> > The error message means exactly what it says. The operator '-' is >> > unary and cannot be followed by

Re: [R] "invalid argument to unary operator" while selecting rows by name

2016-09-22 Thread Pauline Laïlle
")) > clean <- data[-ix, ] > > > Rui Barradas > > > Citando ruipbarra...@sapo.pt: > > > Hello, >> >> Try something like the following. >> >> ix <- which(c("601", "604") %in% rownames(data)) >> clean <- data[-

Re: [R] "invalid argument to unary operator" while selecting rows by name

2016-09-22 Thread Pauline Laïlle
aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Tue, Sep 20, 2016 at 5:42 AM, Pauline Laïlle > wrote: > > Dear all, > > > > I built a dataframe with read.csv2(). Initially, row names are integers > > (order of answers to a sur

[R] "invalid argument to unary operator" while selecting rows by name

2016-09-20 Thread Pauline Laïlle
quot; "228" etc. I would like to drop rows "601" & "604" to clean the dataframe. While data["601",] shows me the first row i'd like to drop, data[-"601",] returns the following : Error in -"601" : invalid argument to unary operator

[R] problem working directory WinBUGS using R

2012-02-01 Thread Pauline Pantoja
Hi, I am trying to use WinBUGS using R, but i am having some problems using bugs function: out <- bugs(data = win.data, inits = inits, parameters.to.save = params, model.file = "model.txt", n.thin = nt, n.chains = nc, n.burnin = nb, n.iter = ni, debug = TRUE, DIC = TRUE, working.directory = g

[R] How to check for missing report pages per client

2010-10-20 Thread Pauline
730052 46101 730052 46102 730074 46101 730074 46102 730074 46103 I appreciate any help, Pauline [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

[R] error : unused argument(s) when boxplot

2010-02-16 Thread Pauline Haleux (JIC)
Dear all, I am a total beginner in R, so sorry if this is the wrong place. I am using R 2.10.1 on a Mac (Mac OS 10.6.2). I have this small dataset : growth sugar 75 C 72 C 73 C 61 F 67 F 64 F 62 S 63