[R] Solved: confusion with write.csv

2020-06-04 Thread Erin Hodgess
Change over to write.table. Sorry for the wasted bandwidth. Thanks, Erin Erin Hodgess, PhD mailto: erinm.hodg...@gmail.com [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.

[R] SOLVED: passing reference class method within the class as an argument

2019-12-05 Thread Eric Berger
Here is the modified code of the reproducible example I sent previously. Notice the .self$ prefix to funcB which is what has changed foo <- setRefClass("foo", fields=list(x="numeric"), methods=list( initialize=function(a) {

[R] [Solved] Re: Help with if else branching print out

2018-12-18 Thread Andrew
Dear Eric, Ivan & Rui Thanks all for your suggestions. FWIW, I've opted to use paste0 and after a bit of playing around found it formatted the output nicely. Eric, I wasn't aware of sprintf - seems a handy function to format text with, so will try to remember that. Ivan, I'll dig into 'messa

[R] Solved: RE: xtable does not print out units of a variable

2018-07-19 Thread Shawn Way
Jeff, John, Thanks for pointing out the information. I found that the following works: New function for deparsing the data: deparse_unit_latex <- function(x,frac=TRUE,xtable.frac=FALSE) { stopifnot(inherits(x, "units")) u = units(x) tn = table(u$numerator) nm1 = names(tn)

[R] SOLVED: inadverted reordering of a df column when it is copied to another df

2017-03-17 Thread Karl Schilling
Dear All: it seems I have solved my reordering issue, and to thank all those who answered, I briefly list the mistake I made. I stared out from some data.frame holding values x and a grouping factor. Actually, my factor was a number (but not numeric) which was, however, not ordered. So it w

[R] SOLVED: Re: Source into a specified environment

2017-01-09 Thread G . Maubach
Hi Jim, many thanks for your answer. That's exactly what I need. Many thanks again. Kind regards Georg Von:jim holtman An: g.maub...@weinwolf.de, Kopie: R mailing list Datum: 10.01.2017 03:59 Betreff:Re: [R] Source into a specified environment ?sys.source Here is a

[R] (Solved] Re: pubmed.mineR

2016-08-05 Thread David Winsemius
> On Aug 4, 2016, at 9:52 PM, Mehdi Najafi wrote: > > -- Forwarded message -- > From: Mehdi Najafi > Date: Fri, Aug 5, 2016 at 9:17 AM > Subject: pubmed.mineR > To: r...@igib.in > > > Hi dear helper, it has been a pleasure to read magnificat paper titled > "pubmed.mineR: An R

Re: [R] Solved: Communication in for() loop (Linux version)

2016-04-17 Thread Bert Gunter
I am not exactly sure what YOU mean by a "multidimensional array," but I do know what R means: all elements must be the same mode (e.g all numeric, all character, etc.) . See ?array for how to do this in R if this accords with what you want to do. BTW, searching rseek.org, google, and/or using the

[R] Solved: Communication in for() loop (Linux version)

2016-04-17 Thread Robert D. Bowers
Thanks for the advice I've received. FYI - It turns out that the problem was connected to the way R handles pipes and FIFOs, compared to the way the socat command does. (I don't know exactly what, but trying different things solved it!) I found that if you use FIFO() in R AND set up a FIFO c

Re: [R] SOLVED: Repeated failures to install "caret" package (of Max Kuhn)

2015-04-14 Thread Eshwar
Thanks so much. I was struggling to install caret package on my upgraded R. It was failing to compile lme4 and threw up an error about llapack and lbas. I never realized that I needed to install lbas(I already had llapack) through SPM. Once I did that, I could install caret using install.packages

[R] SOLVED: Repeated failures to install "caret" package (of Max Kuhn)

2015-04-04 Thread Ronald Wyllys
These are notes on what I did to be able to install package "caret". 0.The initial action was to re-install R v. 3.1.3 from this source file: r-base-core_3.1.3-1trusty_amd64.deb (available on CRAN Mirrors). This is the source file for Ubuntu 14.04, known as "trusty", upon which LinuxMint 1

[R] Solved: Re: text miner error: Error in UseMethod("meta", x)

2015-02-26 Thread Sun Shine
Hi list Closing this one off myself, this is what I did: The error seems to concern the update of tm to version 0.6: the conversion to lower case text should now be: > docs <- tm_map(docs, content_transformer(tolower)) Everything else seems to work fine thereafter. The issue in the tutorial

Re: [R] SOLVED: evaluate NA to FALSE instead of NA?

2014-10-14 Thread S Ellison
> Thanks Joshua and Sven - I completely forgot about which() . Also na.omit(p[p<=0.05]) #and p[p<=0.05 & !is.na(p)] S. *** This email and any attachments are confidential. Any use...{{dropped:8}}

[R] SOLVED: evaluate NA to FALSE instead of NA?

2014-10-14 Thread Rainer M Krug
Thanks Joshua and Sven - I completely forgot about which() . Pascal - I never new about complete.cases - interesting function. Thanks, Rainer Rainer M Krug writes: > Hi > > I want to evaluate NA and NaN to FALSE (for indexing) so I would like to > have the result as indicated here: > > ,--

Re: [R] [SOLVED -- my fault] png-generation from script (non-X11 env) now broken?

2014-02-25 Thread David Wolfskill
On Tue, Feb 25, 2014 at 10:36:29AM -0800, David Wolfskill wrote: > ... > This morning, I found a message in my mailbox from such a preview run: > > | Error in .External2(C_X11, paste("png::", filename, sep = ""), g$width, : > | unable to start device PNG > | Calls: gen_build_histogram -> png >

Re: [R] SOLVED: Count number of consecutive zeros by group

2013-11-11 Thread Carlos Nasher
Thanks to all of you. All solutions work fine. I'm running S Ellisons version with Williams comment. Perfect for what I'm doing. And sorry for using a name same as a base R function (twice) ;-) Cheers, Carlos 2013/11/1 PIKAL Petr > Hi > > Yes you are right. This gives number of zeroes not max

Re: [R] [SOLVED] Problem building R-2.15.3 from source

2013-07-10 Thread Prof Brian Ripley
On 11/07/2013 06:44, Pascal Oettli wrote: Hello, Maybe the reason why: http://www.cran.r-project.org/doc/manuals/R-admin.html#Compilation-flags And since this is a ix86 system, you really should be using -mtune=native. I do not believe the default in 2.15.3 was -O3: it is not in current R,

Re: [R] [SOLVED] Problem building R-2.15.3 from source

2013-07-10 Thread Pascal Oettli
Hello, Maybe the reason why: http://www.cran.r-project.org/doc/manuals/R-admin.html#Compilation-flags Regards, Pascal 2013/7/11 Mark Dalphin > I have found a solution to the repeated seg-faults below. > > If I set environment variables: >setenv CFLAGS -O2 >setenv FFLAGS -O2 > rather

Re: [R] [SOLVED] Problem building R-2.15.3 from source

2013-07-10 Thread Mark Dalphin
I have found a solution to the repeated seg-faults below. If I set environment variables: setenv CFLAGS -O2 setenv FFLAGS -O2 rather than the default -O3, then R builds and "checks" successfully. A few more details about the Debian system on which I have been building: gcc (Debian 4.7.

[R] [SOLVED] Re: "Error: cannot allocate vector of size 1.9 Gb" when loading xtable help

2013-06-20 Thread Dan Keshet
Solved on my end. Turned out to be caused by cyclic dependencies in our (internal) packages. Attempts to install/load them all caused wonky things to happen later on. On Sat, Jun 15, 2013 at 6:18 AM, Duncan Murdoch wrote: > On 13-06-14 7:02 PM, Dan Keshet wrote: >> >> I am using xtable version

Re: [R] (SOLVED) Problem with inconsolata font (again) --- on Fedora 17 this time.

2013-01-11 Thread Rolf Turner
Thanks to everyone who responded to my cri de coeur. For the record, the solution to the problem was (in short) to do: sudo yum install texlive sudo yum install tex-inconsolata.noarch sudo yum install texlive-collection-fontsrecommended the last bit being the part that got me over one last hum

Re: [R] [solved] t-test behavior given that the null hypothesis is true

2013-01-09 Thread Pavlos Pavlidis
Hi Ted, yes this was the problem. Thank you very much. best idaios On Wed, Jan 9, 2013 at 4:51 PM, Ted Harding wrote: > Ah! You have aqssigned a parameter "equal.var=TRUE", and "equal.var" > is not a listed paramater for t.test() -- see ?t.test : > > t.test(x, y = NULL, > alternative = c(

[R] Solved Re: Garbage collection problem

2013-01-03 Thread Peter Langfelder
Thanks for your reply, Duncan - you hit the nail on the head (as usual, the problem turned out to sit between the keyboard and the chair :)). My function does return regression models that contain the input formulae together with the associated (big) environment. Peter On Thu, Jan 3, 2013 at 4:4

[R] [solved!] [lattice] how to overlay a geographical map on a levelplot?

2012-11-20 Thread Tom Roche
https://stat.ethz.ch/pipermail/r-sig-geo/2012-November/016757.html >> summary: How to overlay a geographical map on each panel in a lattice >> (or Trellis), e.g., of levelplot's? https://stat.ethz.ch/pipermail/r-help/2012-November/329716.html > you need to launch the library 'latticeExtra' That'

Re: [R] [solved!] Re: [lattice] format and rotation of strip text

2012-11-20 Thread David Winsemius
On Nov 20, 2012, at 10:24 AM, Tom Roche wrote: > > https://stat.ethz.ch/pipermail/r-help/2012-November/329509.html >>> - without the line above commented out, strip values are (correctly) >typo, should be "incorrectly" ^ >>> all 1.123 > >>> + with the

[R] [solved!] Re: [lattice] format and rotation of strip text

2012-11-20 Thread Tom Roche
https://stat.ethz.ch/pipermail/r-help/2012-November/329509.html >> - without the line above commented out, strip values are (correctly) typo, should be "incorrectly" ^ >>all 1.123 >> + with the line above commented out, strip values are (correctly) >>

[R] Solved!! ( Dummy Variable : Doubt )

2012-09-20 Thread Eva Prieto Castro
Hi, Finally I could resolve. I understood how you can use dummy variables in lm(). Thanks! Eva --- El jue, 20/9/12, Eva Prieto Castro escribió: De: Eva Prieto Castro Asunto: Re: Dummy Variable : Doubt Para: R-help@r-project.org Fecha: jueves, 20 de septiembre, 2012 11:27 Sorry, I could wri

Re: [R] [SOLVED] Accessing named members of a list in an array

2012-07-01 Thread Duncan Murdoch
On 12-07-01 12:01 PM, mlell08 wrote: After all, it seems a bit unlogical to me, because 1) c(a=2, b=3)$a works as expected I'm curious about this: I get an error. I expected an error, so it worked as expected for me, but I think from the context that I deleted that you didn't expect one.

Re: [R] [SOLVED] Accessing named members of a list in an array

2012-07-01 Thread Jeff Newmiller
And when you get tired of waiting for your elegant solution to finish, you can go back and convert to vectors or 3d arrays. Lists are good for building structures, but not particularly good for computation. --- Jeff Newmille

[R] [SOLVED] Accessing named members of a list in an array

2012-07-01 Thread mlell08
> > You thought wrong (on two accounts as it happens). The "$" methods > translate to "[[" with a quoted argument and there is no > matrix/array equivalent since vectors loose their names (if they > had any to begin with) when they are put into a matrix or array. > The equivalent method to x$a i

Re: [R] inverse binomial in R[solved]

2012-06-19 Thread anna freni sterrantino
Hello Peter, Duncan, Dan and RList! How I suspected... I managed to do the  "homework" and forced invbinomal to return zero ( as in Stata) once that k==n. Thank you for all you replies! Cheers Anna Da: peter dalgaard Cc: Duncan Murdoch ; Rcran help Inviat

Re: [R] Sliding Window in R (solved)

2012-03-03 Thread William Dunlap
m: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of Alaios > Sent: Saturday, March 03, 2012 2:30 PM > To: R help > Subject: [R] Sliding Window in R (solved) > > Dear all, > you can find below my solution for sliding a window. Please find

[R] Sliding Window in R (solved)

2012-03-03 Thread Alaios
Dear all, you can find below my solution for sliding a window. Please find below the code for the two alternatives and the benchmarks.     install.packages('caTools') require(caTools) do_sliding_for_a_window_duty_cycle <- function(DataToAnalyse,  windowSize) {   data<-DataToAnalyse   out <- nume

[R] Solved: RE: help filtering points from a scatterplot

2012-02-24 Thread Vining, Kelly
Thanks again for your help. I did indeed solve the problem by plotting the initial graph as type='n', then adding my subset of points using 'points'. Cheers, --Kelly V. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Dallas Sent:

Re: [R] [solved] littler: Use for batch processing of data sets: How to pass filename?

2011-12-12 Thread Paul Menzel
Am Montag, den 12.12.2011, 09:41 -0500 schrieb R. Michael Weylandt : > Why can't you just replace "temp/data" with filename (no quotes)? I'm not > sure I get the question... … no I am feeling silly and I do not know where I screwed up before. Here is the full working example. #!/usr/bin/

[R] SOLVED, Re: lists everywhere

2011-12-05 Thread Kehl Dániel
nevermind, typo (and some gray hair) sorry 12/5/2011 8:21 PM keltezéssel, Kehl Dániel írta: Dear list members, I have a really simple problem. I connected to a DB and have the following query adat <- dbGetQuery(con, paste("select * from kmdata where SzeAZ='", szeazok[i], "' order by datum",

Re: [R] [SOLVED]looking for beta parameters

2011-11-29 Thread Kehl Dániel
I managed to solve the problem myself without using this code. thx 2011-11-24 12:26 keltezéssel, Kehl Dániel írta: > Dear Community, > > I am trying to write code for the following problem. > Lets assume we have a beta distribution. > I know one quantile, lets say, 10% of the mass lies above .8,

Re: [R] SOLVED Legend symbols (line, points) in one column.

2011-10-17 Thread Kenneth Roy Cabrera Torres
Thank you very much for your answer. It works just as I want!. Kenneth El sáb, 15-10-2011 a las 20:39 +0530, Deepayan Sarkar escribió: > On Fri, Oct 14, 2011 at 10:02 AM, David Winsemius > wrote: > > Legends are built in columns. You need to find a graphics symbol to put in > > the "points" col

Re: [R] [Solved] Re: lavaan: how to analyse residuals of a latent variable

2011-08-10 Thread yrosseel
Maybe this kind of usage of lavaan is not very common, but in order to help others in my situation, is this documented somewhere? My understanding of latent variable analysis is indeed limited, but I did not understand that lavaan worked liked this when I read the documentation. This is not sp

[R] [Solved] Re: lavaan: how to analyse residuals of a latent variable

2011-08-09 Thread Hans Ekbrand
On Tue, Aug 09, 2011 at 03:30:17PM +0200, yrosseel wrote: > > >Can I include criminality among those and thereby get the common part > >of criminality and fire.setting "out of the way"? > > No. You already regress fire.setting on criminality since it is an > indicator in the measurement model of

Re: [R] [solved] How to count numbers of a vector and use them as index values?

2011-07-31 Thread Paul Menzel
Am Sonntag, den 31.07.2011, 15:19 -0700 schrieb Jeffrey Dick: > Here's an attempt using sapply: > > > x <- c(2, 2, 3, 3, 4, 6) > > ys <- 1:8 > > sapply(ys, function(y) { length(which(x==y)) } ) > [1] 0 2 2 1 0 1 0 0 The last piece for my trials missing was `sapply()` which I overlooked reading `?

Re: [R] [solved] How to count numbers of a vector and use them as index values?

2011-07-31 Thread Paul Menzel
Dear Sarah, Am Sonntag, den 31.07.2011, 18:10 -0400 schrieb Sarah Goslee: > I would use something like this: > > > x <- c(2,2,3,3,4,6) > > table(x) > x > 2 3 4 6 > 2 2 1 1 > > x <- factor(x, levels=1:8) > > table(x) > x > 1 2 3 4 5 6 7 8 > 0 2 2 1 0 1 0 0 awesome. Thank you. Looking further I

Re: [R] [solved] scripting/littler: How to call function named iteratively (`f1`, `f2`, …)?

2011-07-30 Thread Paul Menzel
Am Freitag, den 29.07.2011, 15:28 +0200 schrieb Paul Menzel: > wanting to compare different implementations of a solution I want to > script it to iterate over the different implementations. Is there a way > to do this in the R shell/command line? > > $ more /tmp/iterf.r > f1 <- f

Re: [R] [solved] scripting/littler: How to call function named iteratively (`f1`, `f2`, …)?

2011-07-29 Thread Paul Menzel
Dear Eik, Am Freitag, den 29.07.2011, 15:46 +0200 schrieb Eik Vettorazzi: > how about this > for (i in 1:2) { print( do.call(paste("f",i,sep=""),list(2, 3) )) } > > or using get > for (i in 1:2) { print( get(paste("f",i,sep=""))(2, 3) ) } works great for me. Thank you very much. Regarding searc

Re: [R] [solved] How to search for R related topics in search engines?

2011-07-27 Thread Paul Menzel
Am Mittwoch, den 27.07.2011, 14:36 -0400 schrieb David Winsemius: > On Jul 27, 2011, at 10:12 AM, Paul Menzel wrote: > > I am having problems getting good results when searching for R related > > topics, that means I have not found out yet what keywords I should use > > to get only relevant result

Re: [R] SOLVED: superimposing different plot types in lattice panel.superpose

2011-07-04 Thread genghis
Thank you very much Dennis, that's wonderful. I tried it first without LatticeExtra and it didn't work, so yes that package is the key. Best, John -- View this message in context: http://r.789695.n4.nabble.com/superimposing-different-plot-types-in-lattice-panel-superpose-tp3642808p3644145.ht

Re: [R] [SOLVED] Only one strip with italic font.

2011-06-26 Thread Kenneth Roy Cabrera Torres
Thank you very much! That was exactly what I need! The answer was not obvious as I thought. El dom, 26-06-2011 a las 14:36 -0700, Peter Ehlers escribió: > On 2011-06-26 11:33, Kenneth Roy Cabrera Torres wrote: > > Hi R users: > > > > How can I obtain an italic font only > > for one of the two st

Re: [R] [SOLVED] Italic fontfaces on specific labels.

2011-06-22 Thread Kenneth Roy Cabrera Torres
Thank you for your help... It works very well! El mar, 21-06-2011 a las 20:03 -0700, Bert Gunter escribió: > ?strip.default __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-p

Re: [R] [SOLVED] loop question

2011-04-14 Thread Thomas
Many thanks for all the quick replies... On 14/04/2011 13:37, Hao Wu wrote: > you can use this instead, apply(g*h,1,sum) > > On Thu, Apr 14, 2011 at 7:28 PM, Thomas > wrote: > > Dear all, > > I am trying to implement the following in a loop: > g <- c

Re: [R] [SOLVED] dotplot as a background for multiple barchart plots (with Lattice)

2011-04-08 Thread Christian Charles
Thanks, The first literal solution does not do what I want: the 'meanplot' was not a background but a smaller object in the middle of the barcharts. The second solution is exactly what I want. I just changed the plotting order and the global ylim in order to have a better plot. Thanks for you

Re: [R] [SOLVED] Two functions as parametrs of a function.

2011-04-07 Thread David Winsemius
On Apr 7, 2011, at 10:47 AM, Duncan Murdoch wrote: And then there's the source code, but if the manuals are unclear, it may be no clearer. -- Duncan Murdoch ... after citing the the usual suspects. R-help (April 2011) Fortune candidate? -- David Winsemius, MD West Hartford, CT

Re: [R] [SOLVED] Two functions as parametrs of a function.

2011-04-07 Thread Duncan Murdoch
On 07/04/2011 10:12 AM, KENNETH R CABRERA wrote: Dr. Murdoch: Thank you very much for your help. Where can I find a more systematic documentation about these topics? I mean, examples of "do.call", environments, "as.function", the scoping and the way understand when to use "force", etc. For d

[R] [SOLVED] Two functions as parametrs of a function.

2011-04-07 Thread KENNETH R CABRERA
Dr. Murdoch: Thank you very much for your help. Where can I find a more systematic documentation about these topics? I mean, examples of "do.call", environments, "as.function", the scoping and the way understand when to use "force", etc. Again, thank you. Kenneth - Mensaje original -

[R] [SOLVED] Two functions as parametrs of a function.

2011-04-07 Thread KENNETH R CABRERA
Dr Dallazuanna: Thank you for your help. It works very good! - Mensaje original - De: Henrique Dallazuanna Fecha: Jueves, 7 de Abril de 2011, 7:05 am Asunto: Re: [R] Two functions as parametrs of a function. A: Kenneth Roy Cabrera Torres CC: r-help > Try this: > > f2 <- function(n,

[R] [SOLVED] Re: Use of the dot.dot.dot option in functions.

2011-04-06 Thread KENNETH R CABRERA
Thank you very much for your help. It works very well! Still, it is not very clear why the "replicate" function do not take the "..." arguments like they should. - Mensaje original - De: Duncan Murdoch Fecha: Miércoles, 6 de Abril de 2011, 11:56 am Asunto: Re: [R] Use of the dot.dot.dot

[R] SOLVED: How to change size of xlab inplot?

2011-02-01 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/01/2011 12:12 PM, Henrique Dallazuanna wrote: > Try cex.lab: > > plot(1,1, xlab="Label", cex.lab = 2) Thanks - that is what I was looking for. Cheers, Rainer > > On Tue, Feb 1, 2011 at 7:31 AM, Rainer M Krug > wr

[R] SOLVED: specific fourier call

2011-01-31 Thread Jari Soininen
Hi David, Thanks for reply. It really was the fda library. Best Wishes, Jari Lainaus Jari Soininen : Hi all, This is very embarrassment, but I have used some years ago this type of function call: " Arima(trend + max(seasonal), order=c(2,0,1), xreg=fourier(1:n,c*2,m))" Unfortunately,

[R] Solved : RE: problem installing R on ubuntu

2011-01-06 Thread Horace Tso
This question of mine is now solved, thanks to a suggestion by Homer Strong, the organizer of the R user group in Portland, Oregon. The "unmet dependencies" as reported by install was caused by an incorrect entry in /etc/apt/sources.list. Previously I had deb http:///bin/linux/ubuntu hardy/

Re: [R] [SOLVED] Re: Install Error

2010-10-28 Thread Johannes Graumann
Johannes Graumann wrote: > Johannes Graumann wrote: > >> Hi, >> >> I'm running into the error below when doing "R CMD INSTALL >> MyPackage.tar.gz". This didn't use to be this way and I am at a loss as >> to where this might be coming from. Any pointers where to look? >> >> Joh >> >> ** buildin

[R] [SOLVED] Re: Install Error

2010-10-28 Thread Johannes Graumann
Johannes Graumann wrote: > Hi, > > I'm running into the error below when doing "R CMD INSTALL > MyPackage.tar.gz". This didn't use to be this way and I am at a loss as to > where this might be coming from. Any pointers where to look? > > Joh > > ** building package indices ... > Error in scan(f

[R] [SOLVED] Re: Strange glm(, quasipoisson) error

2010-10-18 Thread Wil M Contreras Arbaje
Hi everyone, Please ignore my previous message: it turns out Excel, when saving as .csv, was somehow storing numerical values as text, and that was causing the error. I opened the .csv, changed all observations to --> Number type, and it worked w/o a hitch afterwards. Thanks, Wil On O

Re: [R] SOLVED boxplot knowing Q1, Q3, median, upper and lower whisker value

2010-09-13 Thread David A.
Thank you all for your comments. The bxp() function does the trick well! > Subject: RE: [R] boxplot knowing Q1, Q3, median,upper and lower whisker value > Date: Fri, 10 Sep 2010 11:00:06 -0700 > From: wdun...@tibco.com > To: dig...@ohsu.edu; dasol...@hotmail.com > CC: r-help@r-project.org > >

[R] solved Re: online documentation only?

2010-08-31 Thread Bob McCall
The problem was I needed to "connect" even though I was offline and couldn't get online. In this case, "connect" apparently means to start the loopback device. After doing this, the docs work! Must be a quirk of win 7. Thanks for all the replies. Bob -- View this message in context: http://r

Re: [R] [solved] Weird differing results when using the Wilcoxon-test

2010-08-18 Thread Cedric Laczny
By using the help page for wilcox.test and looking in the there-mentioned book (Hollander and Wolfe), I could find the formula also in the book. People that might run into the same problem: The formula can also be found here, at least if you have access to it via your university or insitution, or

Re: [R] [SOLVED] read.table input array

2010-07-19 Thread Balpo
Thank you a lot, Jim. Issue solved. Balpo On 16/07/10 11:27, jim holtman wrote: Here is a way of creating a separate list of variable length vectors that you can use in your processing: # read into a dataframe x<- read.table(textConnection("ABCTLengths + 14.00.001525

Re: [R] SOLVED - export tables to excel files on multiple sheets with titles for each table

2010-07-17 Thread eugen pircalabelu
Hello R-users, I was able using RExcel and the VBA script offered by Eric Neuwirth (modifying it a little bit) to import dataframes on separate Excel sheets, each with its own particular title. As such the problem is solved. Thank you all for your suggestions. Have a nice day ahead! Eugen

[R] Solved: Input encoding problem when using sweave with xetex

2010-05-13 Thread Erich Studerus
With the kind help of Duncan Murdoch, I finally managed to correctly compile LyX-Sweave documents with XeTeX under Windows. In case someone else is struggling with a similar problem in the future, here is a small summary of what worked for me. I assume that you have already set up Lyx to work

Re: [R] SOLVED plotting multiple CIs

2010-04-30 Thread Ista Zahn
Glad you got it working! By "true value" do you mean the means? If so: library(ggplot2) data(mtcars) p <- ggplot(mtcars, aes(x=cyl, y=mpg)) p + stat_summary(fun.data = "mean_cl_boot", colour = "red", geom = "errorbar") + stat_summary(fun.data = "mean_cl_normal", colour = "blue", geom = "errorb

Re: [R] SOLVED plotting multiple CIs

2010-04-30 Thread Giovanni Azua
Hello, After installing gfortran from http://r.research.att.com/gfortran-4.2.3.dmg it finally works! see below. Thank you all. @Ista Zahn: Looks fantastic! :) thank you so much! ... is there a way to have a small circle on the true value? Best regards, Giovanni > install.packages("Hmisc", d

[R] Solved: DCA and centroid analysis in Vegan

2010-04-19 Thread yangfan1
 Sorry guys,  I just have it figured out. But thanks anyway. Fan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/po

Re: [R] [SOLVED] file reading /problems with encoding

2010-03-03 Thread T . Wunder
After 1 day searching the internet, I solved the problem with the following code: Encode(xml) <- "UTF-8" # now the ü etc. become ü,etc. gsub("ü","Ä",xml) # employ the gsub()-function WITHOUT useBytes-option turned on Encode(xml) <- "unknwon" # that was the former encoding So all in all t

[R] [SOLVED] RMySQL, Sweave and the annoying TRUE echo

2010-01-29 Thread Stefan Petersson
S: Works! Thanx... 2010-01-29 Henrique Dallazuanna wrote: Try this: > >invisible(mysqlCloseConnection(con)) > >On Fri, Jan 29, 2010 at 9:10 AM, Stefan Petersson > wrote: >> >> Hi, >> >> A small (but annoying) problem with RMySQL library. When a connection is >> closed, it echoes 'TRUE' to th

[R] (Solved) Problems completely reading in a "large" sized data set

2010-01-20 Thread Robin Jeffries
I'm not quite sure why, but reading in the *sorted* data (imported into Excel, sorted, written to a text file) worked perfectly fine with read.delim(). Thanks to those that replied! -Robin [[alternative HTML version deleted]] __ R-help@r-proj

[R] [Solved][Code Snippets] Dropping Empty Regressors

2010-01-12 Thread Idgarad
To make a long story short I was doing some in-sample testing in which some dynamically created regressors would end up either all true or all false based on the validation portion. In my case a new mainframe configuration (this is a crappy way to handle a level shift but I do what I can.) So here

[R] Solved problems with randomSurvivalForest

2009-10-21 Thread giovanni parrinello
Only a confusion with two dataset with similar names... Sorry Giovanni [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.o

Re: [R] SOLVED: Lattice: How to do error bars

2009-08-13 Thread Deepayan Sarkar
On Wed, Aug 12, 2009 at 7:19 AM, wrote: > Thank you Gerrit, > > Your suggestion proved right after all: > > This does put error bars (dy) on the points. You only need to figure out > the proper y axis scaling. > >> xyplot(y~x|f,data=xy,groups=dy,panel=function(x,y,groups,subscripts,...) > {panel.x

[R] SOLVED: Lattice: How to do error bars

2009-08-12 Thread amvds
Thank you Gerrit, Your suggestion proved right after all: This does put error bars (dy) on the points. You only need to figure out the proper y axis scaling. > xyplot(y~x|f,data=xy,groups=dy,panel=function(x,y,groups,subscripts,...) {panel.xyplot(x,y,...) ;panel.segments(x,y+groups[subscripts],x

Re: [R] [SOLVED] utf8 encoding and postscript

2009-08-11 Thread Alexandros Droseltis
On Tue, Aug 11, 2009 at 08:46 +0200, Alexandros Droseltis wrote: > I wrote a script file with the following commands > > postscript() > [...] > barplot(pr, xlab="Länge") > > In the output file (Rplots.ps) the german umlaut is printed as "L..nge". > How could I set the encoding correctly? I found

Re: [R] SOLVED: how to evaluate character vector within pnorm()

2009-07-17 Thread Thomas Roth (geb. Kaliwe)
That what i was looking for :-) bill.venab...@csiro.au schrieb: Here is one way: x <- c(2,3) names(x) <- c("mean", "sd") do.call(pnorm, c(list(0), as.list(x))) Bill Venables http://www.cmis.csiro.au/bill.venables/ -Original Message- From: r-help-boun...@r-project.org [mailto

Re: [R] SOLVED: how to check if ... is empty

2009-07-16 Thread Thomas Roth (geb. Kaliwe)
Thank you both. Thomas Dimitris Rizopoulos schrieb: one way is: test <- function(x, y, ...) { dots <- list(...) if (length(dots)) cat("\nnon-empty\n") else cat("\nempty\n") } test(1, 1) test(1, 1, 1) I hope it helps. Best, Dimitris Thomas Roth (geb. Kaliwe) wrote: Hi, I was won

[R] [SOLVED] Sweave:Figures from plot (LME output) not getting generated (pdf or eps)

2009-06-01 Thread Girish A.R.
Hi, My problem has been solved. Thanks to Renaud Lancelot! Solution pasted below: - Plotting functions in package nlme are built using functions of package lattice. You need to print() the result: <>= print(plot(fm1, distance ~ fitt

[R] SOLVED: Re: Changing gird marks in ggplot2

2009-04-24 Thread Christopher David Desjardins
i solved this thanks On Fri, 2009-04-24 at 23:51 -0500, Christopher Desjardins wrote: > Hi, > When I zoom into a graph created in ggplot2 with the > coord_cartesian(ylim=c(0,5)) option, I have no values labelled on my > y-axis. For this graph ggplot2 only puts labels the y-axis at > intervals of 1

[R] (SOLVED) Re: [tcl] unknown color name "red" errors

2009-04-04 Thread Ken-JP
On the boards for Ubuntu 8.10 64-bit, there were comments along the lines that: /etc/X11/rgb.txt was missing. However, even after I replace this file, and logged back out in, this problem went away. It's shocking that a file as old/basic as /etc/X11/rgb.txt can be removed - I'm sure a lot of

[R] Solved: [Fwd: Matching failure in merge()]

2009-03-21 Thread Agustin Lobo
I've found where the problem was and a way to solve this problem: One dataset was encoded (and read) as UTF-8 and the other one was encoded (en read) as latin3 In this case, even if at the terminal you see the same characters, R states that the two elements are not equal. Don't know if this is th

[R] [solved] How to combine xtable and minipage with Sweave ?

2009-03-16 Thread Ptit_Bleu
Thanks to you all (and a bit to some websites dedicated to latex), I finally managed to have a table and a graph side-by-side !!! I'm not sure it will interested people, but here is the script working for me (before the graph was below the table only because I have an empty line between the 2 mi

[R] [solved, please disregard] FW: how to pass a command variable in DOS to R program in R CMD BATCH

2009-03-02 Thread Xianming Wei
Regards, Xianming From: Xianming Wei Sent: Tuesday, 3 March 2009 9:22 AM To: 'r-help@r-project.org' Subject: how to pass a command variable in DOS to R program in R CMD BATCH Hi all, I need to run a program (asreml) thousands of times and each time I have to provide a slightly d

[R] SOLVED: loading lme4 fails - "function 'cholmod_l_start' not provided by package 'Matrix'"

2009-02-04 Thread Megan Davies
Thanks Thierry and the Prof, Removing the files and then reloading them seems to have done the trick. I don't understand why it worked, but it did. Megan Megan Davies Policy and Advice Officer, Statistician Scottish Natural Heritage 01463 725072 >>> "ONKELINX, Thierry" 04-02-2009 12:40 >>> M

[R] [solved] sapply and median, possible or not ?

2008-11-07 Thread Ptit_Bleu
Thanks a lot Keith : your function does the job (but I don't understand the trick) ! Have a nice week-end (Thanks to you, I can have a good one :-)), Ptit Bleu. - median.data.frame <- function(x, ...) sapply(x, median, ...) I haven't tried it, but it might work hth Keith

Re: [R] [Solved] Re: Sweave from Kile

2008-10-14 Thread Gorjanc Gregor
Hi Matthieu! I am glad you solved your problem. > Now I can compile direct from Kile! The only problem is that the command > -ld only create the pdf, does not open it. Maybe are there other options > from Script File of Gregor Gorjanc to compile with pdflatex (texi2dvi > did not work) and open bu

[R] [Solved] Re: Sweave from Kile

2008-10-13 Thread Matthieu Stigler
Thanks to the help of Gregor Gorjanc I could solve the problem: 1: With the command sudo chmod a+x /usr/local/bin/Sweave.sh I had only ls -l /usr/local/bin/Sweave.sh -rwxr-x--x 1 root root 29997 2008-10-11 15:42 /usr/local/bin/Sweave.sh So I added sudo chmod o+r /usr/local/bin/Sweave.sh

Re: [R] [SOLVED] barchart for aggregated (sum) data in lattice?

2008-10-05 Thread hadley wickham
You can also do it with ggplot2: install.packages("ggplot2") library(ggplot2) qplot(month, weight = amount, fill = what, data=t1, geom="bar") You can find out more at http://had.co.nz/ggplot2 (And you probably want to set the levels of the months so they don't appear in alphabetical order) Had

Re: [R] [SOLVED] barchart for aggregated (sum) data in lattice?

2008-10-05 Thread Marianne Promberger
Arrgh. I spent so long fiddling with this, and two minutes after I mail to the list I find the solution. barchart(xtabs(amount~month+what, data=t1),stack=F,auto.key=T) (It took me a long time to discover the extended xtabs formula, and before I had kept trying to combine xtabs with the "|" factor

Re: [R] *solved* lower / upper case letters in a plot

2008-09-24 Thread Jörg Groß
Great thanks and sorry for my bad english! Am 24.09.2008 um 16:32 schrieb Dimitris Rizopoulos: so you mean subscripts and superscripts, then check: ?plotmath Best, Dimitris Jörg Groß wrote: Oh, ok ... perhaps it was the wrong description; I want lowered cases... In LaTeX I get them with

[R] SOLVED - memory problem - failing to load rgl in R 2.7.1 patched

2008-08-04 Thread Monica Pisica
Hi, Sorry for that . Today R did load both ca and rgl packages with no problems ... the single thing i've done since Friday was to put "defrag" on drive C, i even didn't re-start the computer ...actually it was re-started several time with same weird problem ... so i suppose something was

Re: [R] SOLVED error in summary.Design

2008-04-29 Thread DAVID ARTETA GARCIA
Dear Frank and rest of list, please accept my apologies for not giving full details of my analysis in my previous email. I have been working on this problem and I think my error comes from the class of my variables and the way I defined the model, and I seemed to be able to solve it... d

Re: [R] SOLVED plotting time series

2008-04-28 Thread eugen pircalabelu
Thank you very much for your replies , but what i don't understand from jim's reply is this command dates <- seq(tsp(x)[1]+5/12, tsp(x)[2], .5) Removing the +5/12 gives me the perfect solution, while keeping it makes the axis run from the second value plotted and the first value from my ts

[R] Solved (??) Behaviour of integrate (was 'Poisson-lognormal probab ility calculations')

2008-02-18 Thread k . jewell
Hi Again, I think I've solved my problem, but please tell me if you think I'm wrong, or you can see a better way! A plot of the integrand showed a very sharp peak, so I was running into the integrand "feature" mentioned in the note. I resolved it by limiting the range of integration as shown here

[R] SOLVED: use classificators learned in R in "real-life", e.g. C

2008-02-04 Thread Lars
Hi, >> I am interested in using R for machine learning (supervised classification). >> Currently, I have been investigating especially the rpart, tree, and randomForest package, and have >> achieved first results. >> >> are there any experiences, how the learned classificators could >> be u

Re: [R] *SOLVED* latex{Hmisc} cannot find xdvi on MAC OS X

2008-01-25 Thread Kevin E. Thorpe
With thanks to all who responded, especially Charles Berry and Don MacQueen, my student has everything working. The final solution was: 1. Install X11 and X11SDK (or make sure they are installed). 2. There is a button for starting X11 within the R GUI. 3. Sys.setenv( PATH=paste(Sys.getenv("PATH")

[R] [Solved] Can I replace NA by 0 (if yes, how) ?

2007-11-08 Thread Ptit_Bleu
I was sure that there was such a solution. I would have liked to find it. Thank you for your help. Ptit Bleu. - Wollkind, Steven wrote: > > You don't need to loop. You can just do > > pfit$coefficients[is.na(pfit$coefficients)] <- 0 > > > > Steve Wollkind > As

  1   2   >