[R] Axis Limits in Scatterplot3d

2009-05-21 Thread Alan
Hi, How do you obtain the limits of the plotting region in a scatterplot3d plot? `par('usr')' does not seem to give sensible values, and that vector only has 4 elements (not the expected 6). Alan __ R-help@r-project.org mai

[R] readOGR workaround for Japanese UTF-8 geojson

2020-06-29 Thread Alan
I am working on a project https://github.com/AlanInTsukuba/jpucd that involves extracting shapefiles and property data from Japanese geojson files. When reading with readOGR(ibarakipath1 , encoding="UTF-8", use_iconv=TRUE), I find that the subsets of cannot be written with writeOGR without losing t

[R] plot points using circles filled half in red and half in blue.

2012-03-27 Thread alan
I want to plot many points and want to use circles. The filling color depends on variable a. if a=1, then not fill if a=2 then fill with red, if a=3 then fill with blue, if a=4, fill half with red and half with blue. Can anyone tell me how to plot the case "a=4"? Thanks a lot _

Re: [R] How to test for the difference of means in population, please help

2012-03-27 Thread alan
try anova if they have same observe points. conditions<-rep(c(1,2),each=1600) response<-sample (1:20,1600*2, replace= TRUE) points<-rep(rep(1:400, each=4),2) replicates<-rep(1:4,800) obs<-data.frame(response,conditions,points,replicates) fit <- lm(response~conditions+points,data=obs) anova(fit)

[R] Passing a Data Frame Name as a Variable in a Function

2015-01-28 Thread Alan Yong
1]) however, when I run: > length(DFName[, 1]) Error in DFName[, 1] : incorrect number of dimensions and length(df.1001[, 1]) [1] 104 do not provide the same expected answer. How can I successfully pass the data frame name of df.1001 as a variable named DFName in a

Re: [R] Passing a Data Frame Name as a Variable in a Function

2015-01-29 Thread Alan Yong
en, (2) Bind the rows of all the files. Any more feedback will be much appreciated! Cheers, Alan On Jan 29, 2015, at 3:11 AM, peter dalgaard wrote: > > On 29 Jan 2015, at 07:34 , Jeff Newmiller wrote: > >> This approach is fraught with dangers. >> >> I recommend that yo

Re: [R] Passing a Data Frame Name as a Variable in a Function

2015-01-29 Thread Alan Yong
Much thanks, Hadley! Cheers, Alan On Jan 29, 2015, at 12:36 PM, Hadley Wickham wrote: > On Thu, Jan 29, 2015 at 11:43 AM, Alan Yong wrote: >> Much thanks to everyone for their recommendations! I agree that fishing in >> the global environment isn't ideal & only shows

[R] Newbie Question on R versus Matlab/Octave versus C

2019-01-28 Thread Alan Feuerbacher
Hi, I recently learned of the existence of R through a physicist friend who uses it in his research. I've used Octave for a decade, and C for 35 years, but would like to learn R. These all have advantages and disadvantages for certain tasks, but as I'm new to R I hardly know how to evaluate t

Re: [R] [FORGED] Newbie Question on R versus Matlab/Octave versus C

2019-01-28 Thread Alan Feuerbacher
On 1/28/2019 4:20 PM, Rolf Turner wrote: On 1/29/19 10:05 AM, Alan Feuerbacher wrote: Hi, I recently learned of the existence of R through a physicist friend who uses it in his research. I've used Octave for a decade, and C for 35 years, but would like to learn R. These all have advan

Re: [R] [FORGED] Newbie Question on R versus Matlab/Octave versus C

2019-01-29 Thread Alan Feuerbacher
ore complicated than my simple problem, and has a large learning curve. Alan Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )

Re: [R] [FORGED] Newbie Question on R versus Matlab/Octave versus C

2019-01-29 Thread Alan Feuerbacher
ation fun. At this point I think you're right on all counts. Alan Bill Dunlap TIBCO Software wdunlap tibco.com <http://tibco.com> On Mon, Jan 28, 2019 at 4:00 PM Alan Feuerbacher <mailto:alan...@comcast.net>> wrote: On 1/28/2019 4:20 PM, Rolf Turner wrote: >

Re: [R] [FORGED] Newbie Question on R versus Matlab/Octave versus C

2019-01-29 Thread Alan Feuerbacher
ix C++ with R quite easily and then you get the best of both worlds. (C and Fortran are supported, but they are a bit more finicky to setup than C++). I don't know the answer to that, but perhaps you can help decide. Alan On January 28, 2019 4:00:07 PM PST, Alan Feuerbacher wrote: On

Re: [R] Newbie Question on R versus Matlab/Octave versus C

2019-01-29 Thread Alan Feuerbacher
and is particularly suitable in terms of performance for iterative computations where one iteration depends on the prior one. Given my response to Jeff Newmiller, do your comments still apply? Alan On Mon, Jan 28, 2019 at 6:32 PM Gabor Grothendieck wrote: R has many similarities to Octave

Re: [R] how to ref data directly from bls.gov using their api

2019-01-29 Thread Alan Feuerbacher
On 1/29/2019 11:24 AM, Bert Gunter wrote: Please search on "Bureau of Labor Statistics" at rseek.org. You will find several packages and other resources there for doing what you want. Wow! Thanks! Again most likely severe overkill for my simple need. Alan -- Ber Bert Gunter &q

Re: [R] [FORGED] Newbie Question on R versus Matlab/Octave versus C

2019-01-30 Thread Alan Feuerbacher
On 1/29/2019 11:50 PM, Jeff Newmiller wrote: Thanks very much for providing these coding examples! I think this is a good way to learn some R. Alan On Tue, 29 Jan 2019, Alan Feuerbacher wrote: On 1/28/2019 7:51 PM, Jeff Newmiller wrote: If you forge on with your preconceptions of how such

Re: [R] Newbie Question on R versus Matlab/Octave versus C

2019-01-30 Thread Alan Feuerbacher
On 1/30/2019 7:44 AM, Martin Møller Skarbiniks Pedersen wrote: On Mon, 28 Jan 2019 at 22:58, Alan Feuerbacher <mailto:alan...@comcast.net>> wrote: [...] > These all have advantages and > disadvantages for certain tasks, but as I'm new to R I hardly know how >

Re: [R] [FORGED] Newbie Question on R versus Matlab/Octave versus C

2019-02-02 Thread Alan Feuerbacher
On 1/29/2019 11:50 PM, Jeff Newmiller wrote: On Tue, 29 Jan 2019, Alan Feuerbacher wrote: After my failed attempt at using Octave, I realized that most likely the main contributing factor was that I was not able to figure out an efficient data structure to model one person. But C lent itself

[R] Large number of dummy variables

2008-07-21 Thread Alan Spearot
ge in R? Thanks for your help. Alan Spearot -- Alan Spearot Assistant Professor - International Economics University of California - Santa Cruz 1156 High Street 453 Engineering 2 Santa Cruz, CA 95064 Office: (831) 459-1530 [EMAIL PROTECTED] http://people.ucsc.edu/~aspearot [[al

[R] Large number of dummy variables

2008-07-22 Thread Alan Spearot
ge in R? Thanks for your help. Alan Spearot [[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/posting-guide.html and pr

[R] Parallel Processing and Linear Regression

2008-07-24 Thread Alan Spearot
ot program the estimation code. I'm currently using a IA-64 Teragrid system through UC San Diego. Alan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read th

[R] best quad core configuration?

2008-07-30 Thread Alan Swanson
imum speed for these simulations? Thanks, Alan Swanson [[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/posting-

[R] Help with hazard plots

2008-07-31 Thread Alan Cox
s/alancox/2720915904/in/photostream/ shows the plot where the lifetime of a customer who signs up on Jan 1 and cancels on Jan 2 is 1. My question is: Why are these two so different? How do I know which is right? The call that I'm making to produce the model is: hazardV08 <- mu

Re: [R] Help with hazard plots

2008-07-31 Thread Alan Cox
I clicked "Send" before making sure I thanked anyone who took the time to help me out.  Sorry about that.  To all who read or respond: thanks!. - Original Message - From: "Alan Cox" <[EMAIL PROTECTED]> To: r-help@r-project.org Sent: Thursday, July 31, 200

[R] Constrained Optimization

2008-08-04 Thread alan . ng
Hello, I am trying to run a constrained optimization in R. "constrOptim" is really useful and has helped me a lot, but unfortunately, it doesn't provide the hessian. Is there a solution to this problem? I've tried "optim" with penalty-functions and "L-

[R] Projecting Survival Curve into the Future

2008-09-04 Thread Alan Cox
x27;ll hit 50%? We started a new program 3.5 months ago, and I believe that this set of accounts behaves differently than the rest of our company's accounts. Thanks very much, Alan -- Alan Cox Director, User Experience iContact, Corp. p 919.459.1038 f 919.287.2475 [[a

[R] Drawing lines in margins

2009-07-29 Thread Alan Cohen
Hi all, Quick question: What function can I use to draw a line in the margin of a plot? segments() and lines() both stop at the margin. In case the answer depends on exactly what I'm trying to do, see below. I'm using R v. 2.8.1 on Windows XP. Cheers, Alan I'm trying to ma

[R] Determining Index of Last Element in Vector

2010-04-25 Thread Alan Lue
r the first and last? (I know you can achieve this using two lines, but I'm writing because I want to do it using one.) Alan -- Alan Lue Master of Financial Engineering UCLA Anderson School of Management [[alternative HTML version deleted]] _

Re: [R] Determining Index of Last Element in Vector

2010-04-25 Thread Alan Lue
Sorry -- I meant `v(end)' and `v[length(v)]' in the first examples of my message. Alan On Sun, Apr 25, 2010 at 11:10 AM, Alan Lue wrote: > Hi, > Is there a way to specify the last element of a vector, similar to "end" in > MATLAB? >   v[end] > would be

