Re: [R] Plot half filled circle utf pch

2016-06-03 Thread Jim Lemon
Hi Michael, Have a look at my.symbols in the TeachingDemos package. Jim On Sat, Jun 4, 2016 at 4:19 AM, Michael Weber wrote: > > Dear R users, > > I have been using R for several years and really appreciate all the > developments which have been done. Maybe you can help me with the following >

[R] Plot half filled circle utf pch

2016-06-03 Thread Michael Weber
Dear R users, I have been using R for several years and really appreciate all the developments which have been done. Maybe you can help me with the following problem: I would like to plot full circles together with half circles in the same plot. Unfortunately, the size of the different U

Re: [R] not common records

2016-06-03 Thread Ashta
Thank you Jeff. Solved. On Fri, Jun 3, 2016 at 12:47 AM, Jeff Newmiller wrote: > ?merge > > Pay attention to the all-whatever parameters. > -- > Sent from my phone. Please excuse my brevity. > > On June 2, 2016 7:04:47 PM PDT, Ashta wrote: >> >> I have 2 data sets. File1 and File2. Some records

Re: [R] merging dataframes in a list

2016-06-03 Thread Ed Siefker
Thanks, ldply got me a data frame straight away. But it filled empty spaces with NA and merge no longer works. > ldply(mylist) name red green 1 sample1 20NA 2 sample1 NA15 3 sample2 10NA 4 sample2 NA30 > mydf <- ldply(mylist) > merge(mydf[1,],mydf[2,]) [1] name red gre

Re: [R] merging dataframes in a list

2016-06-03 Thread ruipbarradas
Hello, Sorry, forget my first answer, I misunderstood what you wanted. Let's try again. First of all you have a typo in your second sample2, you wrote 'sample 2' with a space. Now try this. fun2 <- function(n){     merge(lst[[n]], lst[[n + 1]]) } N <- which(seq_along(lst) %% 2 == 1) lst2 <- l

Re: [R] merging dataframes in a list

2016-06-03 Thread Ulrik Stervbo
You can use ldply in the plyr package to bind all the data.frames together (a regular loop will also work). Afterwards you can summarise using ddply Hope this helps Ulrik Ed Siefker schrieb am Fr., 3. Juni 2016 21:10: > aggregate isn't really what I want. Maybe tapply? I still can't get > it

Re: [R] merging dataframes in a list

