Re: [R] Problem connecting to database via RPostgreSQL/RS-DBI: "could not connect" error

2014-02-16 Thread andrewH
Hi Christian, thanks for responding! I wrote a reply to you when i first saw your post, but it looks like it didn't get to the list somehow. I'm still in Windows XP, though I imagine I'll have to switch over to 7 or something soon. soon. I think you are right - the problem is that I have not been

[R] Filling missing data in a Panel

2014-02-16 Thread Francesca Pancotto
Dear R contributors, I have a problem with a database that at the moment I find hard to solve. I have a panel composed of n subjects, whose names in the table that I report is bank_name, and observations for each of the individuals of bank_name from 1 to 18, as reported from the column p_for.

[R] Plot of Word Frequency between two groups..

2014-02-16 Thread Vijayan Padmanabhan
Dear R Group Does anyone know of a R plotting script that can plot wordfrequency comparison between two groups in a manner similar to this plot as shown in the following link? http://www.nytimes.com/interactive/2012/09/06/us/politics/convention-word-counts.html?_r=0 Regards Vijayan Padmanabhan

Re: [R] Defining array for nested for.loop.

2014-02-16 Thread Jeff Newmiller
Read the posting guide. This is not a homework help forum. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go...

[R] Defining array for nested for.loop.

2014-02-16 Thread Mathew Nagendran
Hey guys. The idea is I want to create a nested for.loop using pick.a values and m.control and m.sham at trunc1 to trunc6. How would I go about defining an array for this? I am unsure about what to put into length( ). In my last assignment it was a little bit more straightforward since I had:

Re: [R] lattice: superposed boxplots with same colors forrectanglesandumbrellas and filled boxes

2014-02-16 Thread Richard M. Heiberger
The next version of HH (3.0-3) is now out (at this instant source and Windows are at cran.r-project.org, it will be everywhere in a day or so). The new function panel.bwplot.superpose does everything we have discussed in this email thread, and a bit more. See the example(panel.bwplot.superpose) f

Re: [R] Lattice Barchart

2014-02-16 Thread Richard M. Heiberger
Pete, Thank you for this example. I recommend using the likert function in the HH package. d2 <- structure(c(1000, 2000, 2500, 5000, 1000, 2000, 3000, 2000, 200, 600, 1000, 900), .Dim = c(4L, 3L), .Dimnames = list(c("1/1/2014", "2/1/2014", "3/1/2014", "4/1/2014"), c("A", "B", "C"))) d2 likert

Re: [R] trouble using sapply to perform multiple t-test

2014-02-16 Thread David Romano
Thanks Arun and Jim; this helps me sort out several points I hadn't been aware of! -David On Sat, Feb 15, 2014 at 1:39 PM, arun wrote: > > > Hi David, > Try: > Check the output of: > lapply(mm,function(x) x) #mm is matrix > #and > lapply(as.data.frame(mm),function(x) x) > > > > > sapply(spl

Re: [R] Extracting everything between two symbols in a string

2014-02-16 Thread Rui Barradas
Hello, Try the following. x <- "Braund, Mr. Owen Harris" sub("^.*, (M[[:alpha:]]*)\\..*$", "\\1", x) Hope this helps, Rui Barradas Em 16-02-2014 12:50, Gianluca Rossi escreveu: Hello, I have a vector containing some names. I want to extract the title on every row, basically everything betw

Re: [R] amqp_connection:open_channel link channel

2014-02-16 Thread Jeff Newmiller
I am mystified. Your question lacks any context... it is at best off-topic in R-help. The syntax you show does not seem related to R, and if you were to discuss AMQP as it relates to R then I suspect you would need to post in R-devel. -

[R] HCLUSTER

2014-02-16 Thread Katia Freire
Dear all, I am a beginner in R and I am trying to organize my dendrogram in a better order to vizualize our data better. I am joining months based on the occurrence of spawning of species and would like the plot in order of months: Nov-Dec, Jan-Feb-Mar and then Apr-May-Jun Jul-Aug Sept-Oct Is

[R] Extracting everything between two symbols in a string

2014-02-16 Thread Gianluca Rossi
Hello, I have a vector containing some names. I want to extract the title on every row, basically everything between the ", " (included the white space) and "." > head(combi$Name) [1] "Braund, Mr. Owen Harris" [2] "Cumings, Mrs. John Bradley (Florence Briggs Thayer)" [3] "Heik

Re: [R] Lattice Barchart

2014-02-16 Thread Pete Brecknock
Pete Brecknock wrote > Hi > > The code below plots a stacked barchart. > > I would like to overlay on this chart a circular plotting character at the > sum of the bars for each month. The plotted characters should be joined > with a line. > > So, for "1/1/2014", I would like to see a point at 2

[R] amqp_connection:open_channel link channel

2014-02-16 Thread Matwey V. Kornilov
Hi, Is it a good practice to link the channel to the process going to consume the messages? I do want to close the channel when my consumer crashed, and let the broker to redeliver unacked message. {ok, Channel} = amqp_connection:open_channel(Connection), link(Channel), Why there is no open

Re: [R] need help to convert in to panel data format

2014-02-16 Thread Bert Gunter
1. Do not post in HTML -- it gets filtered out or scrambled (although we could probably figure it out anyway if we were so inclined. I am not.). See ?dput to see how to copy and paste in a text format that we can use to easily reconstruct your data structure. 2. You will probably have to more clea

[R] need help to convert in to panel data format

2014-02-16 Thread Ramesh Chandra Das
Dear All, The data format is like this Company 2001 2001 2001 2002 2002 2002 2003 2003 2003 2004 2004 2004 3M India Ltd. 1160.2 2082.7 67.1 1094.3 1069.9 221.6 1160.2 2082.7 67.1 1094.3 1069.9 221.6 A B B India Ltd. 7758 7932.8 698.2 7205.4 7617.3 1272.5 7758 7932.8 698.2 7205.4 7617.3 1272.5

Re: [R] interaction.plot for continuous variables

2014-02-16 Thread John Fox
Dear Carol, See Effect(), effect(), and allEffects() in the effects package. I hope this helps, John > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of carol white > Sent: February-16-14 8:35 AM > To: r-h...@stat.math.ethz.ch >

[R] interaction.plot for continuous variables

2014-02-16 Thread carol white
Hi, Since factor variables should be used with interaction.plot, which function can be used to illustrate interactions between continuous variables? Regards, Carol [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

[R] merge two forest plot in one graph with meta package

2014-02-16 Thread Mario Petretta
Dear all I use meta package to generate two forest plots. It is possible to merge the two forest plot in one graph side by side? I try (as an example): par(mfrow=c(1,2)) forest(metaCMD, fontsize=12, squaresize=0.6, just.studlab="left", leftcols="studlab") forest(metaCMD, fontsize=12,