Re: [R] FlexBayes installation from R-Forge Problem R 3.2.2

2015-09-28 Thread David Katz
Pascal, Oops. Thanks! *David Katz*| IAG, TIBCO Spotfire O: 1.541.203.7084 | M: 1.541.324.7417 On Mon, Sep 28, 2015 at 5:47 PM, Pascal Oettli wrote: > You misspelled the web address. It is "R-project", not "R.project". > Thus, the command line should be: > >

[R] Creating World Map with Points

2015-09-28 Thread Lorenzo Isella
Dear All, Please have a look at the snippet at the end of the email. Essentially, I am trying to combine google maps with ggplot2. The idea is to simply plot some points, whose size depend on a scalar, on a google map. My question is how I can extend the map in the snippet below in order to plot

Re: [R] How to find out if two cells in a dataframe belong to the same pre-specified factor-level

2015-09-28 Thread Adams, Jean
Here's one approach that works. I made some changes to the code you provided. Full working example code given below. library(reshape) library(ggplot2) library(dplyr) dist1 <- matrix(runif(16), 4, 4) dist2 <- matrix(runif(16), 4, 4) rownames(dist1) <- colnames(dist1) <- paste0("A", 1:4)

Re: [R] a question on write.table

2015-09-28 Thread Giorgio Garziano
Try this: X<-c("A","B","C","D","E") Y<-c(0,1,2,3,4) for (i in 0:3) { Y<-Y+i data<-data.frame(X,Y) fe.flag <- file.exists("test.csv") write.table(data, "test.csv", row.names = FALSE, col.names = !fe.flag, sep=";", append = fe.flag) } [[alternative HTML version deleted]]

Re: [R] Singular Spectrum Analysis Plotting Skipping in a loop, but individually it works

2015-09-28 Thread കുഞ്ഞായി kunjaai
Dear Anton & Michael, Thanks a lot for your nice suggestion, Now its working cheers :) On Mon, Sep 28, 2015 at 1:24 PM, Michael Dewey wrote: > Dear Dileep > > What happens if you explicitly print it by wrapping the plot command in > print( ) > > > On

Re: [R] Find Crossover Points of Two Spline Functions

2015-09-28 Thread Bert Gunter
Use ?uniroot to do it numerically instead of polyroot()? Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Mon, Sep 28, 2015 at 9:17 AM, Ben Bolker wrote: > Dario Strbenac

Re: [R] Hide Legend

2015-09-28 Thread Giorgio Garziano
library(quantmod) getSymbols("YHOO") chartSeries(YHOO, theme="white", type='line') chartSeries(YHOO, theme="white", type='line', TA=NULL) chartSeries(Cl(YHOO), theme="white", type='line') chartSeries(YHOO, theme="white", type='line', name="") chartSeries(YHOO, type='line', theme='white')

[R] Hide Legend

2015-09-28 Thread bgnumis bgnum
Hi all, I want to plot with quantmode but I want to ommit levels on Lavel, showing only Last Price, not the bands (in the case f.e. in Bollinger Bands) ¿Is it Possible? And to ommit hide all legend? I dont find docutmentation or example. [[alternative HTML version deleted]]

Re: [R] Line in hist count

2015-09-28 Thread Adams, Jean
I'm not sure what you want when you refer to the "last value of f", but perhaps this will help you out. I simplified your example since the other parts of the code you submitted (par, grid, title, etc.) do not have anything to do with your question. # some fake data for f f <- rnorm(20) # save

Re: [R] Find Crossover Points of Two Spline Functions

2015-09-28 Thread Bert Gunter
... (should have added) However one might ask: Isn't this just a bit silly? The density() function gives kernel density estimates (perhaps interpolated by ?approx -- see ?density) on as fine a grid as one likes, so why use splines thereafter? And since these are density estimates -- i.e. fitted

[R] a question on write.table

2015-09-28 Thread Antonio Silva
Dear R users I want to write a file that contains several data frames generated in a loop ing. I also want the column names be written to file only when it is created in first loop. In the example below, when I run each line separately without "for (i in ...) { }" it works, but when I run the

[R] ASA Statistical Computing & Statistical Graphics Award

2015-09-28 Thread Patrick Breheny
Statistical Computing and Statistical Graphics Sections American Statistical Association The Statistical Computing and Graphics Award The ASA Sections of Statistical Computing and Statistical Graphics have established the Statistical Computing and Graphics Award to recognize an individual or

Re: [R] a question on write.table

2015-09-28 Thread David Winsemius
On Sep 28, 2015, at 11:31 AM, Antonio Silva wrote: > Dear R users > > I want to write a file that contains several data frames generated in a loop > ing. > I also want the column names be written to file only when it is created in > first loop. > > In the example below, when I run each line

Re: [R] a question on write.table

