Re: [R] Median on second group of CSV file produce Na

2015-09-01 Thread David Winsemius
On Sep 1, 2015, at 6:48 AM, shawin wrote: > The str() out come is : > > chr [1:31099, 1:8] " 9.329651" " 8.583304" " 9.284229" " 9.746094" > "10.200084" " 9.249863" " 7.979661" "11.271934" ... > - attr(*, "dimnames")=List of 2 > ..$ : NULL > ..$ : chr [1:8] "GSM215579.CEL" "GSM215580.CEL"

Re: [R] Median on second group of CSV file produce Na

2015-09-01 Thread Michael Dewey
Dear Shawin You probably did not get an answer because 1 - you seem to have posted in HTML which mangled your post into unreadability 2 - there seem to be lots of lines which do not do anything germane to the problem. Why not try summary(y) or str(y) before you convert it to a matrix and

Re: [R] Metafor and forest(); not showing 'ilab' and text

2015-09-01 Thread Michael Dewey
Dear Navien If anyone on the list is going to help you you need to 1 - provide a minimal, self-contained and reproducible example of your problem 2 - start a new thread Note that in general list members provide help about R rather than statistics for which there are other lists. On

[R] Inference on parameters with package "PhaseType"

2015-09-01 Thread Paweł Orliński
Hi everyone, I am using package "PhaseType" to approximate given sample of absorption times with a phase-type distribution. The function I am using is called "phtMCMC". The problem is that this function does not return parameters of starting state distribution. It return only parameters of

[R] Parallel: initializing SOCKET cluster

2015-09-01 Thread Ott Toomet
I am running R on TORQUE/MOAB cluster (I guess---as the documentation is terrific). My problem is that I cannot start a slave node (using 'Rscript') before I load the necessary modules first. Just executing cl <- makePSOCKcluster("n0470") results in error: /sw/r-3.2.0/lib64/R/bin/Rscript:

Re: [R] lsqlin in R package pracma

2015-09-01 Thread Wang, Xue, Ph.D.
slsqp in R seems quite slow. Does anyone have some suggestion as how to speed up this? -Original Message- From: Hans W Borchers [mailto:hwborch...@gmail.com] Sent: Wednesday, August 26, 2015 10:11 AM To: r-h...@stat.math.ethz.ch Cc: Wang, Xue, Ph.D. Subject: Re: [R] lsqlin in R

Re: [R] Median on second group of CSV file produce Na

2015-09-01 Thread PIKAL Petr
Hi Your code is highly complicated and difficult to understand without example data. Perhaps you want row medians for two groups x and y which are located in different columns of original data. MD1 <- apply(AT1[,c(2,3,4,5,6,7,8) ], 1, median) shall give you desired result without need of

[R] igraph tree: increase vertex separation within tier

2015-09-01 Thread Loris Bennett
Hi, I am collecting data about network errors and would like to visualise the results in some sort of graph which reflects the hierarchy of the components in the network (i.e. core switches are connected to leaf switches and nodes are connected to leaf switches). The errors are in file which

Re: [R] Inference on parameters with package "PhaseType"

2015-09-01 Thread Louis Aslett
Hi Paweł, I replied to your direct email to me a month or so ago but perhaps your spam filter ate it? I'll repeat here: Indeed, apologies the documentation could perhaps be a little clearer on this point: the phtMCMC function is only sampling the generator matrix, not the initial state

Re: [R] Metafor and forest(); not showing 'ilab' and text

2015-09-01 Thread Marco Colagrossi
I did read the help(rma.mv) and I also had look at the analysis by Konstantopoulos (2011) in the past few days. You have to apologize me but is the first meta analysis I'm trying to carry on, it is the first I'm working on R and moreover the terminology here is somehow different (and confusing)

Re: [R] automatically calling dev.off()

2015-09-01 Thread Duncan Murdoch
On 01/09/2015 10:13 AM, axionator wrote: > Yes, the user could add something. Here, In about 90% of the time, he > won't. So it would be nice to have a dev.off() as default (and some > extra handling if more plot commands will follow). That's a different mental model of how graphics should work,

Re: [R] automatically calling dev.off()

2015-09-01 Thread Jeff Newmiller
If you are implementing your own interactive graphics device by creating files, then I would expect you to want to leave all files closed between graphics operations so your widget can interactively update as the user makes graphics calls. However, I have not done this, so could only suggest

Re: [R] automatically calling dev.off()

2015-09-01 Thread Thierry Onkelinx
Have a look at the implementation of ggsave in the ggplot2 package. ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance Kliniekstraat 25 1070 Anderlecht Belgium To call in the

Re: [R] automatically calling dev.off()