Re: [R] Determining Index of Last Element in Vector

2010-04-25 Thread Alan Lue
Those are great solutions. Thanks so much for your help. Yours, Alan On Sun, Apr 25, 2010 at 11:43 AM, David Winsemius wrote: > > On Apr 25, 2010, at 2:22 PM, Chuck Cleland wrote: > >> On 4/25/2010 2:10 PM, Alan Lue wrote: >>> >>> Hi, >>> >>&

[R] Rounding and printing

2009-10-29 Thread Alan Cohen
="") [1] 56.5 1.6 0.2 3.9 0.1 2.2 0.2 2.6 1.5 4.1 1.1 6.1 21.0 [1] "56.5 (100%)" "1.6 (2.8%)" "0.2 (0.4%)" "3.9 (6.9%)" "0.1 (0.2%)" "2.2 (3.9%)" [7] "0.2 (0.4%)" "2.6 (4.6%)" "1.5 (2.

[R] non-intuitive behaviour after type conversion

2009-11-23 Thread Alan Kelly
ext books on R. Can anyone comment on why this should occur? Many thanks, Alan Kelly Dr. Alan Kelly Department of Public Health & Primary Care Trinity College Dublin __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-he

[R] question about availability of splines library for 2.10.0

2009-11-30 Thread Alan Swanson
.10.0 according to the description) on another machine. Where can I find this library? Thanks in advance, Alan > sessionInfo() R version 2.10.0 (2009-10-26) i386-pc-mingw32 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinf

