[R] extract rows having negative values

2009-06-06 Thread Manisha Brahmachary
Hello, I have a matrix with 6 columns and 12 rows. I want to extract out those IDs (rownames) from my matrix which have a negative values. For each ID(row) if the negative value is even under 1 column it needs to be extracted out. I will be grateful for any correct suggestion. Thanks Ma

[R] stars (as fourfold plots) in plot (symbols don't work)

2009-06-06 Thread maiya
Hi! I have a dataset with three columns -the first two refer to x and y coordinates, the last one are odds ratios. I'd like to plot the data with x and y coordinates and the odds ratio shown as a fourfold plot, which I prefer to do using the stars function. Unfortunately the stars option in sym

Re: [R] Journal Articles that Have Used R

2009-06-06 Thread Jonathan Baron
I also use R to redraw figures for the journal I edit (below), when the authors cannot produce usable graphics (about 50% of the author who try). Unfortunately, I cannot find a way to search for just the R files. They are all http://journal.sjdm.org/*/*.R where * is the number of the article. But

[R] Convert a lis to matrix

2009-06-06 Thread Manisha Brahmachary
Hello, This is an urgent request. I want to convert a list of 3 elements into a matrix and I am not sure how to do it. The list looks like this: List of 3 $ : num [1:15364, 1] 0.133 0.622 0.588 1.024 0.583 ... ..- attr(*, "dimnames")=List of 2 .. ..$ : chr [1:15364] "6420681" "3610

Re: [R] RPostgreSQL segfault with LEFT JOIN

2009-06-06 Thread Joe Conway
Dylan Beaudette wrote: After some further investigation, I see that the query works fine if I *do not use column aliases* : Looks like *any* query using a column alias will segfault unless the alias exactly matches the column name (in which case why bother). The code starting at line 423 in

[R] Survreg function for loglogistic hazard estimation

2009-06-06 Thread chenjiakai
I am trying to use R to do loglogistic hazard estimation. My plan is to generate a loglogistic hazard sample data and then use survreg to estimate it. If everything is correct, survreg should return the parameters I have used to generate the sample data. I have written the following code to d

Re: [R] No --no-latex?

2009-06-06 Thread Jim Lemon
10:08 > Looks like it was an oversight. I'll fix it. > 10:35 > Looks like the corresponding " else if " clause got omitted in > > tools:::.install_packages() > > and before that in share/R/RINSTALL. > 12:34 > Brian Ripley got there first, so it's fixed now in R-devel and R-patched. I thank you

Re: [R] p-values from VGAM function vglm

2009-06-06 Thread David Winsemius
On Jun 6, 2009, at 4:13 AM, Emmanuel Charpentier wrote: Dear David, Le vendredi 05 juin 2009 à 16:18 -0400, David Winsemius a écrit : On Jun 5, 2009, at 3:15 PM, Steven Matthew Anderson wrote: Anyone know how to get p-values for the t-values from the coefficients produced in vglm? Attached

[R] EBImage not loading

2009-06-06 Thread Quin Wills
Hello all I've just spent a few joyless hours trying to get EBImage to install in R. I'm running Ubuntu (Hardy Heron), fully updated (including R and Imagemagick). EBImage installation seems to work, but when I 'library(EBImage)' I get the following: - - - - Error in dyn.load(file, DLLpath = DLLp

Re: [R] Journal Articles that Have Used R

2009-06-06 Thread Peter Dalgaard
Jason Rupert wrote: Is there a way to get a reference list of journal articles that have used R? Ooodles ... as others have pointed out. Another source is the ISI web of science citation index, which reportedly shows up over 5000 citations of "R LANG ENV STAT COMP" or "LANG ENV STAT COMP" (I

Re: [R] A very frustrating read.table error message

2009-06-06 Thread Jonathan Baron
On 06/06/09 15:02, Adam D. I. Kramer wrote: > Dear Colleagues, > > Occasionally I deal with computer-generated (i.e., websurvey) data > files that haven't quite worked correctly. When I try to read the data into > R, I get something like this: > > Error in scan(file, what, nmax, sep, dec, q

Re: [R] A very frustrating read.table error message

2009-06-06 Thread hadley wickham
On Sat, Jun 6, 2009 at 5:02 PM, Adam D. I. Kramer wrote: > Dear Colleagues, > >        Occasionally I deal with computer-generated (i.e., websurvey) data > files that haven't quite worked correctly. When I try to read the data into > R, I get something like this: > > Error in scan(file, what, nmax,

Re: [R] large numbers of observations using ME() of spdep

2009-06-06 Thread Emmanuel Charpentier
Le dimanche 07 juin 2009 à 02:50 +0900, lucero mariani a écrit : > Dear All, > We aim to remove the spatial structure of our data using Moran Eigen > Vectors and spdep package . Our data has 3694 samples and 13 > variables. > The computer stop working after almost 4 days of processing (we found > i

[R] A very frustrating read.table error message

2009-06-06 Thread Adam D. I. Kramer
Dear Colleagues, Occasionally I deal with computer-generated (i.e., websurvey) data files that haven't quite worked correctly. When I try to read the data into R, I get something like this: Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 26 did not hav

Re: [R] Excel Export in a beauty way

2009-06-06 Thread Erich Studerus, Psychiatrische Uni-Klinik
Hi, Here's a function to export dataframes to an excel-file with the RDCOMClient package. It makes bold headers and fits the column widths automatically. If more than one dataframe is provided to the function, the dataframes are saved to seperate spreadheets within file. export.xls <- functi

Re: [R] Truncated R output in Sweave

2009-06-06 Thread Frank E Harrell Jr
Romain Francois wrote: Frank E Harrell Jr wrote: Dear Colleagues: In producing a book or a handout I sometimes cut out a large part of the printed output of an R function, substituting ... for that chunk. Deleting non-essential output saves paper. It would be nice to have a capability in

Re: [R] Truncated R output in Sweave

2009-06-06 Thread Romain Francois
Frank E Harrell Jr wrote: Dear Colleagues: In producing a book or a handout I sometimes cut out a large part of the printed output of an R function, substituting ... for that chunk. Deleting non-essential output saves paper. It would be nice to have a capability in Sweave to allow the use

Re: [R] Journal Articles that Have Used R

2009-06-06 Thread Ted Harding
On 06-Jun-09 18:34:21, Jakson Alves de Aquino wrote: > Jason Rupert wrote: >> Is there a way to get a reference list of journal articles that have >> used R? >> >> I am just looking for some examples of R graphs and presentation of >> results where R was used to generate the results. > > Did y

Re: [R] Journal Articles that Have Used R

2009-06-06 Thread Gabor Grothendieck
Most of the papers in the Journal of Statistical Software use R so that would give you many examples of such papers. http://www.jstatsoft.org On Sat, Jun 6, 2009 at 2:03 PM, Jason Rupert wrote: > > Is there a way to get a reference list of journal articles that have used R? > > I am just looking f

Re: [R] Journal Articles that Have Used R

2009-06-06 Thread Jakson Alves de Aquino
Jason Rupert wrote: > Is there a way to get a reference list of journal articles that have used R? > > I am just looking for some examples of R graphs and presentation of results > where R was used to generate the results. Did you try Google Scholar: http://scholar.google.com.br/scholar?q=R%

[R] Journal Articles that Have Used R

2009-06-06 Thread Jason Rupert
Is there a way to get a reference list of journal articles that have used R? I am just looking for some examples of R graphs and presentation of results where R was used to generate the results. Thanks for any feedback and insights. __ R-help@r-pr

[R] Fwd: correct line types in lattice legends

2009-06-06 Thread Deepayan Sarkar
[Forgot to CC r-help] -- Forwarded message -- From: Deepayan Sarkar To: Gerrit Draisma On 6/6/09, Gerrit Draisma wrote: > Hallo R-users, > I do not understand how to specify the correct > line and symbol types in the legends of a lattice xyplot. > This is what I tried,

[R] large numbers of observations using ME() of spdep

2009-06-06 Thread lucero mariani
Dear All, We aim to remove the spatial structure of our data using Moran Eigen Vectors and spdep package . Our data has 3694 samples and 13 variables. The computer stop working after almost 4 days of processing (we found it emitting a sharp sound and with all colors on the screen. No wories, it was

[R] Truncated R output in Sweave

2009-06-06 Thread Frank E Harrell Jr
Dear Colleagues: In producing a book or a handout I sometimes cut out a large part of the printed output of an R function, substituting ... for that chunk. Deleting non-essential output saves paper. It would be nice to have a capability in Sweave to allow the user to specify a starting and an

[R] Fitting with Beta-prime

2009-06-06 Thread aledanda
Hi, I need to fit my data with beta-prim distribution. I found the function in the package VGAM: betaprime and betaff. I don't know how can I make it work. I know that i need to calculate the parameters that describe this function on my distribution. But for exemple I don't understand the "link f

Re: [R] Installation of R in Redhat Linux (64 bit)

2009-06-06 Thread Santosh
Thanks for your responses! I guess R was installed using the enterprise version (not fedora) rpm package. The version of libgfortran is "libgfortran43-4.3.2-7.el5" and I have libgfortran.so.3. >From your email, I understand that libgfortran.so.1 is different from libgfortran.so.3, and that _gfortr

Re: [R] S4: When is validObject issued? (or why S4 is killing me:( ..

2009-06-06 Thread Martin Morgan
Vitalie S. wrote: > >>> >>> setMethod("initialize","test2", >>>function(.Object,...){ >>>.Object<-callNextMethod(.Object,...) >> >> validity is checked in the preceeding line >> >>>.obj...@b<-.obj...@a ## here "b" is initialized ## >>> >>>

Re: [R] Finding a folder at the root level of an unknown drive

2009-06-06 Thread Duncan Murdoch
On 06/06/2009 9:19 AM, Dennis Fisher wrote: Colleagues, R 2.9.0 Windows XP Task is as follows: A folder FOLDERNAME exists at the root level of some drive, e.g., E: \FOLDERNAME I want to search all possible drives to find the location of this folder but I don't know what drives exist or are m

[R] correct line types in lattice legends

2009-06-06 Thread Gerrit Draisma
Hallo R-users, I do not understand how to specify the correct line and symbol types in the legends of a lattice xyplot. This is what I tried, but the line types and symbol in the graph are not seen in the legend. Any help is appreciated. Thanks, Gerrit. library(lattice) s<-rep(1:3,len=10) x<- 1

[R] Finding a folder at the root level of an unknown drive

2009-06-06 Thread Dennis Fisher
Colleagues, R 2.9.0 Windows XP Task is as follows: A folder FOLDERNAME exists at the root level of some drive, e.g., E: \FOLDERNAME I want to search all possible drives to find the location of this folder but I don't know what drives exist or are mounted. The command: dir(path="C:/"

Re: [R] "time series", "longitudinal data" or "trajectories"

2009-06-06 Thread Robert A LaBudde
At 04:54 AM 6/6/2009, Christophe Genolini wrote: Thanks for yours answers. So if I understand: - Trajectories are continuous, the other are discrete. - The difference between time series and longitudinal is that time series are made at regular time whereas longitudinal are not ? - Repeated meas

Re: [R] Install RCurl in Linux

2009-06-06 Thread Duncan Temple Lang
Hi If you are getting exactly the same errors, then it is probable that your installation of curl-7.19.2 is not taking effect and the configuration script is still finding the older version. So you may want to check the output of curl-config --version in the same shell as you issue R CMD INS

Re: [R] No --no-latex?

2009-06-06 Thread Peter Dalgaard
Jim Lemon wrote: Hi, Having finally gotten around to installing R-2.9.0, I find that while the docs still say I can invoke the --no-latex option, R CMD INSTALL has decided that I can't. Nor is there any notice of this that I can find in the 2.9 series news. Is this just a trifling oversight th

Re: [R] Rpad - avoid removal of manually created html-tags in R chunk

2009-06-06 Thread Martin Gartner
Martin Gartner wrote: Dear Rpad-users, currently I am setting up a web page using Rpad (www.rpad.org). But I have a problem with generating dynamic html-output in the Rpad chunk. Here an example of my problem: I have the following index.html file: example rpadHideSource

Re: [R] No --no-latex?

2009-06-06 Thread Duncan Murdoch
Jim Lemon wrote: Hi, Having finally gotten around to installing R-2.9.0, I find that while the docs still say I can invoke the --no-latex option, R CMD INSTALL has decided that I can't. Nor is there any notice of this that I can find in the 2.9 series news. Is this just a trifling oversight th

[R] No --no-latex?

2009-06-06 Thread Jim Lemon
Hi, Having finally gotten around to installing R-2.9.0, I find that while the docs still say I can invoke the --no-latex option, R CMD INSTALL has decided that I can't. Nor is there any notice of this that I can find in the 2.9 series news. Is this just a trifling oversight that will be repair

[R] SMACOF joint configuration plot with bread data?

2009-06-06 Thread Michael Kubovy
Dear R-helpers, I have dist class objects for 10 individuals rating the dissimilarities (on a 100-point scale) of the same 10 faces (analogous to the bread data). I would like to get an individual differences scaling jointly for the individual judges and the faces, and plot them on the sam

Re: [R] how to make the dynamically creted string work inside if as a condition

2009-06-06 Thread Duncan Murdoch
Moumita Das wrote: Hi, How to make an if condition work, if the condition inside if() is created dynamically ,and that is a string .If i type teh dynamically created string the if works fine but when dynamically created,it is a string and going inside the if() ,an error is thrown saying : rgume

[R] how to make the dynamically creted string work inside if as a condition

2009-06-06 Thread Moumita Das
Hi, How to make an if condition work, if the condition inside if() is created dynamically ,and that is a string .If i type teh dynamically created string the if works fine but when dynamically created,it is a string and going inside the if() ,an error is thrown saying : rgument is not logical ..I

Re: [R] (no subject)

2009-06-06 Thread Peter Flom
Christophe Genolini wrote >Thanks for yours answers. So if I understand: > - Trajectories are continuous, the other are discrete. > - The difference between time series and longitudinal is that time >series are made at regular time whereas longitudinal are not ? > - Repeated measures are over a

[R] loglikelihood and AIC

2009-06-06 Thread Subha P. T.
Hi,  I tried fitting loglinear model using the glm(catspec). The data used is FHtab. . An independence model was fitted. Here summary() and fitmacro( ) give different values for AIC.   I understand that fitmacro( ) takes the likelilhood ratio L2(deviance) to calculate AIC and uses

[R] Need suggestion to present migration flow data

2009-06-06 Thread Kel Lam
Hi group, I am looking at migration data of very sick children to see if they move because of easier access to tertiary care. In particular, I am investigating the change of their socioeconomic status before the move (5 levels, highest implies best status) and after. Can anyone suggest some kind

Re: [R] "time series", "longitudinal data" or "trajectories"

2009-06-06 Thread Christophe Genolini
Thanks for yours answers. So if I understand: - Trajectories are continuous, the other are discrete. - The difference between time series and longitudinal is that time series are made at regular time whereas longitudinal are not ? - Repeated measures are over a short period of time. So if I me

Re: [R] alternative to built-in data editor

2009-06-06 Thread Liviu Andronic
On 6/6/09, Liviu Andronic wrote: > (cross-platform) alternative to fixing data in a spreadsheet-style > environment in R (those on Windows can try RExcel)? Perhaps built on > other toolkits? > Oh, there is one, in JGR. Issue object.browser() to browse all workspace objects, and double-click dat

[R] Rpad - avoid removal of manually created html-tags in R chunk

2009-06-06 Thread Martin Gartner
Dear Rpad-users, currently I am setting up a web page using Rpad (www.rpad.org). But I have a problem with generating dynamic html-output in the Rpad chunk. Here an example of my problem: I have the following index.html file: example rpadHideSource="true"> x <- "AB

Re: [R] p-values from VGAM function vglm

2009-06-06 Thread Emmanuel Charpentier
Dear David, Le vendredi 05 juin 2009 à 16:18 -0400, David Winsemius a écrit : > On Jun 5, 2009, at 3:15 PM, Steven Matthew Anderson wrote: > > > Anyone know how to get p-values for the t-values from the > > coefficients produced in vglm? > > Attached is the code and output — see comment added t

Re: [R] S4: When is validObject issued? (or why S4 is killing me:( ..

2009-06-06 Thread Vitalie S.
setMethod("initialize","test2", function(.Object,...){ .Object<-callNextMethod(.Object,...) validity is checked in the preceeding line .obj...@b<-.obj...@a ## here "b" is initialized ## .Object }) new("test2") Error i

Re: [R] alternative to built-in data editor

2009-06-06 Thread Liviu Andronic
On Thu, May 28, 2009 at 8:52 AM, Dieter Menne wrote: > I have never seen the data editor. > It's fix(), very similar to View(), but not crashing. Although showData() in relimp (the same used by Rcmdr) is often enough for viewing data, fix() is somewhat rudimentary. Isn't there any other (cross-plat