2015-09-01 Thread Duncan Murdoch
On 01/09/2015 7:34 AM, axionator wrote: > Hi, > is there a way to automatically call dev.off()? > I use options(device="myfunc") to automatically open a device to print to. > Afterwards, I would like to close it (so that the file is actually written). > I tried to do it via addTaskCallback, but

Re: [R] Median on second group of CSV file produce Na

2015-09-01 Thread Navien
Dear Michael , Thank you very much for your reply , kindly please can i send you the program and data please , y is shown a normal csv file no issue with it :( Kind Regards On Tue, Sep 1, 2015 at 8:36 AM, Michael Dewey-3 [via R] < ml-node+s789695n4711707...@n4.nabble.com> wrote: > Dear

[R] automatically calling dev.off()

2015-09-01 Thread axionator
Hi, is there a way to automatically call dev.off()? I use options(device="myfunc") to automatically open a device to print to. Afterwards, I would like to close it (so that the file is actually written). I tried to do it via addTaskCallback, but unfortunately, I have to use Rserve and (for any

Re: [R] Median on second group of CSV file produce Na

2015-09-01 Thread Michael Dewey
What happened when you did summary(y) or str(y)? On 01/09/2015 08:57, Navien wrote: Dear Michael , Thank you very much for your reply , kindly please can i send you the program and data please , y is shown a normal csv file no issue with it :( Kind Regards On Tue, Sep 1, 2015 at 8:36 AM,

Re: [R] automatically calling dev.off()

2015-09-01 Thread Jeff Newmiller
Don't use options to do this in batch mode. Open and close the file as you make the plot. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#.

[R] data - stringAsFactors = FALSE

2015-09-01 Thread Witold E Wolski
I have a tab delimited table in the data directory of a package. I would like that when loading this data with data(tablename) in the example section the strings are not coerced to factors. How can I achieve it? Or should I move this tables to the inst/extdata directory and load them with

Re: [R] reshape: melt and cast

2015-09-01 Thread stephen sefick
You are welcome. On Tue, Sep 1, 2015 at 10:44 AM, Matthew Pickard < matthew.david.pick...@gmail.com> wrote: > Yep, that works. Thanks, Stephen. I should have drawn the parallel with > Excel Pivot tables sooner. > > On Tue, Sep 1, 2015 at 9:36 AM, stephen sefick wrote: > >> I

Re: [R] automatically calling dev.off()

2015-09-01 Thread axionator
Yes, the user could add something. Here, In about 90% of the time, he won't. So it would be nice to have a dev.off() as default (and some extra handling if more plot commands will follow). On Tue, Sep 1, 2015 at 4:04 PM, Duncan Murdoch wrote: > On 01/09/2015 7:34 AM,

Re: [R] Median on second group of CSV file produce Na

2015-09-01 Thread shawin
The str() out come is : chr [1:31099, 1:8] " 9.329651" " 8.583304" " 9.284229" " 9.746094" "10.200084" " 9.249863" " 7.979661" "11.271934" ... - attr(*, "dimnames")=List of 2 ..$ : NULL ..$ : chr [1:8] "GSM215579.CEL" "GSM215580.CEL" "GSM215581.CEL" "GSM215582.CEL" ... On Tue, Sep 1, 2015

Re: [R] automatically calling dev.off()

2015-09-01 Thread axionator
I did it on the console only for testing. I have a program that uses Rserve and would like to have it therefore. (the program basically provides a terminal where you can type in R commands. Since plotting is only possible via files (when using Rserve) that are then displayed in a widget, I like to

Re: [R] reshape: melt and cast

2015-09-01 Thread Matt Pickard
Thanks, Stephen. I've looked into the fun.aggregate argument. I don't want to aggregate, so I thought leaving it blank (allowing it to default to NULL) would do that. Here's a corrected post (with further explanation): Hi, I have data that looks like this: >dput(head(ratings))

Re: [R] reshape: melt and cast

2015-09-01 Thread stephen sefick
I would make this minimal. In other words, use an example data set, dput, and use output of dput in a block of reproducible code. I don't understand exactly what you want, but does sum work? If there is more than one record for a given set of factors the sum is the sum of the counts. If only one

Re: [R] reshape: melt and cast

2015-09-01 Thread Matthew Pickard
Yep, that works. Thanks, Stephen. I should have drawn the parallel with Excel Pivot tables sooner. On Tue, Sep 1, 2015 at 9:36 AM, stephen sefick wrote: > I would make this minimal. In other words, use an example data set, dput, > and use output of dput in a block of

Re: [R] automatically calling dev.off()

2015-09-01 Thread axionator
Yes, it's a different model, but maybe my main problem is that Rserve does not handle addTaskCallback as in the console (and thus no dev.off() is called). On Tue, Sep 1, 2015 at 5:00 PM, Duncan Murdoch wrote: > On 01/09/2015 10:13 AM, axionator wrote: > > Yes, the user