Re: [R] question about availability of splines library for 2.10.0

2009-11-30 Thread Alan Swanson
Phil and Peter, thanks - figured it was something obvious. I had uninstalled splines to check the behavior of some other code. I just reinstalled R 2.10.0 and it shows up. Thanks! Alan Peter Ehlers wrote: Have you searched your computer? Rhome/library/splines It's one of the pac

[R] Two-way Anova

2009-05-12 Thread Alan O'Loughlin
Hello, I'm trying to do a comparsion on a large scale say 10L bottle of liquid and a small scale bottle of liquid 0.5L, I have 5 different samples from each and they are measured over the space of 8 days as % viability and the % viability decreases over time. However not all 10 samples got me

[R] Mixed Models

2009-05-20 Thread Alan O'Loughlin
Hello, I've run a Proc Mixed function on a set of data in SAS. The data was a result of an experiment that measured % viability over time and I wanted to compare a Large sample lets say 50L to a small sample say 5L. And compare the % viability between the 2 sizes to see if I get the same answ

[R] help installing Rmpi

2009-06-11 Thread ALAN SMITH
have included the processes I attempted below. Thank you, Alan Smith # what I have attempted so far #I have tried two different ways to install openMPI in fedora in the linux shell #in the linux shell cd Download wget http://www.open-mpi.org/software/ompi/v1.3

