Re: [R] colorspace namespace problem with R CMD check --as-cran

2017-04-13 Thread stephen sefick
For those interested, I fixed this problem by adding LazyLoad: yes to the DESCRIPTION file (I overlooked this because LazyData was there). I found the answer in this exchange between Dr. Ripley and Wickham (

Re: [R] Merge list element by name

2017-04-13 Thread David Winsemius
> On Apr 13, 2017, at 7:56 AM, Mohammad Tanvir Ahamed via R-help > wrote: > > Hi, > I have a list like > kk<- list (a = 1:5, b = 6:10, c = 4:11) > > Now i want to merger (Union) the list element "a" and "c" by name . > > My expected outcome is > kk1<- list(a_c =

Re: [R] Merge selected list element by name

2017-04-13 Thread Bert Gunter
So do you mean like this: > kk<- list (a = 1:5, b = 6:10, c = 4:11) > kk1 <- list(union(kk$a,kk$c),kk$b) > names(kk1)<- c(paste(names(kk)[c(1,3)],collapse="_"),names(kk)[2]) > kk1 $a_c [1] 1 2 3 4 5 6 7 8 9 10 11 $b [1] 6 7 8 9 10 ?? Cheers, Bert Bert Gunter "The trouble with

Re: [R] Merge selected list element by name

2017-04-13 Thread Mohammad Tanvir Ahamed via R-help
Thanks for your code. But this is not the way i am expecting . I want to merge (Union) "a" and "c" and my expected output is > kk1 $a_c [1] 1 2 3 4 5 6 7 8 9 10 11 $b [1] 6 7 8 9 10 Note : I worte the code kk1<- list(a_c = 1:11, b = 6:10) just to show by expected outcome.

Re: [R] Merge selected list element by name

2017-04-13 Thread Rui Barradas
Hello, There's no need to send the same question twice, we've got it at the first try. Maybe I don't understand but is this it? kk1 <- list(a_c = union(kk$a, kk$c), b = kk$b) kk1 $a_c [1] 1 2 3 4 5 6 7 8 9 10 11 $b [1] 6 7 8 9 10 Hope this helps, Rui Barradas Em 13-04-2017

[R-es] Variograma - Bins

2017-04-13 Thread CARLOS ALBERTO TAIMAL YEPES
Hola, cordial saludo, estoy trabajando con geoestadística y tengo la siguiente inquietud ¿Existe algún criterio óptimo para determinar el número de bins en un semivariograma? sé que el paquete geoR tiende a tomar por defecto 13 bins y gstat 15 ¿pero existe algún criterio detrás de dicha elección?

[R] Merge selected list element by name

2017-04-13 Thread Mohammad Tanvir Ahamed via R-help
Hi, I have a list like kk<- list (a = 1:5, b = 6:10, c = 4:11) Now i want to merger (Union) the list element "a" and "c" by name . My expected outcome is kk1<- list(a_c = 1:11, b = 6:10) I can do it with several lines of code. But can any one have idea to do efficiently/ quickly on

Re: [R] Wait for batch file to execute

2017-04-13 Thread Jeff Newmiller
For future reference, this kind of question should usually be accompanied by information about your OS such as the sessionInfo function returns... but in this case just read about the wait argument to ?system2. -- Sent from my phone. Please excuse my brevity. On April 13, 2017 8:06:04 AM PDT,

[R] Merge list element by name

2017-04-13 Thread Mohammad Tanvir Ahamed via R-help
Hi, I have a list like kk<- list (a = 1:5, b = 6:10, c = 4:11) Now i want to merger (Union) the list element "a" and "c" by name . My expected outcome is kk1<- list(a_c = 1:11, b = 6:10) I can do it with several lines of code. But can any one have idea to do efficiently/ quickly on a big

[R] convert a text file into a list (of lists)

2017-04-13 Thread Assa Yeroslaviz
Hi, I have a text file i would like to read into a list structure in R. the files is something like that (which might be describe as a list of data frames): [[1]] NAME MEM.SHIP FBgn0037415 FBgn0037415 0.8035441 FBgn0010812 FBgn0010812 0.6579683 FBgn0265351 FBgn0265351

[R] [R-pkgs] Announcing 'unitizer': Interactive Unit Tests

2017-04-13 Thread brodie gaslam via R-packages
`unitizer` is a unit testing framework for tests that produce non-trivial output. It is conceptually similar to using ".Rout.save" files, except we save the actual R objects and conditions, and we streamline the update/test/debug cycle via an interactive interface. A non-interactive mode is

[R] 回复: 回复: how to plot three dimension data to filled contour plot or surface plot in R Ask Question

2017-04-13 Thread dncdd via R-help
x<-c(0.8,1.8,2.8)  y<-c(0.8,1.8,2.8)  z<-c(0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9)  nx<-sprintf("x%s",x) ny<-sprintf("y%s",y) nz<-sprintf("z%s",z) v<-c(  0.3, 0.2, 0.1, 0, 0, 0, 0, 0, 0,  0.3, 0.2, 0.1, 0.2, 0.3, 0.4, 0.4, 0.5, 0.5,  0.3, 0.4, 0.5, 0.5, 0.6, 0.6, 0.6, 0.7, 0.7,  

Re: [R] Wait for batch file to execute

2017-04-13 Thread Archit Soni
Thanks Jeff.. Will keep in mind. On Apr 13, 2017 20:54, "Jeff Newmiller" wrote: > For future reference, this kind of question should usually be accompanied > by information about your OS such as the sessionInfo function returns... > but in this case just read about the

Re: [R] Wait for batch file to execute

2017-04-13 Thread Archit Soni
Awesome.. Thanks Bert. You saved a lot tension and hours. Thanks again :) On Apr 13, 2017 20:49, "Bert Gunter" wrote: > ?system or ?system2 > > Note the "wait" argument > > > Cheers, > Bert > > > Bert Gunter > > "The trouble with having an open mind is that people keep

Re: [R] Wait for batch file to execute

2017-04-13 Thread Bert Gunter
?system or ?system2 Note the "wait" argument 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 Thu, Apr 13, 2017 at 8:06 AM, Archit Soni

[R] Wait for batch file to execute

2017-04-13 Thread Archit Soni
Hi All, I am using below code to execute a batch file on server to get me data from an API it looks like: shell.exec('<>\\file.bat') #do next step The problem is that this function shell.exec doesn't wait for the batch file to execute completely and jumps to next line of code. Any ideas how

[R] 回复: how to plot three dimension data to filled contour plot or surface plot in R Ask Question

2017-04-13 Thread dncdd via R-help
This can be a solution. Thank you. Thanks for your time. --发件人:Ismail SEZEN 发送时间:2017年4月13日(星期四) 10:05收件人:dncdd 抄 送:r-help 主 题:Re: [R] how to plot three dimension data