Re: [R] . Re: Splitting a data column randomly into 3 groups

2021-09-04 Thread Avi Gross via R-help
Thomas, There are many approaches tried over the years to do partitioning along the lines you mentioned and others. R already has many built-in or in packages including some that are quite optimized. So anyone doing serious work can often avoid doing this the hard way and build on earlier work. N

[R] . Re: Splitting a data column randomly into 3 groups

2021-09-04 Thread Thomas Subia via R-help
I was wondering if this is a good alternative method to split a data column into distinct groups. Let's say I want my first group to have 4 elements selected randomly mydata <- LETTERS[1:11] random_grp <- sample(mydata,4,replace=FALSE) Now random_grp is: > random_grp [1] "H" "E" "A" "D" # How's

[R] Re: OS X solution... was Re: rgdal functions: spTransform and CRS not working

2017-01-16 Thread Roger Bivand
I apologise for not following up in-thread, as I used to use Gmane to reply to postings read digested before its (hopefully temporary) demise. The problem is that the CRAN OSX binaries for rgdal are shipping without two key folders, proj/ and gdal/. Until we get it fixed, please see if you can

Re: [R] re attach into the killed R session

2016-12-18 Thread jim holtman
I would hope that if you have an R script that is running for a month that you have built in periodic checkpoints so that you can recover what is happening. In cases where I want to be able to restart an R script at some point downstream, I will "save.image", or just the objects that are important

Re: [R] re attach into the killed R session

2016-12-18 Thread Jeff Newmiller
Not a question about R (it is about process management in what I am guessing is some kind of unix-alike OS). I suspect that unless you wrote log files or intermediate data to disk as you went, it is very likely that you are out of luck. Since you are posting here instead of reviewing those file

[R] re attach into the killed R session

2016-12-18 Thread Ragia .
Dear group I had a tmux session, on it an R script is running before the program should ends on the screen written "killed" and the script terminated and returned bake to bash (in the same tmux window) Q: how can I re attach into the killed R session and check it? can I recover what was the s

Re: [R] [RE: [Rd] why does parent.frame() cycle when called from inside capture.output()?]

2016-12-12 Thread Mark.Bravington
Hi Frederik Goodo, glad you found mvbutils::mvb.parent.frame useful. I had forgotten that it's in mvbutils rather than debug package. This all dates back about 15 years... To be fair, I don't think R's behaviour with duplicated-but-aliased frames in the call stack is a "bug"--- everything norm

[R] [RE: [Rd] why does parent.frame() cycle when called from inside capture.output()?]

2016-12-12 Thread frederik
Thanks, Mark - I'm taking up your invitation to forward your message to the list just because it gives us some valuable data on (1) how long the behavior has been around, and (2) how many other people (don't) understand the behavior, and (3) how we might fix or work around it. I notice some other

Re: [R] R re-base/compile problem

2016-12-01 Thread Jeff Newmiller
You MIGHT get an answer here, but this type of question is more likely to belong on the R-devel mailing list than here. See the Posting Guide. -- Sent from my phone. Please excuse my brevity. On December 1, 2016 8:20:52 AM PST, lejeczek via R-help wrote: >hi everyone. > >this will be a bit r

[R] R re-base/compile problem

2016-12-01 Thread lejeczek via R-help
hi everyone. this will be a bit rpm packaging related, not sure if more than R itself but before going to rpm gang I hoped someone here knows: why this: byte-compiling package 'compiler' Warning in file(datafile, "wb") : cannot open file '/usr/lib64/R-MY/lib64/R/library/compiler/R/compiler

[R] R: Re: R: RE: Syntax error in using Anova (car package)

2015-11-26 Thread angelo.arc...@virgilio.it
and maybe others in future) in understanding and solving the problem. Thank you Best regards Angelo >Messaggio originale >Da: bgunter.4...@gmail.com >Data: 26-nov-2015 3.24 >A: "angelo.arc...@virgilio.it" >Cc: , "r-help@r-project.org" >Ogg: Re: [R]

Re: [R] R: RE: Syntax error in using Anova (car package)

2015-11-25 Thread Bert Gunter
At this point, it seem obvious to me that you would benefit by local statistical consulting, rather than further badgering on this list, as you seem confused by both the underlying statistical concepts and how they need to be handled in R/car. Pursuing your current course seems destined to lead to

[R] R: RE: Syntax error in using Anova (car package)

2015-11-25 Thread angelo.arc...@virgilio.it
Dear Prof. John Fox, thanks a lot for your answer. Do you mean that my data set should have 19 rows (one for each of the 19 subjects) and 144 columns (that is 72 trials * 2 dependent variables)? So should the dataframe look like this? Subject Stimulus_1.Centroid.repetition1 Stimulus_1.Ce

[R] R: Re: Question about lme syntax

