Re: [R] FW: Group by and duplicate a value/dplyr

2021-05-11 Thread Elahe chalabi via R-help
Hi Petr, Thanks for your help! it works perfectly fine.  On Tuesday, May 11, 2021, 01:36:50 PM GMT+2, PIKAL Petr wrote: I forgot to cc to rhelp. Petr Hi Dunno how to do it by dplyr I would use ave df$MinValue <- ave(df$Value, paste(df$Class, df$Department), FUN = function(x) min(

Re: [R] FW: problem with markov random field smooths in mgcv

2020-04-30 Thread Wilcox, Chris (O&A, Hobart)
Thanks very much Simon, that is super helpful. Best, Chris On 25/3/20, 9:47 am, "Simon Wood" wrote: Hi Chris, It's kind of a documentation glitch, a node is not supposed to be listed as its own neighbour (it causes the diagonal entries in the penalty matrix to be over-w

Re: [R] FW: problem with markov random field smooths in mgcv

2020-03-24 Thread Simon Wood
Hi Chris, It's kind of a documentation glitch, a node is not supposed to be listed as its own neighbour (it causes the diagonal entries in the penalty matrix to be over-written by the wrong value). i.e. the neighbour list should be.  NB <- list()     NB$'East Timor' <- c(2,15)     NB$Austral

Re: [R] FW: problem with markov random field smooths in mgcv

2020-03-18 Thread Wilcox, Chris (O&A, Hobart)
Hi David, Thanks for the comments. I am running the analysis on a mac OS 10.12.6, using R R 3.5.3 GUI 1.70 El Capitan build (7632), and mgcv 1.8-31. I am aware of the procedure of using data = "xx" in a call to gam. I am having a strange issue locally, in that gam does not see to be able to

Re: [R] FW: problem with markov random field smooths in mgcv

2020-03-18 Thread David Winsemius
On 3/18/20 12:44 AM, Wilcox, Chris (O&A, Hobart) wrote: Hi all, I am trying to fit a model with a markov random field smooth in mgcv. I am having some trouble with getting it to run, and in particular I am getting the message Error in initial.sp(w * x, S, off) : S[[1]] ma

Re: [R] Fw: How to read a file saved in Rstudio

2019-09-12 Thread Jeff Newmiller
Please keep the mailing list included with reply-all. I misread your error. I suspect you need to use a newer version of R on your "pc". On September 12, 2019 12:29:39 AM PDT, Faheem Jan wrote: >Jeff Newmiller i dies not understand your answer,i run the simulation >it give result in pc and i sa

Re: [R] Fw: How to read a file saved in Rstudio

2019-09-12 Thread Jeff Newmiller
Use the correct function.. readRDS. On September 11, 2019 11:28:41 PM PDT, Faheem Jan via R-help wrote: > > >Subject: How to read a result  saved in Rstudio >HI, i run the simulation result in other computer with high speed >computer ,i save the result in the rda file. know i want to open this >

Re: [R] Fw: problem with nlsLM.....

2019-03-20 Thread J C Nash
Of course, you might just try a more powerful approach. Duncan responded to the obvious issue earlier, but the second problem seems to need the analytic derivatives of the nlsr package. Note that nlsLM uses the SAME very simple forward difference derivative approximation for the Jacobian. Optimi

Re: [R] Fw: problem with nlsLM function

2019-03-19 Thread akshay kulkarni
Dear duncan, Sorry to bother you with such a silly mistake I didn,t notice it! Sent: Tuesday, March 19, 2019 6:01 PM To: akshay kulkarni; R help Mailing list Subject: Re: [R] Fw: problem with nlsLM function On 19/03/2019 8:26 a.m., akshay kulkarni wrote

Re: [R] Fw: problem with nlsLM function

2019-03-19 Thread Duncan Murdoch
On 19/03/2019 8:26 a.m., akshay kulkarni wrote: dear members, also,I can provide HM1,HM2 and HM3 if needed From: R-help on behalf of akshay kulkarni Sent: Tuesday, March 19, 2019 5:43 PM To: R help Mailing list Subjec

Re: [R] Fw: inconsistency in nls output....

2019-03-06 Thread akshay kulkarni
: Wednesday, March 6, 2019 10:40 PM To: akshay kulkarni; R help Mailing list Subject: Re: [R] Fw: inconsistency in nls output nls() is a Model T Ford trying to drive on the Interstate. The code is quite old and uses approximations that work well when the user provides a reasonable problem, but

Re: [R] Fw: inconsistency in nls output....

2019-03-06 Thread J C Nash
nls() is a Model T Ford trying to drive on the Interstate. The code is quite old and uses approximations that work well when the user provides a reasonable problem, but in cases where there are mixed large and small numbers like yours could get into trouble. Duncan Murdoch and I prepared the nlsr

Re: [R] Fw: inconsistency in pbmclapply...

2018-10-16 Thread Bert Gunter
As I think you hve been told before, most attachments don't make it through the mail server. Use ?dput instead to include data. Also, post in plain text, not html. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkel

Re: [R] Fw: inconsistency in display of character vector....

2018-07-08 Thread Jeff Newmiller
Using dput and sending your questions with the plain text option as described in [1] will allow you to share your data with less ambiguity. To be sure you have supplied all the code needed for us to reproduce your problem, use [3]. [1] http://stackoverflow.com/questions/5963269/how-to-make-a-gr

Re: [R] Fw: subsetting lists....

2018-06-18 Thread Eric Berger
My response does not have an explicit for loop. On Mon, Jun 18, 2018 at 2:15 PM, akshay kulkarni wrote: > correctionI want the method without a for loop > > From: akshay kulkarni > Sent: Monday, June 18, 2018 4:25 PM > To: R help Mailing list > Subject: subs

Re: [R] Fw: modified mankendal

2017-11-24 Thread Jim Lemon
Hi Elham, The error message: Error in if (S == 0) { : missing value where TRUE/FALSE needed means that for at least one S, the value is missing. The best advice I can give you is to load the data frame X1 as in your code above, and try something like: which.na<-function(x) return(which(is.na(x))

Re: [R] Fw: modified mankendal

2017-11-23 Thread Jim Lemon
Hi Elham, The error message is pretty explicit. Check your dataset for missing values. Jim On Thu, Nov 23, 2017 at 6:14 AM, Elham Fakharizade via R-help wrote: > > Hello DearI used modifiedmk package for trend analyses.this is my script > require(modifiedmk)X1<-read.table("c:/elham/first > ar

Re: [R] Fw: modified mankendal

2017-11-23 Thread John Kane via R-help
Would you resubmit your question in plain text mode?  This is a plain text list and the HTML gets stripped away. What is left is this Hello DearI used modifiedmk package for trend analyses.this is my script  require(modifiedmk)X1<-read.table("c:/elham/first article/r/Spring_NDVI-1.txt",skip=2,he

Re: [R] FW: Time Series

2017-11-07 Thread Eric Berger
Following Erin's pointer: library(zoo) times <- seq(from=as.POSIXct("2015-12-18 00:00:00"), to=as.POSIXct("2017-10-24 23:00:00"), by="hour") mydata <- rnorm(length(times)) tseri <- zoo( x=mydata, order.by=times ) HTH, Eric On Tue, Nov 7, 2017 at 9:59 AM, Erin Hodgess wrote: > Hello!

Re: [R] FW: Time Series

2017-11-07 Thread Erin Hodgess
Hello! What is the error message, please? At first glance, you are using the "ts" function. That doesn't work for hourly frequency. You may want to create a zoo object. This is Round One. Sincerely, Erin On Tue, Nov 7, 2017 at 1:46 AM, Emre Karagülle wrote: > > Hi, > I would like to ask a

Re: [R] Fw: passing different sample sizes

2017-09-25 Thread Bert Gunter
Your code is full of syntactic errors. What do you think 1.71(se) means? After you clean up your code, something like this might be what you want: out <- lapply(seq(40,500,by = 25), f) To get plots, just stick in a plot statement after you define m and d. Have you gone through any R tutorials?

Re: [R] Fw: passing different sample sizes

2017-09-25 Thread Bert Gunter
1. 2o is gibberish; 20 is the number of fingers and toes most of us have. 2. This is a plain text list. Your code became gibberish with your HTML post. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Be

Re: [R] Fw: Need Help - R Programming - Using iteration value to change field names for processing for every iteraion

2017-05-30 Thread Bert Gunter
Your fields are adjacent, right? If so, you do not need to refer to them by name to accomplish this. Please spend some (more) time with an R tutorial or two as Rolf suggested, especially with "indexing". -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along a

Re: [R] Fw: Averaging without NAs

2017-03-02 Thread Ng Bo Lin
Hi Elahe, You can do so using the mean function, mean(), by specifying an additional argument, na.rm = TRUE. In this case, you specify that you wish to remove (rm) all NA values in the columns. —> mean($X2016.Q1, na.rm = T). By default, na.rm is set to FALSE, so mean() will return a NA value.

Re: [R] Fw: Regex problem

2017-01-05 Thread Carl Sutton via R-help
Thank you gentlemen, thank you!   All worked as you said it would and my headers are now error free. And David, thanks for the reference material cite.  I will looking at that this weekend.  Carl Sutton On Thursday, January 5, 2017 12:12 PM, David Winsemius wrote: > On Jan 5, 2017,

Re: [R] Fw: Regex problem

2017-01-05 Thread David Winsemius
> On Jan 5, 2017, at 10:09 AM, Carl Sutton via R-help > wrote: > > Re-sending help request, went to wrong addy first time. > r-help-requ...@r-project.org > > Belated Happy new year to the Guru's: > > I have a data frame with 570+ columns and in those column headers yours truly > has a few

Re: [R] Fw: Urgent help

2016-12-27 Thread David Winsemius
> On Dec 26, 2016, at 9:09 PM, amit rathee > wrote: > > The text file you attached has no commas. Perhaps the separators are tabs and you really need to use `read.delim` instead of `read.csv`. David Winsemius Alameda, CA, USA __ R-help@r-project.

Re: [R] Fw: R problem

2016-09-27 Thread John Kane
We have a "Do not help with homework" policy on R-help. We think that a student should speak with his or her instructor or tutor if help is needed. So you are unlikely to get much help here though it is possible. For future reference, 1. your script did not arrive. The data did. R-help is very

Re: [R] Fw: R problem

2016-09-27 Thread Bert Gunter
This list has a *no homework* policy. 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 ) On Tue, Sep 27, 2016 at 7:18 AM, Elham Fakharizade via R-help w

Re: [R] Fw: How I can calculate the value of response variable

2016-06-26 Thread rezvan hatami via R-help
ter now? From: Bert Gunter To: rezvan hatami Cc: "r-help@r-project.org" Sent: Monday, 27 June 2016, 10:34 Subject: Re: [R] Fw: How I can calculate the value of response variable Is this homework? This list tries to enforce  a no homework policy... If not, it looks to me a

Re: [R] Fw: How I can calculate the value of response variable

2016-06-26 Thread rezvan hatami via R-help
the right thing. Cheers From: Bert Gunter To: rezvan hatami Cc: "r-help@r-project.org" Sent: Monday, 27 June 2016, 10:34 Subject: Re: [R] Fw: How I can calculate the value of response variable Is this homework? This list tries to enforce  a no homework policy... If not, i

Re: [R] Fw: How I can calculate the value of response variable

2016-06-26 Thread Bert Gunter
Is this homework? This list tries to enforce a no homework policy... If not, it looks to me as if you have made no effort to learn R nor have you read and followed the posting guide. We generally expect posters to have made reasonable efforts to do both and demonstrate what they have tried and ho

Re: [R] Fw: Aw: Re: Building a binary vector out of dichotomous variables

2016-06-17 Thread PIKAL Petr
Hi Your approach seems to me rather tricky This should work make_bv <- function(dataset, input_variables) { dd <- which(names(dataset) %in% input_variables) dat<-dataset[,dd] x <- 10^(ncol(dat):0) result <- cbind(dataset, binary_vec=x[1]+rowSums(sweep(dat, 2, x[-1], "*"))) result} make_bv(dat

Re: [R] Fw: i need to install "Rclimdex"........Senior Scientists , BARI

2016-06-05 Thread Sarah Goslee
The RClimDex website has instructions for obtaining and installing this package, and for obtaining and installing R if you also need to do that: http://etccdi.pacificclimate.org/software.shtml You must follow those directions, as the necessary first step is obtaining a download password from the m

Re: [R] Fw: R STUDIO crashing

2016-05-19 Thread Bert Gunter
Rezvan: "This is not help after keeping me waiting for long time. Such a waste of time corresponding with you. " You do understand that this is entirely a volunteer effort, do you not? There is no guarantee that you will get any response at all, nor that any that you do receive is actually helpf

Re: [R] Fw: Generating 3Dplot in lattice package

2016-05-03 Thread William Dunlap via R-help
See if you can use is.nan() to figure out which values of B, Bmax, ..., cause the result to be NaN (not a number). One possibility is if B were always negative so abs(B)/max(B) could be negative: (negative)^(non-integer power) is NaN. Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, May 3, 2

Re: [R] Fw: Generating 3Dplot in lattice package

2016-05-03 Thread David Winsemius
> On May 3, 2016, at 3:54 AM, T.Riedle wrote: > > Something is wrong here. The formula > > pmin(psi/VaR,exp(((abs(B)/Bmax)^w2)*log((psi/VaR),2.718182))) > > > provides a time series. Nevertheless, the returned values are incorrect and > it produces NANs. The only thing we can conclude at th

Re: [R] FW: Multivariate ARIMA

2016-03-01 Thread Thomas Lofaro
Gilbert [mailto:pgilbert...@gmail.com] Sent: Monday, February 15, 2016 6:27 PM To: Thomas Lofaro Cc: r-help@r-project.org Subject: Re: [R] FW: Multivariate ARIMA See also package dse. There are examples in the guide: http://cran.at.r-project.org/web/packages/dse/vignettes/Guide.pdf Paul On 02

Re: [R] Fw: removing factor values in the main data frame

2016-03-01 Thread Jeff Newmiller
I advocate not converting to factor in the first place. Delay that until you won't be wanting specific levels to be accounted for. -- Sent from my phone. Please excuse my brevity. On March 1, 2016 9:33:31 AM PST, David L Carlson wrote: >You need to learn how to send emails in plain text since

Re: [R] Fw: removing factor values in the main data frame

2016-03-01 Thread David L Carlson
You need to learn how to send emails in plain text since html gets mangled on r-help. See your message below. If I understand your question, it has to do with what happens to factor levels when you subset your data. Subsetting a factor does not remove empty factor levels. This is documented on t

Re: [R] FW: Multivariate ARIMA

2016-02-15 Thread Paul Gilbert
See also package dse. There are examples in the guide: http://cran.at.r-project.org/web/packages/dse/vignettes/Guide.pdf Paul On 02/14/2016 06:00 AM, r-help-requ...@r-project.org wrote: Date: Fri, 12 Feb 2016 18:12:37 + From: Thomas Lofaro To:"r-help@R-project.org" Subject: [R] FW: Multi

Re: [R] Fw: Multiple Integrals

2015-08-30 Thread David Winsemius
On Aug 30, 2015, at 8:41 AM, Shant Ch via R-help wrote: > Thank you very much to all for all your responses. > > @Dr. Winsemius, E[f(X)] >=f(E(X)) if f is convex. Now we know |x| is convex > function, so clearly in this scenario if we compute the expectation of the > ((X1+X2+X3)/3-X4) and then

Re: [R] Fw: Downloading R

2015-05-13 Thread MacQueen, Don
Hmmm. Follow the instructions at http://www.r-project.org/ After choosing a mirror, you will reach a page that says, in part: partial quote Source Code for all Platforms Windows and Mac users most likely want to download the precompiled binaries listed in the upper box, not the sou

Re: [R] FW: New package apex 1.0.0 released on CRAN

2015-04-16 Thread Bert Gunter
This sounds more appropriate for Bioconductor, if you haven't already submitted/announced it there. Cheers, Bert On Thursday, April 16, 2015, Jombart, Thibaut wrote: > > Dear all, > > (apologies for multiple posting) > > On behalf of the apex development team (E. Paradis, K. Schliep, Z. Kamvar,

Re: [R] FW: R demos or tutorials

2014-12-30 Thread Jeff Newmiller
If you entered demo() at the R prompt and got the stated error then I would venture that your installation is faulty. Another function that should work is sessionInfo() and the output of that function can be helpful to us in troubleshooting. However, I would strongly consider looking into

Re: [R] FW: R Statistics

2014-12-03 Thread Chel Hee Lee
Or, you may use this approach: > attach(achtergrond) > spits <- ifelse(uurenminuut >= 5.30 & uurenminuut < 9.30, "morning", + ifelse(uurenminuut >=16.30 & uurenminuut < 19.0, "evening", + "between")) > table(spits) spits between evening morning 1636 142 579 > I personally like the app

Re: [R] FW: R Statistics

2014-12-02 Thread William Dunlap
You can do this in 2 steps - have cut() make a factor with a different level for each time period then use levels<-() to merge some of the levels. > z <- cut(.5:3.5, breaks=c(0,1,2,3,4), labels=c("0-1", "1-2", "2-3", "3-4")) > levels(z) [1] "0-1" "1-2" "2-3" "3-4" > levels(z) <- c("betw

Re: [R] FW: needs help in augented plot

2014-05-16 Thread Rolf Turner
On 16/05/14 19:45, Mir Salam wrote: Dear Med venlig hilsen and all Thanks a lot for your attention and valuable codes. I produced the graph using the follwing code. I fitted mixed effects dominant height model. The grpah is showing plot-specific dominant height against Age. You are not very

Re: [R] Fw: Save multiple plots as pdf or jpeg

2014-04-23 Thread ONKELINX, Thierry
oun...@r-project.org] Namens Pavneet Arora Verzonden: woensdag 23 april 2014 11:14 Aan: Jeff Newmiller CC: r-help@r-project.org Onderwerp: Re: [R] Fw: Save multiple plots as pdf or jpeg Sorry I should have been more clearer. Let me repharse. At the moment I have a loop that plots a histogram of the

Re: [R] Fw: Save multiple plots as pdf or jpeg

2014-04-23 Thread Pavneet Arora
T)), col="brown",lwd=3,add=T) # readline(prompt="Press [enter] to continue") } dev.off() Hope this is much clearer? From: Jeff Newmiller To: Pavneet Arora/UK/RoyalSun@RoyalSun, r-help@r-project.org Date:

Re: [R] Fw: Save multiple plots as pdf or jpeg

2014-04-22 Thread Jeff Newmiller
Sounds like you are getting what you want... except that you used the word "but". If you are not getting what you want, then what is it that you do want? In particular, how do you intend to review or use many plots generated at once if not in a PDF file? -

Re: [R] Fw: Save multiple plots as pdf or jpeg

2014-04-22 Thread starter
That is what I was trying to achieve; i.e. plot all my graphs using a loop function. But somewhere in the loop it converts each graph into png or bitmap image and then compiles all these png or bitmap images in a pdf file. So each page in a pdf file is a bitmap or png picture of my graph. Does th

Re: [R] Fw: Save multiple plots as pdf or jpeg

2014-04-16 Thread Uwe Ligges
help@r-project.org, pavnee...@yahoo.co.uk Date: 15/04/2014 14:08 Subject:Re: [R] Fw: Save multiple plots as pdf or jpeg You have > 1e6 observations and your lines() have these many segments, try to plot the sensity only with few hndreds of segemnts. Best, Uwe Ligges On 15.04.2014

Re: [R] Fw: Save multiple plots as pdf or jpeg

2014-04-16 Thread Pavneet Arora
Uwe Ligges To: Pavneet Arora/UK/RoyalSun@RoyalSun, r-help@r-project.org, pavnee...@yahoo.co.uk Date: 15/04/2014 14:08 Subject: Re: [R] Fw: Save multiple plots as pdf or jpeg You have > 1e6 observations and your lines() have these many segments, try to plot the sensity only with few h

Re: [R] Fw: Save multiple plots as pdf or jpeg

2014-04-15 Thread Uwe Ligges
You have > 1e6 observations and your lines() have these many segments, try to plot the sensity only with few hndreds of segemnts. Best, Uwe Ligges On 15.04.2014 12:27, Pavneet Arora wrote: Hello All, I have multiple plots that I want to save it a single file. At the moment, I am saving as pd

Re: [R] FW: Reading output of a GLMM run in R

2014-04-13 Thread Ben Bolker
John Kane inbox.com> writes: > > Can you resend the information in plain text? > It looks like you sent it in html format and it is very close to > completely unreadable. > > John Kane > Kingston ON Canada You've also posted this question at CrossValidated: http://stats.stackexchange.com/

Re: [R] FW: Reading output of a GLMM run in R

2014-04-13 Thread John Kane
Can you resend the information in plain text? It looks like you sent it in html format and it is very close to completely unreadable. John Kane Kingston ON Canada > -Original Message- > From: rut...@hotmail.co.uk > Sent: Sun, 13 Apr 2014 00:28:43 + > To: r-help@r-project.org > Subj

Re: [R] Fw: select .txt from .txt in a directory

2013-11-08 Thread Sarah Goslee
Hi, I'm not particularly interested in opening unsolicited binary attachments. Why don't you use dput() to provide part of your data to the R-help list (copied on this email; emailing just me not being that useful). You still haven't told us what you want to do with the named text files - read t

Re: [R] FW: Nadaraya-Watson kernel

2013-11-07 Thread Liaw, Andy
Use KernSmooth (one of the recommended packages that are included in R distribution). E.g., > library(KernSmooth) KernSmooth 2.23 loaded Copyright M. P. Wand 1997-2009 > x <- seq(0, 1, length=201) > y <- 4 * cos(2*pi*x) + rnorm(x) > f <- locpoly(x, y, degree=0, kernel="epan", bandwidth=.1) > plo

Re: [R] FW: Transposing the output of 'table'

2013-10-07 Thread peter dalgaard
On Oct 6, 2013, at 20:25 , Andrea Lamont wrote: > If t(table(OBJECT)) does not work, does: > u<-as.matrix(table(OBJ)) > t(u) > > -i.e. use matrix operations? Please try before posting... table() results in a 1d table, i.e. a vector; t() of a vector is a row matrix, so it still displays horis

Re: [R] FW: Transposing the output of 'table'

2013-10-06 Thread Andrea Lamont
If t(table(OBJECT)) does not work, does: u<-as.matrix(table(OBJ)) t(u) -i.e. use matrix operations? On Sun, Oct 6, 2013 at 1:47 PM, LAMONT, ANDREA wrote: > > > > > From: r-help-bounces@r-project.orgOn Behalf OfBerend Hasselman > Sent: Sunday, October 0

Re: [R] FW: Library update from version

2013-09-30 Thread Steve Lianoglou
Hi, On Mon, Sep 30, 2013 at 12:44 PM, Ista Zahn wrote: > On Mon, Sep 30, 2013 at 2:49 PM, Steve Lianoglou > wrote: >> Hi, >> >> On Mon, Sep 30, 2013 at 11:12 AM, Cem Girit wrote: >>> Hello, >>> >>> >>> >>> I recently installed version 3.0.1 of R on to a computer. I >>> have a wo

Re: [R] FW: Library update from version

2013-09-30 Thread Ista Zahn
On Mon, Sep 30, 2013 at 2:49 PM, Steve Lianoglou wrote: > Hi, > > On Mon, Sep 30, 2013 at 11:12 AM, Cem Girit wrote: >> Hello, >> >> >> >> I recently installed version 3.0.1 of R on to a computer. I >> have a working installation for a Statconn application using R version >> 2.15.

Re: [R] FW: Library update from version

2013-09-30 Thread Dennis Murphy
In this case the OP probably does need to reinstall contributed packages since going from 2.15.x to 3.0.y entails a major version change in R. Dennis On Mon, Sep 30, 2013 at 11:49 AM, Steve Lianoglou wrote: > Hi, > > On Mon, Sep 30, 2013 at 11:12 AM, Cem Girit wrote: >> Hello, >> >> >> >>

Re: [R] FW: Library update from version

2013-09-30 Thread Steve Lianoglou
Hi, On Mon, Sep 30, 2013 at 11:12 AM, Cem Girit wrote: > Hello, > > > > I recently installed version 3.0.1 of R on to a computer. I > have a working installation for a Statconn application using R version > 2.15.0 on another computer. I have many libraries under this old > install

Re: [R] FW: Nested and/or crossed and 2 level random factor

2013-07-11 Thread Bert Gunter
This is not the best place for this post. Post instead to r-sig-mixed-models or r-sig-ecology . Cheers, Bert On Thu, Jul 11, 2013 at 8:48 AM, Linda Bürgi wrote: > > > > > Dear All, > > I have two quick questions about my study design. For 4 years, once every > season, we destructively sampled

Re: [R] Fw: Remove from mailing list

2013-06-26 Thread David Winsemius
On Jun 26, 2013, at 7:37 PM, dinesh wadhwani wrote: > This has bounced back twice already - would help if anybody cna remove me > from the list and close my account. I have been deleting 100s of emails daily > from my yahoo inbox becaue i cannot get them to stop, even after i canceld > my acc

Re: [R] FW: Kernel smoothing with bandwidth which varies with x

2013-05-23 Thread Uwe Ligges
On 23.05.2013 18:10, IOANNA wrote: Hello all, I would like to use the Nadaraya-Watson estimator assuming a Gaussian kernel: So far I sued the library(sm) library(sm) x<-runif(5000) y<-rnorm(5000) plot(x,y,col='black') h1<-h.select(x,y,method='aicc') lines(ksmooth(x,y,bandwidth=h1)) which work

Re: [R] Fw: Request for information

2013-05-15 Thread Bert Gunter
Outrageous! http://www.r-project.org/ On Tue, May 14, 2013 at 11:53 PM, Ravishankar Kandallu < ravishankar.kanda...@tcs.com> wrote: > Dear Sir, > > Greetings. I am Ravishankar from Platform Solutions function of Tata > Consultancy Services, Mumbai India. I am associated with team within >

Re: [R] Fw: Re: Help

2013-04-27 Thread Jeff Newmiller
On Sat, 27 Apr 2013, Zilefac Elvis wrote: Hi Jeff, Attached are sample files from the 110 files. When you delete those letters, some values will stay put in that same cell. Atem. It looks like these are fixed format files. You should be using read.fwf and write.fwf instead of read.table and w

Re: [R] Fw: split date and time

2013-04-12 Thread Ye Lin
Thanks! On Fri, Apr 12, 2013 at 3:30 PM, arun wrote: > > > > > - Forwarded Message - > From: arun > To: Ye Lin > Cc: > Sent: Friday, April 12, 2013 6:25 PM > Subject: Re: [R] split date and time > > > > Hi Ye, > > Is this okay? > > dat2<-cbind(dat1[,-2],do.call(rbind,strsplit(dat1[,2]

Re: [R] Fw: Reversing data transformation

2013-04-06 Thread Uwe Ligges
On 06.04.2013 22:21, Beatriz González Domínguez wrote: From: aguitatie...@hotmail.com Sent: Friday, April 05, 2013 11:47 PM To: r-help@r-project.org ; R Help Subject: Reversing data transformation Hi everybody, I would be very grateful if you could give me your thoughts on the following is

Re: [R] Fw: rpart

2013-01-28 Thread David Winsemius
On Jan 28, 2013, at 9:06 PM, carol white wrote: Should I understand that this message was received? It's always possible to check the Archives for this question. -- David. Thanks - Forwarded Message - From: carol white To: "r-h...@stat.math.ethz.ch" Sent: Sunday, January 27,

Re: [R] Fw: regarding plot

2012-12-12 Thread Jeff Newmiller
... origin pro? Then why are you here? It is not clear from your message that this has anything to do with R. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.

Re: [R] Fw: quantreg installation and conflicts with R 2.15.2

2012-12-01 Thread Uwe Ligges
On 30.11.2012 22:10, Brian S Cade wrote: Just noticed that I get a similar error about object 'kronecker' in "Matrix" package when trying to load "lme4". So this is a more pervasive problem. Probably you have a mixture of packages for various versions of R around. So after checking if all

Re: [R] FW: Select a random subset of rows out of matrix

2012-11-21 Thread Rui Barradas
7 #8 4 79 A.K. - Original Message - From: Madhu Ganganapalli To: "r-help@r-project.org" Cc: Sent: Wednesday, November 21, 2012 4:10 AM Subject: Re: [R] FW: Select a random subset of rows out of matrix Hi, This is Madhu and I have a following doubt please give a solution... **>i ha

Re: [R] FW: Select a random subset of rows out of matrix

2012-11-21 Thread arun
ot;r-help@r-project.org" Cc: Sent: Wednesday, November 21, 2012 4:10 AM Subject: Re: [R] FW: Select a random subset of rows out of matrix Hi,   This is Madhu and I have a following doubt please give a solution... **>i have the following data frame from this i want to select a 80% of data randomly

Re: [R] FW: Select a random subset of rows out of matrix

2012-11-21 Thread Madhu Ganganapalli
Hi, This is Madhu and I have a following doubt please give a solution... **>i have the following data frame from this i want to select a 80% of data randomly in such a way that if the selected records are 1 and then we have to get the all records corresponding to 1 similarly for 2 also and soon

Re: [R] FW: Two-line title in R legend

2012-11-12 Thread David Winsemius
On Nov 11, 2012, at 7:13 PM, Gabriel Toro wrote: > Hi, > > I am trying to use a legend title that is a bit too long for one line. To > try to break the title in two lines, I am using > > legend (title="Top of Title\nbottom of title", etc. ) > > R prints the title as two lines, but the top

Re: [R] FW: Two-line title in R legend

2012-11-11 Thread David L Carlson
The top line is not outside the box in this example, but the bottom text line is too close to the bottom. You can turn off drawing the box in legend(). Store the return value of legend() which indicates where the box would have been drawn and use rect() to add it after increasing the dimension you

Re: [R] Fw: 95% Q-Q Plot error message

2012-11-04 Thread R. Michael Weylandt
Please don't double post. And we'll need a reproducible example: http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example Michael On Sun, Nov 4, 2012 at 6:50 PM, wrote: > Can someone please help with the below - thanks! > > Warning messages: > 1: Not plotting obser

Re: [R] FW: replace repeated id in a pedigree list

2012-10-31 Thread Terry Therneau
> I use kinship package of R and it doesn't create a kinship matrix with repeated id. The kinship package is out of date, use the kinship2 and coxme packages (it was split into two parts). Then the problem you describe no longer exists -- the kinship function no longer requires each subject i

Re: [R] FW: replace repeated id in a pedigree list

2012-10-30 Thread Rui Barradas
Hello, Ok, try the following. fun <- function(x, d, last){ new <- last if(any(d)){ ii <- which(d) for(i in ii){ new <- new + 1 old <- x$ID[i] x$ID[i] <- new x$FA_ID[x$FA_ID == old] <- new x$MO_ID[x$MO_ID == old]

Re: [R] FW: [r] How to pick colums from a ragged array?

2012-10-23 Thread Stuart Leask
So I get my list of IDs to exclude from: g.rr<-do.call(rbind, g.r)[1] dim(g.rr) g.rr[1:(dim(g.rr)[1]/2)] Many thanks. Stuart -Original Message- From: Rui Barradas [mailto:ruipbarra...@sapo.pt] Sent: 23 October 2012 13:42 To: Stuart Leask Cc: r-help@r-project.org Subject: Re: FW: [R] [r

Re: [R] FW: [r] How to pick colums from a ragged array?

2012-10-23 Thread Rui Barradas
Hello, You're right, getRepeat returns a list of data.frames, one per each ID. To put them all in the same df use do.call(rbind, g.r) Rui Barradas Em 23-10-2012 13:36, Stuart Leask escreveu: Sorry, I must be a bit thick.! getRepeat gives me the data with duplicates - but I don't seem to be a

Re: [R] FW: Create and Assign value into a variable from Another variable

2012-08-28 Thread Maarten Kruijver
You probably want to use get(), which is the converse of assign(): rbind(get(Variable_1), data.frame(read.csv("c:\\My2ndData.csv"))) On Tue, Aug 28, 2012 at 11:16 AM, Akkara, Antony (GE Energy, Non-GE) < antony.akk...@ge.com> wrote: > > Ok. > Here I have a variable called "Variable_1". > > Vari

Re: [R] Fw: Extract upper case letters

2012-06-28 Thread mdvaan
Thanks, all solutions worked like a charm. Math arun kirshna wrote > > - Forwarded Message - > From: arun > To: mdvaan > Cc: R help > Sent: Thursday, June 28, 2012 1:44 AM > Subject: Re: [R] Extract upper case letters > > Hi, > > Try this: >

Re: [R] FW: R help - shell() in Linux

2012-06-24 Thread Sarah Goslee
You don't tell us what you're trying to do, but system() might be useful. Sarah On Sun, Jun 24, 2012 at 5:19 PM, 蓁蓁 李 wrote: > > Hi, > > I have a question. When I run R script in Windows, I can use shell() > function. But there is no such a function in Linux machine, what I should do > in the

Re: [R] FW: Multivariate Normal and loops

2012-06-17 Thread R. Michael Weylandt
It's requested to cc the list on our back-and-forths so that i) you can get help faster (I was moving all yesterday and it's a Hallmark holiday in the US today) since others may respond; ii) others can benefit by reading the archives. On Sun, Jun 17, 2012 at 4:34 AM, Giulia Motta wrote: > > > t

Re: [R] FW: averaging two tables (rows with columns)

2012-05-10 Thread Rui Barradas
Hello, After all the trouble, workable datasets. I have a doubt on what you want. By looking at the two results data.frames, I don't believe they match the problem description. The average columns are wrong. Look at line 1 in table3a. I has speciesXX with a value of 0.14 but speciesXX does NOT oc

Re: [R] FW: averaging two tables (rows with columns)

2012-05-10 Thread John Kane
e all 4 tables now. John Kane Kingston ON Canada > -Original Message- > From: kristi.glo...@hotmail.com > Sent: Thu, 10 May 2012 14:36:51 -0300 > To: r-help@r-project.org > Subject: Re: [R] FW: averaging two tables (rows with columns) > > > oppps, Now I use

Re: [R] FW: averaging two tables (rows with columns)

2012-05-10 Thread John Kane
Kristi The tables , if read in edit mode are vagely readable but please just do as Petr and I suggest. Use the dput command. If you have the table in an R data.frame all you need to do is use the command dput(mytable) I read your two tables into R and did that . Note I called them dat1 & dat2.

Re: [R] FW: averaging two tables (rows with columns)

2012-05-10 Thread Kristi Glover
oppps, Now I used 'dput' function. Again I am sending. I am so sorry for inconvenience. HI R userI am sorry that my data was not readable formate in the last email. Agin I am trying to send it. hope this time, that table can be readable.As I mentioned earlier that I was struggling to figure

Re: [R] FW: averaging two tables (rows with columns)

2012-05-10 Thread Sarah Goslee
Kristi, Several people have already suggested you use dput() to provide your data. In R, dput(table1) dput(table2) Then copy and paste the output of those commands into your email. There's no way to reliably copy and paste your raw data: using dput() is the best way to provide it. Sarah On Th

Re: [R] FW: Combined grouped and stacked bargraph

2012-04-25 Thread Nicola Van Wilgen
) where the user had the same problem as I did, but it does not seem that this was resolved. Please let me know if you have any suggestions. Thanks and best wishes, Nicola -Original Message- From: John Kane [mailto:jrkrid...@inbox.com] Sent: 25 April 2012 02:58 PM To: Nicola Van Wilgen; r-h

Re: [R] FW: Combined grouped and stacked bargraph

2012-04-25 Thread John Kane
Hi Nicola, You have provided the code and data as requested the data is in a very unfriendly format. If you would supply the data in an easily useable format so that the readers here can work with it it would help. Since it looks like you have a small data set the easiest thing is to use dpu

Re: [R] FW: fdp and Rgraphviz

2012-03-23 Thread Uwe Ligges
1. Why do you ask here rather than the author of thr webpage? 2. Reading the comments suggests you are lacking a graphviz installation that includes the fdp command. Uwe Ligges On 23.03.2012 13:09, Heba S wrote: Hello, I am beginner user of R. I am trying to use GeneNet package.

Re: [R] FW: NaN from function

2012-02-23 Thread Petr Savicky
On Thu, Feb 23, 2012 at 04:40:07PM -, Ted Harding wrote: [...] > A basic solution for this special case would be > > zt=function(x){ > if (sd(x) == 0) return(0*x) else return( (x-mean(x))/sd(x) ) > } > > This should cover the case where length(table(x))==1 (see also below). > > I'm n

Re: [R] FW: NaN from function

2012-02-23 Thread Ted Harding
On 23-Feb-2012 Jonathan Williams wrote: > Dear Helpers, > I wrote a simple function to standardise variables if they > contain more than one value. If the elements of the variable > are all identical, then I want the function to return zero. > > When I submit variables whose elements are all ident

Re: [R] FW: Problems with R

2012-02-20 Thread David Winsemius
On Feb 20, 2012, at 10:26 AM, Thorsten Pöllinger wrote: Dears, I am a new R user and I am trying to analyze my data sets, R gives me a default when I type in the regression formula as following: fit1=gamlss(tot_remun_revenue$tot_remun.y~tot_remun_revenue $revenue.x,family=NO) Most regre

  1   2   3   >