2016-06-03 Thread ruipbarradas
Hello, Maybe something like the following. lst <- list(data.frame(name="sample1", red=20), data.frame(name="sample1", green=15), data.frame(name="sample2", red=10), data.frame(name="sample 2", green=30)) fun <- function(DF){     data.frame(name = DF[, 1], color = colnames(DF)[2], colnum = DF

Re: [R] merging dataframes in a list

2016-06-03 Thread Ed Siefker
aggregate isn't really what I want. Maybe tapply? I still can't get it to work. > length(mylist) [1] 4 > length(names) [1] 4 > tapply(mylist, names, merge) Error in tapply(mylist, names, merge) : arguments must have same length I guess because a list isn't an atomic data type. What function wi

Re: [R] kernel matching pursuit

2016-06-03 Thread Federman, Douglas
This website might be of help: http://www.biostat.jhsph.edu/~estuart/propensityscoresoftware.html confidential to sas, spss, stata, and sudaan users: heavy doses of those programs may cause statococcal infection.  time to transition to R. -- Anthony Damico -- -Original Message- From: R

Re: [R] Request for help

2016-06-03 Thread Duncan Murdoch
On 03/06/2016 2:27 PM, Bert Gunter wrote: See the "Writing R Extensions" manual that ships with R. You might also want to consider Hadley Wickham's roxygen2 package, which allows one to include the Help information as specially formatted comments within the code files themselves. The package wil

Re: [R] merging dataframes in a list

2016-06-03 Thread Ed Siefker
I manually constructed the list of sample names and tried the aggregate call I mentioned. Merge works when called manually, but not when using aggregate. > mylist <- list(data.frame(name="sample1", red=20), data.frame(name="sample1", > green=15), data.frame(name="sample2", red=10), data.frame(na

Re: [R] Request for help

2016-06-03 Thread Roy Mendelssohn - NOAA Federal
Hi All: > On Jun 3, 2016, at 11:33 AM, jlu...@ria.buffalo.edu wrote: > > There is a video tutorial on the RStudio web site showing how to create R > packages within RStudio. Hadley Wickham also has a book on creating R > packages. > And I would add that Hadley has kindly put the book onlin

Re: [R] Request for help

2016-06-03 Thread JLucke
There is a video tutorial on the RStudio web site showing how to create R packages within RStudio. Hadley Wickham also has a book on creating R packages. Bert Gunter Sent by: "R-help" 06/03/2016 02:27 PM To suparna biswas , cc r-help Subject Re: [R] Request for help See the "Wri

Re: [R] sustring in dependence of values

2016-06-03 Thread Bert Gunter
Use regular expressions: ?grep ?regexp (The answer is simple, but I think it is worthwhile to learn about this on your own. Others may disagree and supply you the exact answer). Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things i

Re: [R] Request for help

2016-06-03 Thread Bert Gunter
See the "Writing R Extensions" manual that ships with R. You might also want to consider Hadley Wickham's roxygen2 package, which allows one to include the Help information as specially formatted comments within the code files themselves. The package will then generate the Help files from this inf

[R] merging dataframes in a list

2016-06-03 Thread Ed Siefker
I have a list of data as follows. > list(data.frame(name="sample1", red=20), data.frame(name="sample1", > green=15), data.frame(name="sample2", red=10), data.frame(name="sample 2", > green=30)) [[1]] name red 1 sample1 20 [[2]] name green 1 sample115 [[3]] name red 1 sample

[R] sustring in dependence of values

2016-06-03 Thread Matthias Weber
Hello togehter, maybe anyone can help me with a little problem. I have the following column in an data.frame (called TEST) VERSION 1abc (9.2 -> 10.0) 2def (10.2 -> 11.0) 3ghi (7.4 -> 8.4) 4jkl (10.2 -> 10.4) 5mno (8.1 -> 9.0) I now need the code for the following resul

[R] kernel matching pursuit

2016-06-03 Thread Shyam Kumar Basnet
Hi, Do you know any R-package for Kernel matching using the propensity scores? I really appreciate your help. Thanks, Shyam Basnet Sweden [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, s

[R] Request for help

2016-06-03 Thread suparna biswas
Dear Sir/Madam Myself Suparna Biswas, a research scholar from the department of Mathematical Sciences, Tezpur University, Assam, India. I am working under the supervision of Dr. Santanu Dutta, Associate Professor, Department of Mathematical Sciences, Tezpur University, Assam,

Re: [R] SEM GFI

2016-06-03 Thread Fox, John
Dear Vinay, As you can see from the df for the model (i.e., LR chisquare), which is 39 in SAS and 52 using sem() in the sem package, you fit very different models in the two programs. It's consequently unremarkable that you got different results -- and not just for the GFI but for everything. T

Re: [R] problems compiling packages | 3.3.0 | Linux

2016-06-03 Thread Evan Cooch
OK -- thanks. I used to compile from source routinely, but could never get thee 'hand rolled' version of R to play nice with some external applications (specifically, jags, and openbugs). On 6/2/2016 5:41 PM, Marc Schwartz wrote: On Jun 2, 2016, at 10:35 AM, Evan Cooch wrote: Updated my R i

Re: [R] Something weird

2016-06-03 Thread Marc Schwartz
> On Jun 3, 2016, at 6:03 AM, Juan Andres Hernandez > wrote: > > Can anybody explain me this weird result? > a=3 > as.integer(a) > 1] 3 > > a=(3/10)/0.1 > a > [1] 3 > > as.integer(a) > [1] 2 > > Thank's in advance > > Juan A Hernández See: https://cran.r-project.org/doc/FAQ/R-FAQ.html

[R] Something weird

2016-06-03 Thread Juan Andres Hernandez
Can anybody explain me this weird result? a=3 as.integer(a) 1] 3 a=(3/10)/0.1 a [1] 3 as.integer(a) [1] 2 Thank's in advance Juan A Hernández [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and mor

Re: [R] Cut Dates into bins

2016-06-03 Thread PIKAL Petr
Hi you either made typo in your post or in your real evaluation of your dates. > d1 <- strptime("2000-01-01", format="%Y-%m-%d") > d2 <- strptime("01/01/2000", format ="%d/%m/%Y") > d1==d2 [1] TRUE > However, I am not sure why you fiddle with as.numeric and what do you mean by bin dates. Regard

[R] Cluster analysis with Weighted attribute

2016-06-03 Thread Ahreum Lee
Hi! All. I'm not much familiar with R. So I tried to find a R function or packages that could work with my problems. What I wonder is, Whether there is any R function or package that includes the cluster analysis considering with the weighted attribute. I saw several papers that dealt w

Re: [R] Cut Dates into bins

2016-06-03 Thread Jim Lemon
Hi Tjun Kiat, This seems to work: daily_date<-as.Date(paste("2000-01",1:28,sep="-"),"%Y-%m-%d") weekly_date<-as.Date(paste(c(1,8,15,22,28),"01/2000",sep="/"), "%d/%m/%Y") cut(daily_date,breaks=weekly_date,include.lowest=TRUE, labels=paste("Week",1:4)) Jim On Fri, Jun 3, 2016 at 6:00 PM, TJUN

Re: [R] stats package

2016-06-03 Thread Martin Maechler
> Dariush Ashtab > on Thu, 2 Jun 2016 17:57:14 +0430 writes: ["accidentally" to R-core .. should have gone to R-help -- and hence answered here] > Dear R project I need stats package for optimization in > simulated annealing but i can not download. please guide > me.

[R] bnlearn cpquery

2016-06-03 Thread Marco Scutari
Dear Ross, On Friday, 3 June 2016, > wrote: > > I find that repeating the command gives very different results for the > same set of evidence. Some variability in the results is expected since they are Monte Carlo estimates. What is happening in your case is, I think, that your evidence has a