2015-11-23 Thread angelo.arc...@virgilio.it
Dear Prof. Andrew Robinson, I am very grateful to you for your enlightening answer All the best Angelo Messaggio originale Da: a.robin...@ms.unimelb.edu.au Data: 23-nov-2015 20.50 A: "angelo.arc...@virgilio.it" Cc: "R help (r-help@r-project.org)" Ogg: Re: [R] Question about lme

[R] R: RE: How to plot results from lme in presence of a significant interaction

2015-11-23 Thread angelo.arc...@virgilio.it
Dear prof. Fox, thank you very much Best regards Angelo >Messaggio originale >Da: j...@mcmaster.ca >Data: 23-nov-2015 12.50 >A: "angelo.arc...@virgilio.it" >Cc: "r-help@r-project.org" >Ogg: RE: [R] How to plot results from lme in presence of a significant interaction > >Dear Angelo, >

[R] R: Re: How to plot results from lme in presence of a significant interaction

2015-11-23 Thread angelo.arc...@virgilio.it
Dear Bert and R list, actually I had tried the interaction plot function, but I deduced that it was not the correct function since it gave me an empty plot (no lines). This should not be correct because as you can see from the results of the analysis I reported in the previous e-mail, there is

[R] R: Re: Differences in output of lme() when introducing interactions

2015-07-23 Thread John Maindonald
1-lug-2015 11.58 A: "angelo.arc...@virgilio.it<mailto:angelo.arc...@virgilio.it>"mailto:angelo.arc...@virgilio.it>>, mailto:bgunter.4...@gmail.com>> Cc: mailto:r-help@r-project.org>> Ogg: Re: R: Re: [R] R: Re: Differences in output of lme() when introducing interactions

[R] R: Re: Differences in output of lme() when introducing interactions

2015-07-22 Thread angelo.arc...@virgilio.it
Dear Terry, I am very grateful to you for such a detailed and helpful answer. Following your recommendation then I will skip the method presented at http://www.ats.ucla.edu/stat/r/faq/type3.htm So far, based on my understanding of R I arrived to the conclusion that the correct way to see if ther

Re: [R] R: Re: R: Re: R: Re: Differences in output of lme() when introducing interactions

2015-07-21 Thread John Kane
work. John Kane Kingston ON Canada > -Original Message- > From: angelo.arc...@virgilio.it > Sent: Tue, 21 Jul 2015 12:12:58 +0200 (CEST) > To: li...@dewey.myzen.co.uk, bgunter.4...@gmail.com > Subject: [R] R: Re: R: Re: R: Re: Differences in output of lme() when > introd

[R] R: Re: R: Re: R: Re: Differences in output of lme() when introducing interactions

2015-07-21 Thread angelo.arc...@virgilio.it
with R? My department does not have a statician, so I have to find a solution with my own capacities. Thanks in advance Angelo Messaggio originale Da: li...@dewey.myzen.co.uk Data: 21-lug-2015 11.58 A: "angelo.arc...@virgilio.it", Cc: Ogg: Re: R: Re: [R] R: Re: Diff

Re: [R] R: Re: R: Re: Differences in output of lme() when introducing interactions

2015-07-21 Thread Michael Dewey
help? Any online reference to-the-point that can help me in solving this problem? Thank you in advance Best regards Angelo Messaggio originale Da: bgunter.4...@gmail.com Data: 21-lug-2015 3.45 A: "angelo.arc...@virgilio.it" Cc: , Ogg: Re: [R] R:

[R] R: Re: R: Re: Differences in output of lme() when introducing interactions

2015-07-21 Thread angelo.arc...@virgilio.it
l.com Data: 21-lug-2015 3.45 A: "angelo.arc...@virgilio.it" Cc: , Ogg: Re: [R] R: Re: Differences in output of lme() when introducing interactions I believe Michael's point is that you need to STOP asking such questions and START either learning some statistics or work with someone who alr

Re: [R] R: Re: Differences in output of lme() when introducing interactions

2015-07-20 Thread Bert Gunter
I believe Michael's point is that you need to STOP asking such questions and START either learning some statistics or work with someone who already knows some. You should not be doing such analyses on your own given your present state of statistical ignorance. Cheers, Bert Bert Gunter "Data is

[R] R: Re: Differences in output of lme() when introducing interactions

2015-07-20 Thread angelo.arc...@virgilio.it
Dear Michael, thanks for your answer. Despite it answers to my initial question, it does not help me in finding the solution to my problem unfortunately. Could you please tell me which analysis of the two models should I trust then? My goal is to know whether participants’ choices of the depend

[R] R: RE: R: RE: Bonferroni post hoc test in R for repeated measure ANOVA with mixed within and between subjects design

2015-07-07 Thread angelo.arc...@virgilio.it
p@r-project.org", "John Fox" Ogg: RE: [R] R: RE: Bonferroni post hoc test in R for repeated measure ANOVA with mixed within and between subjects design Angelo, the conservatism of Bonferroni aside for a moment, I don't really see what you are after. mcp(Emotion = "Tukey&q

