[R] Where is R installed on my Linux?

2016-09-19 Thread Mike Wojnowicz
I have successfully installed R on my AWS EC2 r3.8 box running Linux with >sudo yum install -y R However, I cannot find R anywhere (which I want for the sake of tar'ing it up and decompressing to make future installations easier.) For example, > rpm -ql R Says there is nothing to show. Does

[R] Errors in Raster to Point

2016-09-19 Thread GwanSeon Kim
Hi, all I am just beginner to use R. I am working with TIF image file, and the information about the raster is following: class : RasterLayer dimensions : 11150, 21808, 243159200 (nrow, ncol, ncell) resolution : 30, 30 (x, y) extent : 569685, 1223925, 1513995, 1848495 (xmin, xmax,

Re: [R] Return the indices of rows of a data frame

2016-09-19 Thread Jeff Newmiller
What do you think? This is covered in the Introduction to R document that comes with R. -- Sent from my phone. Please excuse my brevity. On September 19, 2016 8:37:30 PM PDT, John wrote: >Hi, > > I have the following dataframe: > >> temp<-data.frame(a=c(1,1,2), b=2:4,

[R] Return the indices of rows of a data frame

2016-09-19 Thread John
Hi, I have the following dataframe: > temp<-data.frame(a=c(1,1,2), b=2:4, c=1:3) > row.names(temp)<-c("D", "E", "F") > temp a b c D 1 2 1 E 1 3 2 F 2 4 3 I would like R to tell me which rows has value "a" equal to 1. The answer is the first row and the second row, or row D and row E.

Re: [R] add outlier in data set

2016-09-19 Thread John Dougherty
On Mon, 19 Sep 2016 12:25:08 + "Muhammad Kashif" wrote: > Dear Ellison > > yes its working but if i want to replaced the any value in the the > output . e.g i want to replace 0.65 with 10. then what i do > Save the data as a CSV file. Edit the file with a basic ascii

Re: [R] Overlapping axis numbering and labels when using par(new=TRUE)?

2016-09-19 Thread S Ellison
> How can I get the axis numbering and labels to not overlap? I could also Try specifying las=2 in your plot command? See ?plot.default and ?par S Ellison *** This email and any attachments are confidential. Any

Re: [R] Overlapping axis numbering and labels when using par(new=TRUE)?

2016-09-19 Thread Jim Lemon
Hi mviljamaa, Have a look a the twoord.plot function in the plotrix package. Jim On Tue, Sep 20, 2016 at 1:50 AM, mviljamaa wrote: > I'm trying to plot two data sets on the same plot by using par(new=TRUE). > > However this results in the axis numbering and labels being

Re: [R] Overlapping axis numbering and labels when using par(new=TRUE)?

2016-09-19 Thread David Winsemius
> On Sep 19, 2016, at 8:50 AM, mviljamaa wrote: > > I'm trying to plot two data sets on the same plot by using par(new=TRUE). > > However this results in the axis numbering and labels being plotted twice as > seen in the following picture: > >

Re: [R] help

2016-09-19 Thread Bert Gunter
This looks like homework. We don't do homework here (if we can avoid it). Ask your prof/TA for help. 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 )

[R] help

2016-09-19 Thread Kanika Sahni
Input1: A list of distinct numbers,L1 Input2: A single number, T Output all combinations of L1 that can yield T using +,-,*,/. eq: L1=[4,5,2,3] and T=6. Output: [2*3],[2+4],[5+3-2],[3*4/2] . all other combinations. [[alternative HTML version deleted]]

[R-es] Climograma o grafico de 2 ejes

2016-09-19 Thread javier valdes
Estimados: Alguien sabe de algún paquete que te facilite la construcción de gráficos de doble eje, como los climogramas por ejemplo?. Saludos. Enviado desde mi iPhone > El 13-09-2016, a las 5:48 p.m., Javier Valdes Cantallopts (DGA) > escribió: > > Estimados. >

Re: [R] Overlapping axis numbering and labels when using par(new=TRUE)?

2016-09-19 Thread MacQueen, Don
Take a look at what plot(1:10, yaxt='n', xaxt='n') does. Then study the help page for the par function, i.e., ?par See also ?axis -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 9/19/16, 8:50 AM, "R-help on behalf

Re: [R] Density plot error

2016-09-19 Thread Jeff Newmiller
You desperately need to read the Posting Guide mentioned at the bottom of every posting on this list. Avoid attachments (your code did not come through), keep sample data size minimal, don't reply to other topic messages (start a fresh email thread so your message doesn't get buried in other

[R] Overlapping axis numbering and labels when using par(new=TRUE)?

2016-09-19 Thread mviljamaa
I'm trying to plot two data sets on the same plot by using par(new=TRUE). However this results in the axis numbering and labels being plotted twice as seen in the following picture: http://i.imgur.com/4b1sNIc.png How can I get the axis numbering and labels to not overlap? I could also

Re: [R] add outlier in data set

2016-09-19 Thread S Ellison
> yes its working but if i want to replaced the any value in the the output . > e.g i > want to replace 0.65 with 10. then what i do Read "An introduction to R" in your R help system (help.start() if you cannot find the menu item). Section 2 and particularly 2.7 is essential reading for what

Re: [R] separate commands by semicolon

2016-09-19 Thread Adrian Dușa
Oh yes, completely forgot about partial parsing. One possible (quick) solution: txt <- "print(2); bar <- \"don't ; use semicolons\"; foo <- '3;4'; ls(" sf <- srcfile("txt") tryit <- tryCatch(parse(text = txt, srcfile = sf), error = identity) gpd <- getParseData(sf) pos <- c(0, gpd$col1[gpd$token

Re: [R] What are the red line and cut line in lm's Residuals vs Fitted plot?

2016-09-19 Thread S Ellison
> Do you mean that the red line is a regression line? > Why is the regression (line) weighted? I suggest you look up 'locally weighted regression' to find out why that is useful and what it is for. *** This email and any

[R] Density plot error

2016-09-19 Thread najad zamirah zaki via R-help
Hi, I'm Najad, a student at the University of Glasgow. I really need help with a script of mine to plot density plot for my data. I kept on having an error saying need at least 2 points to select a bandwidth automaticallyI've tried to replace the NaN in my data to zero but still the same. I'm

Re: [R] add outlier in data set

2016-09-19 Thread PIKAL Petr
Hi > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of > Muhammad Kashif > Sent: Monday, September 19, 2016 2:25 PM > To: S Ellison ; r-help@r-project.org > Subject: Re: [R] add outlier in data set > > Dear Ellison > > yes its

Re: [R] What are the red line and cut line in lm's Residuals vs Fitted plot?

2016-09-19 Thread mviljamaa
Do you mean that the red line is a regression line? Why is the regression (line) weighted? On 2016-09-19 14:41, S Ellison wrote: What are the red line and cut line in lm's Residuals vs Fitted plot? The dotted line is at 0 and the red line is a locally weighted regression calculated using

Re: [R] add outlier in data set

2016-09-19 Thread Muhammad Kashif
Dear Ellison yes its working but if i want to replaced the any value in the the output . e.g i want to replace 0.65 with 10. then what i do From: S Ellison Sent: Monday, September 19, 2016 5:15:20 PM To: Muhammad Kashif;

Re: [R] Request for R code

2016-09-19 Thread S Ellison
> Heyy I want to apply LASSO method in AFT model. So can you guys please help > me by sending R code for that. Try help.search("LASSO") or RSiteSearch("LASSO") or Google "LASSO method in AFT using R" There are leads in both. S Ellison

Re: [R] separate commands by semicolon

2016-09-19 Thread Duncan Murdoch
On 19/09/2016 7:59 AM, Adrian Dușa wrote: On Sun, Sep 18, 2016 at 12:34 AM, Peter Langfelder < peter.langfel...@gmail.com> wrote: > On Sat, Sep 17, 2016 at 2:12 PM, David Winsemius > wrote: > > Not entirely clear. If you were intending to just get character output >

Re: [R] add outlier in data set

2016-09-19 Thread S Ellison
> I have one question that how we add one or more outliers in the data set. See ?c to add values to a vector. S Ellison *** This email and any attachments are confidential. Any use...{{dropped:8}}

[R] add outlier in data set

2016-09-19 Thread Muhammad Kashif
dear r users I have one question that how we add one or more outliers in the data set. For example if we generate data set from Weibull distribution using function n=10 k<-rweibull(n, shape=2.5, scale = 1.3) k the output is > k [1] 0.6507619 0.6229385 1.6838931 1.1661324 0.4907947 1.341

Re: [R] separate commands by semicolon

2016-09-19 Thread Adrian Dușa
On Sun, Sep 18, 2016 at 12:34 AM, Peter Langfelder < peter.langfel...@gmail.com> wrote: > On Sat, Sep 17, 2016 at 2:12 PM, David Winsemius > wrote: > > Not entirely clear. If you were intending to just get character output > then you could just use: > > > > strsplit(txt,

[R] Problem Mixstock in R

2016-09-19 Thread FIORAVANTI TATIANA
Dear members of the R-project I am doing a mixed stock analysis with the Mixstock Package in R, at the end of the analysis I would summarize all my results (mean, standard deviation, median, percentile, etc...) using the mysum(x, name=NULL) function, but I don't understand which is the correct

[R] Problem pyears and left truncated data

2016-09-19 Thread Silke Zachariae
Dear all, for a project I want to calculate cancer incidence rates by decades (0-20,20-30,30-40,..,70-80). I have left truncated data, my Surv object has the form Surv(time=age,time2=age2, event, type="counting"). I tried different ways to get results for n, events, and person-years, but the

[R] Reg : :How to plot and present the multiple values whenever user placed mouse on point it using plotly and ggplot2

2016-09-19 Thread Manohar Reddy
Hi, for my question please browse below url,thanks in advance . url : http://community.plot.ly/t/how-to-plot-and-present-the-multiple-values-whenever-user-placed-mouse-on-point-it-using-plotly-and-ggplot2/2139?u=manohar Manu. [[alternative HTML version deleted]]

Re: [R] What are the red line and cut line in lm's Residuals vs Fitted plot?

2016-09-19 Thread S Ellison
> What are the red line and cut line in lm's Residuals vs Fitted plot? The dotted line is at 0 and the red line is a locally weighted regression calculated using lowess and plotted using panel.smooth. See ?panel.smooth and ?lowess for details The main clue to this is in the arguments to