[R] nested cross-sectional design using lmer or nlme

2009-06-23 Thread Alan Kelly
random effects for unit and timecat X unit. I would much appreciate any suggestions on how to code the above in lmer or nlme. Alan Kelly Trinity College Dublin __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-hel

[R] Long to wide format without time variable

2009-06-23 Thread Alan Cohen
ssor-efficient way to replicate "reshape" without a time variable. Thanks in advance for any help you can provide. A worked example and some code I've tried are below. I'm working with R v2.8.1 on Windows XP Professional. Cheers, Alan Cohen Here's what my data look like

[R] Burt table from word frequency list

2009-03-30 Thread Alan Zaslavsky
Maybe not terribly hard, depending on exactly what you need. Suppose you turn your text into a character vector 'mytext' of words. Then for a table of words appearing delta words apart (ordered), you can table mytext against itself with a lag: nwords=length(mytext) burttab=table(mytext[-(1:d

[R] 'for Loop'

2009-03-31 Thread Alan O'Loughlin
Hello, I'm trying to create a for loop for a data set, I have a list of results in this data set and I want to take the 1st two add them together and divide by the mean of the 1st to, then do the same for the 3rd and 4th values in the list and so on and each time return a value for the calcul

[R] Using apply to get group means

2009-03-31 Thread Alan Cohen
in function? Any suggestions? Also, any way to avoid the hassles with having to convert to a data frame and then again to numeric when one variable is character? Cheers, Alan Cohen __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listin

[R] Fwd: 'for Loop'

2009-04-01 Thread Alan O'Loughlin
Hello, A nice guy call Jun Shen was helping me out with this, but I require a bit more help. Below is my data set or list called 'test'. I'm trying to calculate the %RSD for each pair of index and keep it in cronological order if you can imagine a 3rd column with 'date' beside index. Res

[R] Weighted principal components analysis?

2009-04-03 Thread Alan Cohen
v2.8.1 on Windows XP. I've searched Help and the R site and had no luck. Thanks for any help you can provide. Cheers, Alan Cohen Centre for Global Health Research Toronto, Ontario __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listi

[R] Problem with "apply"

2009-04-22 Thread Alan Cohen
h mds[200:300,], mds[250:350,] and mds[1000:1100,], only ages with 3 digits are correctly assigned - all ages <100 are returned as NA. I'm using R v 2.8.1 on Windows XP. Cheers, Alan Cohen Centre for Global Health Research, Toronto,ON > ageassign <- function(x){ + y <- NA +

[R] lmer( ) parameter estimates changing depending on dummy-coded reference level

2013-08-07 Thread Alan Mishler
respond correctly. However, I didn't get any warnings about model convergence, or any warnings at all.) Any clues as to why I'm getting this results would be very much appreciated. Thanks in advance, Alan Mishler Research Assistant University of Maryland -- ## Model 1 output: Blo

Re: [R] lmer( ) parameter estimates changing depending on dummy-coded reference level

2013-08-07 Thread Alan Mishler
Thank you, I'll post there. Regards, Alan On Wed, Aug 7, 2013 at 1:14 PM, Bert Gunter wrote: > I think it's fair to say that this should really be posted on the > mixed-model specific (especially using lme4) list r-sig-mixed-models > and not here. > > Cheers, > Ber

[R] Advice on use of R for Generalised Linear Modelling

2013-08-11 Thread Alan Sausse
Hi, Not an expert R user, something of a novice - please be gentle with me! I have a particular interest in generalised linear models (GLMs) and I'm experienced in fitting them using other bits of software. R can fit GLMs of course, using the glm() command. I have some large multivariate data s

Re: [R] Advice on use of R for Generalised Linear Modelling

2013-08-12 Thread Alan Sausse
Interesting...interesting... Thank you very much for this. I'll play with this tomorrow & see what happens. Regards, Alan. On 12 August 2013 17:15, Yvonnick Noel wrote: > Alan, > > You might want to have a look to the R2STATS package on CRAN. It is a GUI > for GLM an

[R] AUTO: Alan Chalk has left RSA (returning 30/11/2012)

2012-11-03 Thread Alan Chalk
I am out of the office until 30/11/2012. Please send work related emails to laura.jor...@uk.rsagroup.com or personal emails to alanch...@gmail.com. Note: This is an automated response to your message "R-help Digest, Vol 117, Issue 3" sent on 03/11/2012 11:00:07. This is the only notification y

[R] Looking for a test of standard normality

2012-11-08 Thread Herschtal Alan
that the data are not standard normal. My back up option is to use a Kolmogorov-Smirnov test, but my impression is that that is not a very powerful test. Any suggestions? Thanks, Alan Herschtal Senior Biostatistician Peter MacCallum Cancer Centre Phone +61 3 9656 3639 Fax +61 3 9656 1420 Email

Re: [R] Looking for a test of standard normality

2012-11-11 Thread Herschtal Alan
the percentiles, checking for equal numbers in each decile bin. This would certainly work, and the only disadvantage that I can see is that the selection of the bin boundaries is somewhat arbitrary. Alan Herschtal Senior Biostatistician Peter MacCallum Cancer Centre Phone +61 3 9656 3639 Fax +61 3

Re: [R] Looking for a test of standard normality

2012-11-11 Thread Herschtal Alan
Shapiro-Wilk normality test data: qq W = 0.9831, p-value = 0.2286 Alan Herschtal Senior Biostatistician Peter MacCallum Cancer Centre Phone +61 3 9656 3639 Fax +61 3 9656 1420 Email alan.hersch...@petermac.org From: Mark Lamias

[R] Unexpected input error

2013-09-26 Thread Alan Randolph
Hi, I am newbie to R so pardon me if this is not the forum for asking this question. I am getting the error "unexpected input in "evalq({‚" in the Boost Tutorial example section 13.3 of Graham William's, "Data Mining with Rattle and R. Below is the line as I have entered it and version i

[R] re. Mathematica and R

2010-07-17 Thread Alan Kelly
David - information on calling R from within Mathematica can be found at the following link: http://www.mofeel.net/1164-comp-soft-sys-math-mathematica/13022.aspx HTH, Alan Kelly __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo

[R] : unusual combinations of categorical data

2010-11-08 Thread Alan Chalk
Regarding unusual combinations of factors in categorical data. Are there any R packages that can be used to identify the outliers i.e. unusual combinations in categorical datasets ? Thanks. Notice of Confidentia

Re: [R] Waaaayy off topic...Statistical methods, pub bias, scientific validity

2011-01-07 Thread Alan Kelly
Bert, consider the short rebuttal offered by George Musser in Scientific American: http://www.scientificamerican.com/blog/post.cfm?id=in-praise-of-scientific-error-2010-12-20 Perhaps a more realistic assessment of the (acknowledged) problem. Regards, Alan Kelly Trinity College Dublin On 7 Jan

[R] Conditional distribution plot using Model-based Recursive Partitioning

2011-05-05 Thread Alan Fernihough
a way which I would be able to plot the tree and have either a conditional spinogram in the leaf or even just text with a number showing a marginal effect or coefficient please? Thanks, Alan -- Alan Fernihough IRCHSS Scholar UCD School of Economics [[alternati

[R] Avoiding Loops When Iterating Over Statement That Updates Its Input

2010-05-25 Thread Alan Lue
' and concatenate it later, but is there a better way to write this (i.e., to execute more quickly) while updating `r.seq' in each iteration? Alan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do rea

Re: [R] Avoiding Loops When Iterating Over Statement That Updates Its Input

2010-05-25 Thread Alan Lue
Come to think of it, we can't save the output of each invocation and concatenate it later, since we need the output as input for the next iteration. Alan On Tue, May 25, 2010 at 11:43 PM, Alan Lue wrote: > Since `for' loops are slow in R, and since `apply' functions a

Re: [R] Counting indexes

2010-05-26 Thread Alan Lue
x <- rle(id) cumsum(x$lengths) - (x$lengths - 1) cumsum(x$lengths) Alan On Tue, May 25, 2010 at 10:00 PM, Gabor Grothendieck wrote: > This assumes that for a particular id they all occur together in a run: > >> cbind(start = which(!duplicated(id)), end = which(!duplicat

[R] Data Frame as Hash Table

2010-05-30 Thread Alan Lue
0.002720434 Then I'd like to be able to quickly retrieve the "value" of "key" 1.5 to get -0.53. How would one go about doing this? Yours, Alan Lue __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help P

Re: [R] Data Frame as Hash Table

2010-05-30 Thread Alan Lue
Thanks, guys! Alan On Sun, May 30, 2010 at 5:35 AM, Marshall Feldman wrote: > Besides data.table, there's the hash package. It does not use data.frame > type structures but is a bit more flexible. > > Marsh Feldman > > On 5/30/10 [May 30, 10] 6:00 AM, r-help-requ

Re: [R] Avoiding Loops When Iterating Over Statement That Updates Its Input

2010-05-30 Thread Alan Lue
Is there a performance advantage to doing this, as opposed to growing the vector within the loop? I suppose R could have to dynamically reallocate memory at some point? Alan 2010/5/30 Uwe Ligges : > > > On 26.05.2010 08:52, Alan Lue wrote: >> >> Come to think of it, we can

[R] MCMCpack combining chains

2011-02-24 Thread Alan Kelly
chains So, how may I combine the separate mcmc objects so that I have multiple chains? Many thanks, Alan Kelly [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] MCMCpack combining chains

2011-02-27 Thread Alan Kelly
Thank you Uwe for the clarification. Alan Kelly On 24.02.2011 17:48, Alan Kelly wrote: > Deal all, as MCMClogit does not allow for the specification of several > chains, I have run my model 3 times with different random number seeds and > differently dispersed multivariate normal prio

[R] issue with image plot in 2.13.1

2011-08-16 Thread Swanson, Alan
sized. This occurs using a range of graphic devices (windows, png, bmp, jpeg, tiff, pdf), on two different machines (windows 7-64 bit and windows XP-32 bit) but not when using 2.13.0 on either machine. Do others have this issue? Any possible solutions? Regards, Alan x <- y <- seq(-4*pi, 4

[R] How to get the last modified time of a file from R

2011-08-26 Thread alan wu
Hi All, I want to add the last modified time of the dataset I used in the analysis. Any idea about how to get it from R in windows XP system? Thanks Alan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

[R] AUTO: Chalk, Alan has a new email address

2011-06-25 Thread Alan Chalk
I am out of the office until 01/05/2012. Please note that I have changed email address. You can contact me at alan.ch...@uk.rsagroup.com Note: This is an automated response to your message "R-help Digest, Vol 100, Issue 26 [Virus checked]" sent on 25/06/2011 11:00:11. This is the only notif

[R] dlmSum(...) and non-constant state space models

2011-07-29 Thread Alan Fernihough
ng to find an answer. Please find my code below, perhaps there is a mistake which can easily be rectified. Kind regards, Alan > library(dlm) > mydata <- read.csv("Data.csv", header=TRUE)> pc <- mydata[,c(2,3,5,22)]> > > pc[,1] <- log(pc[,1]/pc[,3]) ; pc[,2] <

[R] ggplot2 with separate average lines

2012-08-08 Thread Alan Miller
(Type, ID, Size), aes(x=ID, y=Size, shape=Type, color=Type)) + geom_point(shape=1) + scale_fill_hue(l=40) + geom_line(stat="hline", yintercept=mean, linetype="dashed") > Regards, Alan [[alternative HTML version deleted]]

[R] scatterplotting stock returns using quantmod and pairs()

2011-12-06 Thread alan lapedes
I want to get data for a set of ticker symbols and compute the daily return of the adjusted close using quantmod, and then scatterplot returns using pairs(). The following gets data for the list of tickers: tickers <- c("SHY","TLT","SPY","IWM","GLD","IEV","ILF","EWJ","EPP","SAF","ASA") AdjClosePr

[R] take me off the list

2011-11-03 Thread Alan Gao
thank you. Alan Gao University of Michigan '12 Statistics, B.S. 239.682.3509 __ 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/posting-guide.html and pr

[R] Looping and actual variable names

2012-01-24 Thread Gordon, Alan
eader=T) for (j in 2:5) print(summary(lm(formula = dd[,1] ~ dd[,j]))) However, although it produces all the analyses that I want, the output is annotated with dd[,1] and dd[,j] rather than the actual variable names. Is there any way around this? Best wishes, Alan. __

[R] help understanding why #function(x, y) (if((x-y)>=0) {2^(x-y)} else{-(2^abs(x-y))})# doesn't work like I think it should

2008-06-03 Thread ALAN SMITH
### loop I am trying to avoid writing many many times # folds2<-NULL xy<-as.data.frame(cbind(x,y)) for (i in 1:nrow(xy)) { diff<-xy$x[i]-xy$y[i] folds2[i]<-if(diff>=0) {2^diff} else{-(2^abs(diff))} } xyz<-cbind(xy,folds2) Vie

[R] package segmented problem

2008-07-08 Thread Alan Kelly
anyone can assist? Many thanks, Alan Kelly __ 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/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] reshape a wide data frame from wide to a long format with metadata columns

2008-05-19 Thread ALAN SMITH
c("treat","time","rep", "intensity"))) Could someone please offer me some scripting advise on how to reshape the dataframe from wide into long format and split the metadata out of the column names. sep="." I am trying to create a table with a he

[R] Plot question

2007-12-14 Thread Alan Barnett
result for each value of var. In this plot, each boxplot is labeled by the corresponding value of var, but the absissas are evenly spaced. Is it possible to generate a boxplot with the absissas of each boxplot equal to the corresponding value of var? -- Alan Barnett, PhD Imaging Physicist Na

[R] Hazard Rate Confidence Intervals

2008-09-04 Thread Alan Cox
te curves, haz1 looks very different than haz2, but I'd like to see if it's different enough.  How can I go about creating confidence intervals and plotting them? Thanks, Alan -- Alan Cox Director, User Experience iContact, Corp. p 919.459.1038 f 919.287.2475 [[alt

[R] Confidence Intervals on Hazard Plots

2008-09-05 Thread Alan Cox
te curves, haz1 looks very different than haz2, but I'd like to see if it's different enough.  How can I go about creating confidence intervals and plotting them? Thanks, Alan -- Alan Cox Director, User Experience iContact, Corp. p 919.459.1038 f 919.287.2475 _

[R] Computing Mean Lifetime from Hazard

2008-09-26 Thread Alan Cox
ted from a well-known distribution? Thanks for your help, Alan -- Alan Cox Director, User Experience iContact, Corp. p 919.459.1038 f 919.287.2475 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read t

[R] AT&T Researchers and the New York Times

2009-01-10 Thread Alan Zaslavsky
I've submitted a posting to the NY Times blog mentioned by David Smith, specifically mentioning John, Rick and Allan. (Now awaiting moderation.) Of course there are many others deserving credit but far to numerous to list so I didn't get started. On Thu, Jan 8, 2009 at 5:58 PM, Robert Wilkins

[R] understanding how R determines numbers and characters when creating a data frame

2009-02-18 Thread Alan Smith
t;-data.frame(cbind(species=as.character(paste(s)),obsnum)) # number converted to character results<-rbind(out1,results) } results #fix(results) # can now convert obsnum to numeric using fix ## Thank you, Alan Smith [[alternative HTML version deleted]]

[R] basketball (was: R spam)

2009-02-25 Thread Alan Zaslavsky
rhouses in the U.S. who probably know much more about this than I do. Alan Zaslavsky __ 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/posting-guide.ht

Re: [R] Is there any difference between <- and =

2009-03-13 Thread Alan Zaslavsky
d keyboard that key code will have been assigned to the locally popular sheep icon.) Alan Zaslavsky __ 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/p

Re: [R] Is there any difference between <- and =

2009-03-13 Thread Alan Zaslavsky
thanks for your supportive comments! by that time r programs will be scanned directly from your head, i suppose, and the intelligent scanner will as gladly take <- as it will =, so the problem will rather vanish. Yes, and maybe the scanner will be more intelligent than the programmer so when th

[R] Mixed models

2008-02-01 Thread Alan Harrison
m=~Mouse, group=Location, data=alan, family="binomial", link="logit") I numbered each animal within each site 1->n to create the "Mouse" variable, then grouped this by "Location", it is the variance component of the site that I am interested in so when I

[R] Transfer Crosstable to Word-Document

2008-02-16 Thread Alan Zaslavsky
If you want to get nicely formatted tables in Word and are familiar with Office tools (I know it's the Evil Empire but some of us work there), I suggest that you use Excel for formatting and then insert the table into your Word document. IMHO, Excel is much superior to Word for table formatti

[R] Memory limits for large data sets

2008-11-05 Thread Alan Cohen
R for this kind of thing? Cheers, Alan Cohen Alan Cohen Post-doctoral Fellow Centre for Global Health Research 70 Richmond St. East, Suite 202A Toronto, ON M5C 1N8 Canada (416) 854-3121 (cell) (416) 864-6060 ext. 3156 (0ffice) __ R-help@r-project.org mai

[R] Updating Packages with Personal Library

2008-11-07 Thread Alan Lue
pdated package was already in my personal library. How can I get R to check packages in my personal library while determining what to update? Alan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.c

Re: [R] Updating Packages with Personal Library

2008-11-07 Thread Alan Lue
Test. On Fri, Nov 7, 2008 at 2:40 AM, Alan Lue <[EMAIL PROTECTED]> wrote: > I'm having trouble running `updates.packages()' and installing into a > personal library. > > Setup: > 1. .Renviron file contains: R_LIBS_USER="~/lib/R/%p-library/%v" > 2.

[R] ubuntu system refuses to update packages

2008-11-09 Thread Alan Jackson
't show what the issue is. -- --- | Alan K. Jackson| To see a World in a Grain of Sand | | [EMAIL PROTECTED] | And a Heaven in a Wild Flower, | | www.ajackson.org | Hold Infinity in the palm of your hand | | Houston, Texas

[R] Math Expression in 3D Plots

2008-11-20 Thread Alan Lue
quot;black") title3d(xlab="dist", pos=c(NA, 0, -3), color="black") title3d(ylab="delta_yrsed", pos=c(12, NA, -3), color="black") title3d(zlab="delta_dist", pos=c(-3, 0, NA), color="black") rgl.bg(color=rep("white",

[R] Failure to subset in R v 2.8.0

2008-12-01 Thread Alan Cohen
cter(c$month)) does not help. Nor does restarting R, restarting the computer, or trying the operation on smaller subsets of c. I'd appreciate any help you an provide. Sincerely, Alan Cohen __ R-help@r-project.org mailing list https://stat.ethz.c

Re: [R] r achives

2007-10-20 Thread Alan Zaslavsky
I think that should be https://stat.ethz.ch/pipermail/r-help/ (note https prefix) > From: (Ted Harding) <[EMAIL PROTECTED]> > Subject: Re: [R] r achives > > On 19-Oct-07 09:36:52, raymond chiruka wrote: > > sorry but how do i accsess r archives > > If you mean the archive of postings to t

[R] kripp.alpha - Getting Data into It

2014-09-13 Thread Alan E. Stewart
I have used read.csv put three columns (of raters) who rated 188 things (rows) into the object PublicKnow After loading irr and calling kripp.alpha(PublicKnow), I get what I see on searching is the common error: Error in sort.list(y) : 'x' must be atomic for 'sort.list' Have you called 'sort' o

Re: [R] Symbolic equations to R code?

2014-11-20 Thread alanm (Alan Mitchell)
Have you thought about programming a function builder into the Shiny applet? It might simplify the process for your students a bit. A highly simplified version of the page David suggested could be built that generates the R code. Best of luck, Alan -Original Message- From: Scott

[R] nls.lm & AIC

2010-02-16 Thread Baudron, Alan Ronan
lihood. Does someone have any idea of how I could proceed to get such informations about my models? Thanks for your help. Best regards, Alan Baudron The University of Aberdeen is a charity registered in Scotland, No SC013683. [[alternative

[R] No Support for plot=F in plclust()

2011-03-15 Thread alanm (Alan Mitchell)
Hello all, I am working on converting a set of S+ functions to R. Can anyone tell me how to extract data from an hclust or dendrogram object in R that is similar to that generated by P1 = plclust(tree, plot=F) Any suggestions would be appreciated. Alan Mitchell, MSc

[R] Lists of tables and conditional statements

2011-03-30 Thread Herbert, Alan G
Hi R-users, I have a list containing numeric tables of differing row length. I want to make a new list that contains only rows from tables with a "Sum" greater than 3, plus the names of each table. I was wondering whether there is an elegant way to do this using apply of related functions as th

Re: [R] Lists of tables and conditional statements

2011-03-31 Thread Herbert, Alan G
Thanks Henrique - that worked like a charm - I had tried lots of other combinations before seeing your reply - wished I had asked sooner! Alan -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Wednesday, March 30, 2011 10:09 PM To: Herbert, Alan G Cc: r

  1   2   >