[R] R: Re: R: RE: Bonferroni post hoc test in R for repeated measure ANOVA with mixed within and between subjects design

2015-07-07 Thread angelo.arc...@virgilio.it
-Messaggio originale Da: j...@mcmaster.ca Data: 7-lug-2015 3.23 A: "angelo.arc...@virgilio.it" Cc: , "r-help@r-project.org" Ogg: Re: [R] R: RE: Bonferroni post hoc test in R for repeated measure ANOVA with mixed within and between subjects design Dear Angelo, The Bonferroni

[R] R: Re: Sphericity for a repeated measure ANOVA with whithin and between subjects design, using R

2015-07-07 Thread angelo.arc...@virgilio.it
Thank you John, so far the easiest way is to use ezanova() since I do not have to reorder the data and create iframe etc. Best Messaggio originale Da: pda...@gmail.com Data: 7-lug-2015 10.12 A: "John Fox" Cc: , Ogg: Re: [R] Sphericity for a repeated measure ANOVA with whithin and b

Re: [R] R: RE: Bonferroni post hoc test in R for repeated measure ANOVA with mixed within and between subjects design

2015-07-07 Thread Meyners, Michael
Fox [mailto:j...@mcmaster.ca] > Sent: Dienstag, 7. Juli 2015 03:24 > To: angelo.arc...@virgilio.it > Cc: Meyners, Michael; r-help@r-project.org > Subject: Re: [R] R: RE: Bonferroni post hoc test in R for repeated measure > ANOVA with mixed within and between subjects design > &g

Re: [R] R: RE: Bonferroni post hoc test in R for repeated measure ANOVA with mixed within and between subjects design

2015-07-06 Thread John Fox
Dear Angelo, The Bonferroni p-value is just the ordinary p-value times the number of tests, so, since R supports multiplication, you can apply the Bonferroni adjustment in R. Because Bonferroni tests for multiple comparisons can be very conservative, asking why you want to use them is a fair qu

[R] R: RE: Bonferroni post hoc test in R for repeated measure ANOVA with mixed within and between subjects design

2015-07-06 Thread angelo.arc...@virgilio.it
Dear Michael, thank you for your answer, however, I am not asking for the tukey with the bonferroni adjustment, but doing the post hoc with the bonferroni method. Apparently this is done easily in SPSS, I am wondering whether it is possible with R. Can anyone help me? Thanks in advance Angelo

Re: [R] Re categorizing components of varaibles

2015-02-17 Thread JS Huang
Hi, Here I use the data.frame b as an example to show how it can be accomplished. The sixth column of b has values 6 through 996 by an increment of 10. The statement sapply(b[,6],function(x)if(x==6){0}else{if(x==996){2}else{1}}) assigns 0 to 6, 2 to 996 and 1 to the rest in column 6. In your

Re: [R] Re-order levels of a categorical (factor) variable

2015-01-22 Thread Ravi Varadhan
Thursday, January 22, 2015 10:29 AM To: Bert Gunter Cc: William Dunlap; r-help@r-project.org; Ravi Varadhan Subject: Re: [R] Re-order levels of a categorical (factor) variable >>>>> Bert Gunter >>>>> on Wed, 21 Jan 2015 18:52:12 -0800 writes: > Bill/Rav

Re: [R] Re-order levels of a categorical (factor) variable

2015-01-22 Thread Martin Maechler
> Bert Gunter > on Wed, 21 Jan 2015 18:52:12 -0800 writes: > Bill/Ravi: > I believe the problem is that the factor is automatically created when > a data frame is created by read.table(). By default, the levels are > lexicographically ordered. The following reproduces

Re: [R] Re-order levels of a categorical (factor) variable