2015-09-28 Thread ruipbarradas
Hello, ifelse is a vectorized version of if/else, you want the normal if/else. if(file.exists(... etc ...)     [...] else     [...] Hope this helps, Rui Barradas   Citando Antonio Silva : > Dear R users > > I want to write a file that contains several data frames

Re: [R] a question on write.table

2015-09-28 Thread Antonio Silva
Thanks Giorgio, David and Rui With the suggestions my problem was solved in different ways. Best regards Antonio 2015-09-28 15:52 GMT-03:00 Giorgio Garziano : > Try this: > > X<-c("A","B","C","D","E") > Y<-c(0,1,2,3,4) > > for (i in 0:3) { > Y<-Y+i >

Re: [R] merging tables based on both row and column names

2015-09-28 Thread Frank Schwidom
test1 <- (rbind(c(0.1,0.2),0.3,0.1)) rownames(test1)=c('y1','y2','y3') colnames(test1) = c('x1','x2'); test2 <- (rbind(c(0.8,0.9,0.5),c(0.5,0.1,0.6))) rownames(test2) = c('y2','y5') colnames(test2) = c('x1','x3','x2') lTest12 <- list( test1, test2) namesRow <- unique( unlist( lapply( lTest12,

Re: [R] writing an equation with multiple summation

2015-09-28 Thread Jeff Newmiller
The brute force answer involves for loops or apply functions, with or without defining your own functions for calculating terms. More optimized methods usually require understanding the specific structure of the summations and unwinding them with functions like expand.grid. For more specific

Re: [R] R applications deployment models?

2015-09-28 Thread Jeff Newmiller
I am not necessarily referring to the business model (though many people asking this question are), but rather the install-to-bare-os deployment model that controls the user experience throughout. You typically need to install R as a separate product and use it interactively to kick your

Re: [R] How to get significance codes after Kruskal Wallis test

2015-09-28 Thread David L Carlson
The kruskalmc() function in package pgirmess performs a multiple comparisons analysis using the kruskal-wallis test. It indicates which pairs are significantly different, but it does not summarize the results in a compact letter display. > library(pgirmess) > kruskalmc(Heliocide~Treatment,

Re: [R] R applications deployment models?

2015-09-28 Thread John McKown
On Mon, Sep 28, 2015 at 9:19 AM, Jeff Newmiller wrote: > I am not necessarily referring to the business model (though many people > asking this question are), but rather the install-to-bare-os deployment > model that controls the user experience throughout. You

[R] writing an equation with multiple summation

2015-09-28 Thread Maram SAlem
Dear All, I'm trying to write and evaluate an equation which involves multiple summations but can't figure out how to do it. I've an numeric vector r r<-vector(mode = "numeric", length = m) and I have multiple summations (for ex.) of the form: [(sum from r[1]=0 to g(r[1])) (sum from r[2] =0 to

Re: [R] Find Crossover Points of Two Spline Functions

2015-09-28 Thread Ben Bolker
Dario Strbenac uni.sydney.edu.au> writes: > > Good day, > > I have two probability densities, each with a function determined > by splinefun(densityResult[['x']], > densityResult[['y']], "natural"), where densityResult is the > output of the density function in stats. > How can I determine all

Re: [R] How to get significance codes after Kruskal Wallis test

2015-09-28 Thread David L Carlson
It may be, but the documentation for kruskal() seems to have fallen behind updates to the function. The kruskal() manual page indicates values returned by the function that have no connection to what is actually returned and M is not described at all. There is another version of the test,

[R] Boxplot: Plot outliners in a different window

2015-09-28 Thread Tagmarie
Hi, I want to draw a usual boxplot. I have one outliner way up. It makes my boxes being drawn tiny. I do not want to delete the outliner as it is also of ecological importance. I know there is a way of drawing a second window on top of the boxplot which starts at a different y-axis-scales and

Re: [R-es] Error al agrupar datos por una variable en data.table

2015-09-28 Thread Olivier Nuñez
No estoy seguro de entender, pero prueba: > require(data.table) > DT=data.table(padres=c(1,1,1,2,2), indiviudos=1:5) > DT padres indiviudos 1: 1 1 2: 1 2 3: 1 3 4: 2 4 5: 2 5 > DT[,.(count=.N),by=padres] padres count 1:

Re: [R] Singular Spectrum Analysis Plotting Skipping in a loop, but individually it works

2015-09-28 Thread Michael Dewey
Dear Dileep What happens if you explicitly print it by wrapping the plot command in print( ) On 28/09/2015 07:01, കുഞ്ഞായി kunjaai wrote: Dear all, I am trying to plot Spectrum of Singular Values using "Rssa" package. I am trying to plot singular spectrum plot inside a loop, it is not

[R] Singular Spectrum Analysis Plotting Skipping in a loop, but individually it works

2015-09-28 Thread കുഞ്ഞായി kunjaai
Dear all, I am trying to plot Spectrum of Singular Values using "Rssa" package. I am trying to plot singular spectrum plot inside a loop, it is not plotting, but when I am trying to plot individually in terminal it works, and I can save this as png files. My code is given below: *#

[R] Find Crossover Points of Two Spline Functions

2015-09-28 Thread Dario Strbenac
Good day, I have two probability densities, each with a function determined by splinefun(densityResult[['x']], densityResult[['y']], "natural"), where densityResult is the output of the density function in stats. How can I determine all of the x values at which the densities cross ?

[R] R applications deployment models?

2015-09-28 Thread Ali M.
I am new to R And while learning the language inside the dev tools is easy and fun I wonder how R applications are deployed and distributed to the typical business users I searched online of course and found some commercial options The revolution r enterprise platform Shiny r server from the

Re: [R] Appropriate specification of random effects structure for EEG/ERP data: including Channels or not?

2015-09-28 Thread Paolo Canal
Thank you Philllip, And sorry being late in the response. Thanks for the reference, I believe that many of the published papers on ERPs with mixed models have descriptions of the analysis that often lacks of detail (even when looking for non *.linguistic journals). Concerning your comments:

Re: [R] Boxplot: Plot outliners in a different window

2015-09-28 Thread Jim Lemon
Hi Tagmarie, Have a look at gap.boxplot (plotrix). JIim On Mon, Sep 28, 2015 at 4:50 PM, Tagmarie wrote: > Hi, > I want to draw a usual boxplot. I have one outliner way up. It makes my > boxes being drawn tiny. I do not want to delete the outliner as it is also > of

Re: [R] Find Crossover Points of Two Spline Functions

2015-09-28 Thread Ben Bolker
Bert Gunter gmail.com> writes: > > Use ?uniroot to do it numerically instead of polyroot()? > > Cheers, > Bert > Bert Gunter The problem with uniroot() is that we don't know how many intersections/ roots we might be looking for. With polyroot(), we know that there can be at most 3 roots

[R] merging tables based on both row and column names

2015-09-28 Thread C Lin
Dear R users, I am trying to merge tables based on both their row names and column names. My ultimate goal is to build a distribution table of values for each combination of row and column names. I have more test tables, more x's and y's than in the toy example below. Thanks in advance for

[R] cumulative distribtuion function for multinomial distribution in R

2015-09-28 Thread li li
Hi all, In R, is there a function for the cumulative distribution function for multinomial distribution? I only see pmultinom and rmultinom which are the prabability mass function and the function for generating multinomial random variables respectively. Thanks! Hanna

Re: [R] [FORGED] cumulative distribtuion function for multinomial distribution in R

2015-09-28 Thread Rolf Turner
On 29/09/15 14:58, li li wrote: Hi all, In R, is there a function for the cumulative distribution function for multinomial distribution? I only see pmultinom and rmultinom which are the prabability mass function and the function for generating multinomial random variables respectively. A

[R] plot changes usr?

2015-09-28 Thread Ed Siefker
I'm trying to plot() over an existing plot() like this: > attach(mtcars) > plot(mpg, hp) > par(new=TRUE) > par("usr") [1] 9.46 34.84 40.68 346.32 > plot(mpg, hp, col="red", axes=FALSE, xlim=par("usr")[1:2], > ylim=par("usr")[3:4], xlab="", ylab="") > par("usr") [1] 8.4448 35.8552 28.4544

Re: [R] FlexBayes installation from R-Forge Problem R 3.2.2

2015-09-28 Thread Pascal Oettli
You misspelled the web address. It is "R-project", not "R.project". Thus, the command line should be: install.packages("FlexBayes", repos="http://R-Forge.R-project.org;) Regards, Pascal On Mon, Sep 28, 2015 at 9:17 AM, Davidwkatz wrote: > I tried to install FlexBayes like

Re: [R] plot changes usr?

2015-09-28 Thread David Winsemius
On Sep 28, 2015, at 5:33 PM, Ed Siefker wrote: > I'm trying to plot() over an existing plot() like this: > >> attach(mtcars) >> plot(mpg, hp) >> par(new=TRUE) >> par("usr") > [1] 9.46 34.84 40.68 346.32 >> plot(mpg, hp, col="red", axes=FALSE, xlim=par("usr")[1:2], >> ylim=par("usr")[3:4],

Re: [R] R applications deployment models?

2015-09-28 Thread John McKown
On Mon, Sep 28, 2015 at 8:15 AM, Jeff Newmiller wrote: > R is not designed as an application development programming language. ​This is an interesting statement to me. I don't really understand it. I have developed some applications in R. Do do you mean _commercial_

Re: [R] R applications deployment models?

2015-09-28 Thread Jeff Newmiller
R is not designed as an application development programming language. Your question is a bit like asking why a car does not float like a boat. If you want to distribute analyses broadly then you are likely to either need to do it using a server or to expect users to become somewhat familiar

Re: [R] XPT files

2015-09-28 Thread Therneau, Terry M., Ph.D.
This was an FDA/SAS bargain a long while ago. SAS made the XPT format publicly available and unchanging in return for it becoming a standard for submission. Many packages can reliably read or write these files. (The same is not true for other SAS file formats, nor is xport the SAS default.)

Re: [R] R applications deployment models?

2015-09-28 Thread Duncan Murdoch
On 28/09/2015 4:23 AM, Ali M. wrote: I am new to R And while learning the language inside the dev tools is easy and fun I wonder how R applications are deployed and distributed to the typical business users Typically as web applications, rather than standalone executables. I searched