2015-01-21 Thread Bert Gunter
Bill/Ravi: I believe the problem is that the factor is automatically created when a data frame is created by read.table(). By default, the levels are lexicographically ordered. The following reproduces the problem and gives a solution. >library(lattice) > z <- data.frame(y = 1:9, x = rep(c("pre"

Re: [R] Re-order levels of a categorical (factor) variable

2015-01-21 Thread William Dunlap
Are you sure the factors of T are in the order you think they are? (Are you sure you are using the expected version of T.) Use print(levels(T)) to make sure. I tried timeCats <- c("Presurgery", "Day 30", "Day 60", "Day 180", "Day 365") d <- data.frame(T = factor(rep(timeCats, 11:15), lev

[R] Re-order levels of a categorical (factor) variable

2015-01-21 Thread Ravi Varadhan
Hi, I have a fairly elementary problem that I am unable to figure out. I have a continuous variable, Y, repeatedly measured at multiple times, T. The variable T is however is coded as a factor variable having these levels: c("Presurgery", "Day 30", "Day 60", "Day 180", "Day 365"). When I plot

[R] RE : Re: Apply Function to Columns

2014-10-24 Thread Sarah Schmid
Hello !  Yes, I realized just after sending you the email that I didn't cc the list, so I sent it again just after that.  And thank you very much for your help, it works perfectly !  And the package I used was ncf. Sarah Message d'origine De : Rui Barradas Date : A : Sar

Re: [R] re arrange according to first positions

2014-08-28 Thread MacQueen, Don
For future reference, perhaps creating an index variable when the data frame is first created and before ³multiple process and ordering² is done would be good. mydat$index <- seq(nrow(mydat)) -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925

Re: [R] re arrange according to first positions

2014-08-28 Thread Rui Barradas
Hello, If your data.frame is named 'dat', try something like the following. dat[order(rownames(dat)), ] Hope this helps, Rui Barradas Em 28-08-2014 08:56, Ragia Ibrahim escreveu: Dear all, I have a data frame, where multible process and ordering done ..can I re arrange (re order ) it rega

[R] re arrange according to first positions

2014-08-28 Thread Ragia Ibrahim
Dear all, I have a data frame, where multible process and ordering done ..can I re arrange (re order ) it regarding it' s original ROW index ? how? example Xi items numrber_list_items 38 8, 7, 3, 44 27 7, 3, 40 1 10 10

Re: [R] R: re: dataframe

2014-04-30 Thread arun
... > >---------- >Sent from my Nokia > >--Original message-- >From: pascalbe...@libero.it >To: >Date: Wednesday, April 30, 2014 9:40:06 AM GMT+0200 >Subject: R: Re: [R] dataframe > >thank you for your help but it doesn't work > >James >

Re: [R] R: re: dataframe

2014-04-30 Thread arun
ot;Treatment"), class = "factor"), rt = c(NA, NA, NA, 195.09555), mz = c(NA, NA, NA, 61.00722661), o066_010 = structure(c(9L, 7L, 8L, 2L), .Label = c("14043676.02", "14536204.77", "17652481.49", "5212485.416", "6731535.564", "9876651.476&

Re: [R] [Re: Does a survival probability(the probability not, experiencing an event) have to be non-increasing?

2014-03-22 Thread Andrews, Chris
on what you are willing to assume. From: Zhiyuan Sun [sam.d@gmail.com] Sent: Friday, March 21, 2014 10:48 PM To: Therneau, Terry M., Ph.D. Cc: r-help@r-project.org Subject: Re: [R] [Re: Does a survival probability(the probability not, experiencing

Re: [R] [Re: Does a survival probability(the probability not, experiencing an event) have to be non-increasing?

2014-03-21 Thread Zhiyuan Sun
Thanks Terry. Your explanation is right on the point. You solved my question about time-dependent covariate. When calculating survival at time t, you have to consider the exposure history before ant at time t. It is reasonable when we assume cumulative hazard before time t can be carried over to

Re: [R] [Re: Does a survival probability(the probability not, experiencing an event) have to be non-increasing?

2014-03-20 Thread Therneau, Terry M., Ph.D.
On 03/20/2014 06:00 AM, r-help-requ...@r-project.org wrote: My question is related to a cox model with time-dependent variable. When I think about it more, I get a little confused about non-increasing assumption for survival probability for an individual. For example, for a time-dependent ,say

[R] R: Re: how to extract consecutive subvetors of different lengths from an existing vector and create a matrix

2014-02-25 Thread bex
erent lengths from an existing vector and create a matrix, visit http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4685783&code=ZWxpc2FiZXR0YS5wZXRyYWNjaUBnbWFpbC5jb218NDY4NTc4M3w4ODEyMDMyNDg= -- View this message in context: http://r.789695.n4.nabbl

[R] Re. Confidence intervals for prediction with R2Bayesx

2014-01-13 Thread garth
Hello, I am using the R2Bayesx package to fit a GAM to time-series data and then using this model to extrapolate beyond the extent of the time-series. The prediction.bayesx function works quite well to predict the series, but does not seem to provide uncertainty estimates for the prediction. The

Re: [R] R: Re: R: Re: Information Frequency problem calculation

2013-10-08 Thread arun
.com Cc: Sent: Tuesday, October 8, 2013 11:48 AM Subject: R: Re: R: Re: [R] Information Frequency problem calculation Dear Master, I want to count separate it is another category >Messaggio originale >Da: smartpink...@yahoo.com >Data: 08/10/2013 17.30 >A: "jarod..

[R] re-coding variables

2013-10-01 Thread Robert Lynch
I am running a large mixed model, 65k entries on 11 fixed effects and one random. One of the fixed effects is "Course" a factor that takes on 14 different values >levels(Master.complete$Course) [1] "B101" "B2A" "B2B" "B2C" "C118A" "C118B" "C118C" "C2A" "C2B" [10] "C2C" "N101" "P7A" "

[R] Re : Re: Re : Re: Re : Privacy rights of an old user of this list

2013-09-26 Thread John Gonzalez
Dear Uwe, - Message d'origine - De : Uwe Ligges Envoyés : 22.09.13 10:55 À : John Gonzalez Objet : Re: Re : Re: [R] Re : Privacy rights of an old user of this list >> On 21.09.2013 22:40, John Gonzalez wrote: >> As I said previously, I'm only concerned about wha

[R] Re: Multiple vector elements into one character element

2013-09-25 Thread Lietz, Haiko
Hi A.K., This is exactly what I needed: x <- data.frame(Month = airquality$Month, Day = as.character(airquality$Day)) y <- aggregate(x$Day ~ x$Month, data = x, paste, collapse = ", ") write.table(y, "y.txt", row.names = FALSE, quote = FALSE, sep = '\t') The trick is to use collapse in the aggreg

Re: [R] Re : Re: Re : Privacy rights of an old user of this list

2013-09-22 Thread Uwe Ligges
John - Message d'origine - De : Uwe Ligges Envoyés : 21.09.13 10:26 À : Adan Leobardo Martinez Cruz Objet : Re: [R] Re : Privacy rights of an old user of this list The locations where the mailing list are archived are not even controlled by any member of R-core or the R foundat

[R] Re : Re: Re : Privacy rights of an old user of this list

2013-09-21 Thread John Gonzalez
, John - Message d'origine - De : Uwe Ligges Envoyés : 21.09.13 10:26 À : Adan Leobardo Martinez Cruz Objet : Re: [R] Re : Privacy rights of an old user of this list The locations where the mailing list are archived are not even controlled by any member of R-core or the R foundat

Re: [R] Re : Privacy rights of an old user of this list

2013-09-21 Thread Rainer M Krug
emius; Albin Blaschka; Duncan Murdoch; Jeff Newmiller; S > Ellison; Jim Lemon > Cc: r-help@r-project.org > Subject: [R] Re : Privacy rights of an old user of this list > > I would like to thank David for letting me publish this and discuss it > openly. I must acknowledge from the a

Re: [R] Re : Privacy rights of an old user of this list

2013-09-21 Thread Uwe Ligges
-help-boun...@r-project.org] on behalf of John Gonzalez [john.gonza...@gmx.fr] Sent: Monday, September 16, 2013 5:14 PM To: David Winsemius; Albin Blaschka; Duncan Murdoch; Jeff Newmiller; S Ellison; Jim Lemon Cc: r-help@r-project.org Subject: [R] Re : Privacy rights of an old user of this list I

Re: [R] Re : Privacy rights of an old user of this list

2013-09-17 Thread Adan Leobardo Martinez Cruz
behalf of John Gonzalez [john.gonza...@gmx.fr] Sent: Monday, September 16, 2013 5:14 PM To: David Winsemius; Albin Blaschka; Duncan Murdoch; Jeff Newmiller; S Ellison; Jim Lemon Cc: r-help@r-project.org Subject: [R] Re : Privacy rights of an old user of this list I would like to thank David for

[R] Re : Privacy rights of an old user of this list

2013-09-17 Thread John Gonzalez
I would like to thank David for letting me publish this and discuss it openly. I must acknowledge from the answers that I received to my post, that the administrators of this list are doing what seems to be fair to me: what most people demand or understand that is right. However I don't share yo

[R] RE : how to calculate the average values of each row in a matrix

2013-07-20 Thread Guibert TCHINDE
> vec = matrix(data=round(rnorm(15,1,2)),ncol=3) > vec [,1] [,2] [,3] [1,]11 -1 [2,]62 -1 [3,]002 [4,]0 -3 -2 [5,]112 > rowMeans(vec) [1] 0.333 2.333 0.667 -1.667 1.333 > apply(vec,1,mean) [1] 0.333 2.333 0.

[R] RE : use of formula in survey analysis with replicated weights

2013-06-28 Thread LE TERTRE Alain
Thanks for the workaround and the explanation Alain De : Milan Bouchet-Valat [nalimi...@club.fr] Date d'envoi : vendredi 28 juin 2013 19:20 À : LE TERTRE Alain Cc : 'R-help@r-project.org' Objet : Re: [R] use of formula in survey analysis with replicated wei

Re: [R] Re-start R issue on win7 [SEC=UNOFFICIAL]

2013-05-08 Thread annoporci
I have not experienced that, but have you tried to see if killing the processes helps? On Windows CTRL+ALT+DEL usually brings up the system monitor or whatever it's called, where you can see programs and processes currently running. If your R gets stuck in a loop then you may see some refer

Re: [R] Re-start R issue on win7 [SEC=UNOFFICIAL]

2013-05-08 Thread Jeff Newmiller
Have not experienced that. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playi

[R] Re-start R issue on win7 [SEC=UNOFFICIAL]

2013-05-08 Thread Yang, Xiaoping
Hi all, It is really annoying. The first time starting R, it works, but I cannot re-start R unless re-start my PC. Operation system is Win7. Anyone knows how to deal with issue? Cheers, Xiaoping ** IMPORTANT: This e-mail is

[R] Re

2013-04-23 Thread Vahe nr
Hi andrija djurovic, Thanks a lot for your replyand for your useful suggestions. Actually I need to run this script without user interaction, so when it is required to input Village I need to pass it automatically not by the user. Regards, Vahe [[alternative HTML version deleted]]

[R] Re...

2013-04-08 Thread Hey Sky
http://www.scenedenuit.com/xmwln/zwfpfz.nkeiq Hey Sky 4/8/2013 4:12:17 PM cbcdvutdvqnlpwsxx tmuadh [[alternative

Re: [R] Re-order variables listed in nomogram?

2013-03-21 Thread Frank Harrell
nomogram does not have an option for specifying a new order for the variables. With some exceptions you should be able to reorder the variables in the model formula to achieve the desired result. Frank Eleni Rapsomaniki-3 wrote > Hi, > I am using the function "nomogram" in the rms package for sur

[R] Re-order variables listed in nomogram?

2013-03-21 Thread Rapsomaniki, Eleni
Hi, I am using the function "nomogram" in the rms package for survival analysis. How is the order in which variables determined and how can I change it? I use it with a cph() model. Many Thanks Eleni Rapsomaniki Clinical Epidemiology Group Department of Epidemiology and Public Health University

Re: [R] Re move row.names column in dataframe

2013-03-14 Thread PIKAL Petr
Hi > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of jeharmse > Sent: Monday, March 11, 2013 5:28 PM > To: r-help@r-project.org > Subject: Re: [R] Re move row.names column in dataframe > > > 1.

Re: [R] Re move row.names column in dataframe

2013-03-12 Thread jeharmse
Thank you. This does what I want (apparently by coercing data.frame to list with no other structure). -- View this message in context: http://r.789695.n4.nabble.com/Remove-row-names-column-in-dataframe-tp856647p4661049.html Sent from the R help mailing list archive at Nabble.com. _

Re: [R] Re move row.names column in dataframe

2013-03-11 Thread jeharmse
> 1.If your data frame is numeric, change it to matrix. It isn't necessarily numeric. > 2.Or make your own function I think that's the solution, but the function has to handle both NA and non-numeric. equal.NA <- function(x,y) all(is.na(x)==is.na(y)) && all(is.na(x) | x=

Re: [R] Re move row.names column in dataframe

2013-03-11 Thread Peter Ehlers
On 2013-03-11 06:07, Jorgen Harmse wrote: identical(df[1,],df[2,]) is FALSE because of the row names. all( == ) is just a work-around that I attempted. Jorgen. I would just wrap the elements in c(): identical( c(df[1,]), c(df[2,]) ) Peter Ehlers On Mar 11, 2013, at 02:53 , PIKAL Petr w

Re: [R] Re move row.names column in dataframe

2013-03-11 Thread PIKAL Petr
as.character instead of as.numeric, the result will be probably same (except the warning) Regards Petr From: Jorgen Harmse [mailto:jorgen.har...@civitaslearning.com] Sent: Monday, March 11, 2013 2:08 PM To: PIKAL Petr Cc: r-help@r-project.org Subject: Re: [R] Re move row.names column in dataframe id

Re: [R] Re move row.names column in dataframe

2013-03-11 Thread Jorgen Harmse
identical(df[1,],df[2,]) is FALSE because of the row names. all( == ) is just a work-around that I attempted. Jorgen. On Mar 11, 2013, at 02:53 , PIKAL Petr wrote: >> >>> df <- data.frame(x=c(1,1,NA,NA), y=c(2,2,7,7)) >>> identical(df[1,],df[2,]) >> [1] FALSE >>> all(df[1,]==df[2,]) >> [1] TRU

Re: [R] Re move row.names column in dataframe

2013-03-11 Thread PIKAL Petr
Hi > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of jeharmse > Sent: Friday, March 08, 2013 7:41 PM > To: r-help@r-project.org > Subject: Re: [R] Re move row.names column in dataframe > > >

Re: [R] Re move row.names column in dataframe

2013-03-08 Thread jeharmse
... the row.names will not interfere with any merging operation ... Row names do not interfere with merge, but they cause other problems. In the example, I want to test whether rows have the same entries (in some or all columns). identical fails because of the row names, and all( == ) can fail if

[R] R: Re: Refer to previous row

2013-01-07 Thread Paolo Donatelli
It works! The rationale, if I have understood well, is to take my vector of N elements, ask to remove the first/last element, and replace the blank space with a given value. Thank you all for the support! -Original Message- From: Duncan Murdoch Date: Mon, 07 Jan 2013 13:16:50 To: Cc:

[R] (Re-posted as Plain Text ) Modelling a skew-normal distribution using glm/ mgcv

2012-12-08 Thread Saptarshi Guha
Hello, [ Sorry, I sent the last email as HTML, this time it's in plain text ] Suppose my variable,S, (time for something to start) is a skew-normal distribution [1]. Can glm and mgcv handle this type of distribution for the dependent variable? Regards Saptarshi [1] http://azzalini.stat.unipd.it/S

Re: [R] Re problem with "any" function

2012-11-17 Thread Rui Barradas
Hello, Why don't you keep it on the list? I'm Ccing R Help. If you put print statements just before the any(), print(ind.c) print(ind.r) print(ind.sgn) you'll see that all values are FALSE. So the problem is _not_ with any(). You must look somewhere else on the function. Hope this helps,

Re: [R] Re-projecting geotiff

2012-10-19 Thread Filoche
Thanks for the head-up Don. Regards, Phil -- View this message in context: http://r.789695.n4.nabble.com/Re-projecting-geotiff-tp4646616p4646736.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https

Re: [R] Re-projecting geotiff

2012-10-18 Thread MacQueen, Don
r-sig-geo would be a better place to ask this question. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 10/18/12 6:52 AM, "Filoche" wrote: >Dear R users, > >I'm currently trying to re-project a geotiff in another coord

[R] Re-projecting geotiff

2012-10-18 Thread Filoche
Dear R users, I'm currently trying to re-project a geotiff in another coordinate system. For instance, I have a tif image in UTM 19 zone which I would like to reproject into UTM 18. I was wondering if it was possible in R. Furthermore, I looked into 'rgdal' package, but I can't really find out if

[R] [Re] add reference lines (or grid) in background

2012-09-18 Thread Jose Iparraguirre
Dear Luigi, Here's an option: boxplot(x, boxcol="white", whiskcol="white",medcol="white",staplecol="white") abline(h=c(-1,0,1)) grid(NA, 4, lwd = 2) boxplot(x,add=T) Regards, José Iparraguirre -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org

Re: [R] Re-grouping data in R

2012-08-07 Thread Rui Barradas
Hello, Inline. Em 07-08-2012 19:56, Abraham Mathew escreveu: I have a data frame with a column of values that I want to bucket (group) into specific levels. str(dat)'data.frame': 3678 obs. of 39 variables: $ id : int 23 76 129 156 166 180 200 214 296 344 ...

Re: [R] Re-grouping data in R

2012-08-07 Thread David L Carlson
43-4352 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Abraham Mathew > Sent: Tuesday, August 07, 2012 1:57 PM > To: r-help@r-project.org > Subject: [R] Re-grouping data in R > > I have a data frame with

[R] Re-grouping data in R

2012-08-07 Thread Abraham Mathew
I have a data frame with a column of values that I want to bucket (group) into specific levels. > str(dat)'data.frame': 3678 obs. of 39 variables: $ id : int 23 76 129 156 166 180 200 214 296 344 ... $ final_purchase_amount : Factor w/ 32 levels "\\N","1082","110

Re: [R] Re : Matrix package loading problem "Error : object ‘kronecker’ is not exported by 'namespace:methods'"

2012-07-09 Thread RobMusk
Hi Bert, The version of Matrix that ships with base worked for me. The cran version of Matrix was the problem. To get it working I reinstalled R and did NOT update Matrix. Thanks to the package developers for their quick help on this one. Regards, Dr Robert Musk Senior Forest Biometrici

Re: [R] Re : Matrix package loading problem "Error : object ‘kronecker’ is not exported by 'namespace:methods'"

2012-07-09 Thread RobMusk
Hi Bert, The version of Matrix that ships with base worked for me. The cran version of Matrix was the problem. To get it working I reinstalled R and did NOT update Matrix. Regards, Dr Robert Musk Senior Forest Biometrician Management Research Forestry Tasmania 79 Melville St Hobart Austr

Re: [R] Re : Matrix package loading problem "Error : object ‘kronecker’ is not exported by 'namespace:methods'"

2012-07-09 Thread Bert Gunter
?":::" -- Bert On Mon, Jul 9, 2012 at 10:45 AM, Niels2 wrote: > Hallo Rob, > > have you figured out a solution to the error? I've got the same problem. > > regards > N. > > -- > View this message in context: > http://r.789695.n4.nabble.com/Matrix-package-loading-problem-Error-object-kronecker-i

Re: [R] Re : Matrix package loading problem "Error : object ‘kronecker’ is not exported by 'namespace:methods'"

2012-07-09 Thread Niels2
Hallo Rob, have you figured out a solution to the error? I've got the same problem. regards N. -- View this message in context: http://r.789695.n4.nabble.com/Matrix-package-loading-problem-Error-object-kronecker-is-not-exported-by-namespace-methods-tp4632861p4635878.html Sent from the R help m

[R] Re: Not able to write to PostgreSQL database using "dbWriteTable"

2012-06-13 Thread Prakash Thomas
Dear R User's, Thank you, Mark. The following code suggested by you worked for me. dbGetQuery(connAE1, sprintf("INSERT INTO test1 (id) VALUES ( %d );", i)) But I have a issue in passing "date and time data" as variable.If I hard code the value like bellow it workings. d

[R] Re : Re : Matrix package loading problem "Error : object ‘kronecker’ is not exported by 'namespace:methods'"

2012-06-10 Thread Pascal Oettli
Sorry, but I have no idea then. I run it on a win64, without error message. Best Regards. - Mail original - De : RobMusk À : r-help@r-project.org Cc : Envoyé le : Dimanche 10 juin 2012 8h56 Objet : Re: [R] Re : Matrix package loading problem "Error : object ‘kronecker’ i

[R] Re : generating random samples of IG distribution

2012-06-10 Thread Pascal Oettli
Hello, Try 'SuppDists' package. Best Regards  ps: it took less than 2 minutes for me by using a web search engine.. - Mail original - De : shirin nezampour À : "r-help@r-project.org" Cc : Envoyé le : Lundi 11 juin 2012 1h37 Objet : [R] generating random samples of IG distribution

Re: [R] Re : Matrix package loading problem "Error : object ‘kronecker’ is not exported by 'namespace:methods'"

2012-06-09 Thread RobMusk
Thanks Pascal, but all my packages are current. That is not the problem. Regards, -- View this message in context: http://r.789695.n4.nabble.com/Matrix-package-loading-problem-Error-object-kronecker-is-not-exported-by-namespace-methods-tp4632861p4632911.html Sent from the R help mailing list arc

[R] Re : Error when attempting to install tkrplot

2012-06-09 Thread Pascal Oettli
Hello, It is not an R issue but a Linux issue. Please check you have tcl/tk installed on your system. Best Regards, Pascal - Mail original - De : John À : r-help@r-project.org Cc : Envoyé le : Samedi 9 juin 2012 18h36 Objet : [R] Error when attempting to install tkrplot I am getting

[R] Re : Matrix package loading problem "Error : object ‘kronecker’ is not exported by 'namespace:methods'"

2012-06-08 Thread Pascal Oettli
Hello, Did you upgrade your R version from a previous one to the current one? If yes, probably you should use: > update.packages(checkBuilt=TRUE). Best Regards, Pascal - Mail original - De : RobMusk À : r-help@r-project.org Cc : Envoyé le : Samedi 9 juin 2012 9h52 Objet : [R] Matri

Re: [R] "Re-creating" distributions

2012-06-08 Thread Özgür Asar
Of course, if you have data points at hand. Thanks Bert, for pointing out. Ozgur -- View this message in context: http://r.789695.n4.nabble.com/Re-creating-distributions-tp4632739p4632849.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] "Re-creating" distributions

2012-06-08 Thread Özgür Asar
Dear Andras, A possible option might be checking the fit of your data to a specific distribution and generating the data from the distribution to which your data fit, with the parameters such as the MLE of them obtained by using the avaiable data. For instance, you can check whether your data is

Re: [R] "Re-creating" distributions

2012-06-08 Thread R. Michael Weylandt
probably way >> over my head. I was wondering if you could point me into the right direction >> using R to "re-build" the distribution that has the following parameters: >> >> mean: 0.007, median: 0.003, SD:0.011. >> >> I greatly apreciate your help, &g

[R] Re : Rose plot (like a windrose)

2012-06-08 Thread Pascal Oettli
Hello Martin, Did you try with 'polar.plot' from the 'plotrix' package? Best Regards, Pascal - Mail original - De : MartinD À : r-help@r-project.org Cc : Envoyé le : Vendredi 8 juin 2012 18h01 Objet : [R] Rose plot (like a windrose) Dear R Gurus, I spent some time in looking for hel

Re: [R] "Re-creating" distributions

2012-06-07 Thread Bert Gunter
Related comment: "Even the data aren't sufficient." -- Brian Joiner (some years ago). Explanation: See W.E. Deming on "analytic" vs "enumerative" statistics. --- Bert On Thu, Jun 7, 2012 at 8:06 PM, R. Michael Weylandt wrote: > Short answer: no, those are (in general) insufficient parameters t

Re: [R] "Re-creating" distributions

2012-06-07 Thread R. Michael Weylandt
Short answer: no, those are (in general) insufficient parameters to characterize a distribution. Long answer: unfortunately, it's not uncommon that those "summary statistics" are the only ones reported based on someone or other's limited experience with the Gaussian. There are a few things you cou

  1   2   3   4   5   6   7   8   9   10   >