Re: [R] Can I increase the size of an asterisk in plotmath()?

2016-06-30 Thread Jim Lemon
Hi Rolf, A bit of poking around reveals that different fonts have different size asterisks. If you are not already using Times Roman, it might be worth a look. I only have Windows on this (work) PC, so I can't check the Postscript fonts. Jim On Fri, Jul 1, 2016 at 12:50 PM, Rolf Turner

Re: [R] Can I increase the size of an asterisk in plotmath()?

2016-06-30 Thread Rolf Turner
On 01/07/16 15:29, Jim Lemon wrote: Hi Rolf, A bit of poking around reveals that different fonts have different size asterisks. If you are not already using Times Roman, it might be worth a look. I only have Windows on this (work) PC, so I can't check the Postscript fonts. Thanks Jim. cheers,

Re: [R] Command to combine means?

2016-06-30 Thread Carlos Renato M. Maia
thank you very much Jim! I'll try it. bw c Sent from my iPhone > Em 30/06/2016, às 20:33, Jim Lemon escreveu: > > Hi Carlos, > The STATA function assumes estimated population SDs. If you have > sample SDs you can specify with this: > >

Re: [R] [FORGED] Re: Can I increase the size of an asterisk in plotmath()?

2016-06-30 Thread Rolf Turner
On 01/07/16 10:51, Paul Murrell wrote: Hi There are a couple of plotmath expressions that control text size, plus in this case you could just drop the superscripting (which I believe was Goran's advice) ... plot(1:10, type="n") text(2, 8, expression(paste(bolditalic(p)^"*"))) #Rolf's original

Re: [R] Can I increase the size of an asterisk in plotmath()?

2016-06-30 Thread Rolf Turner
On 01/07/16 01:28, Sarah Goslee wrote: I don't know of an automatic way, but of course you can make it as large as you'd like. plot(1:10, type="n") text(2, 8, expression(paste(bolditalic(p)^"*"))) #Rolf's original text(2, 6,expression(paste(bolditalic(p),"*", sep = ""))) #Goran's suggestion

Re: [R] Command to combine means?

2016-06-30 Thread Jim Lemon
Hi Carlos, The STATA function assumes estimated population SDs. If you have sample SDs you can specify with this: combine<-function(n,mu,sd,sd.type=c("pop","sample")) { N<-sum(n) mean<-sum(n*mu)/N if(sd.type[1]=="sample") { meanss<-(n[1]*(mean-mu[1])^2+n[2]*(mean-mu[2])^2)/N

Re: [R] [FORGED] Re: Can I increase the size of an asterisk in plotmath()?

2016-06-30 Thread Paul Murrell
Hi There are a couple of plotmath expressions that control text size, plus in this case you could just drop the superscripting (which I believe was Goran's advice) ... plot(1:10, type="n") text(2, 8, expression(paste(bolditalic(p)^"*"))) #Rolf's original text(2, 6,

Re: [R] Writing a formula to Excel

2016-06-30 Thread Jim Lemon
Hi, I don't have excel.link, but have you tried: "=G9*100/G6\n" Jim On Thu, Jun 30, 2016 at 10:34 PM, wrote: > Hi All, > > I am using excel.link to work seemslessly with Excel. > > In addition to values, like numbers and strings, I would like to insert a > full

Re: [R] Merge several datasets into one

2016-06-30 Thread Lists
Lily Li wrote : I think you are going to have to give us some more detail. What commands did you execute? what are the names of the .csv files in your directory? Can you read one of them as asingle read.csv? > Hi R users, > > I'd like to ask that how to merge several

Re: [R] Documenting data

2016-06-30 Thread Ista Zahn
On Thu, Jun 30, 2016 at 2:50 PM, wrote: > Hi Bert, > Hi Readers, > > I did not know much about attributes in R and how to use them. If it is that > flexible you are right and I have learnt something. It is that flexible, but there is a big limitation that makes them much less

Re: [R] mvpart package

2016-06-30 Thread Bert Gunter
https://cran.r-project.org/web/packages/mvpart/index.html 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, Jun 30, 2016 at 12:43 PM, Joaquín

Re: [R] Merge several datasets into one

2016-06-30 Thread Bert Gunter
Lily: If you mean that you have several csv files in a directory/folder on your computer and you are using lapply() to do something with them, then you do not have a clue about how R works and you need to go through some tutorials to learn. There are many good ones on the web. Some

[R] mvpart package

2016-06-30 Thread Joaquín Aldabe
Does anybody know why mvpart package (for multivariate regression trees) is not available on the web? Thanks in advanced, Joaquín. -- *Joaquín Aldabe* *Grupo Biodiversidad, Ambiente y Sociedad* Centro Universitario de la Región Este, Universidad de la República Ruta 15 (y Ruta 9), Km 28.500,

[R] Merge several datasets into one

2016-06-30 Thread lily li
Hi R users, I'd like to ask that how to merge several datasets into one in R? I put these csv files in one folder, and use the lapply function, but it says that cannot open file 'xx.csv'. These files have different names, but end with .csv extension, and the files have the same header. Thanks for

Re: [R-es] Repetir datos en una tabla

2016-06-30 Thread Javier Marcuzzi
Estimado Creo que se equivoca, porque ¿Qué hace con las columnas?, luego dice que tiene 5 años ¿Qué hace con el bisiesto/s?. Yo lo haría fácil, convierto todo a un formato fecha y luego trabajo con fechas. Javier Rubén Marcuzzi De: Novvier Marco Uscuchagua Cornelio [[alternative HTML

Re: [R] Documenting data

2016-06-30 Thread G . Maubach
Hi Bert, Hi Readers, I did not know much about attributes in R and how to use them. If it is that flexible you are right and I have learnt something. Kind regards Georg > Gesendet: Donnerstag, 30. Juni 2016 um 20:06 Uhr > Von: "Bert Gunter" > An: g.maub...@gmx.de >

Re: [R] Documenting data

2016-06-30 Thread Bert Gunter
I believe Georg's pronouncements are wrong. See inline below. -- 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 ) "... > Within R there are some limitations

[R-es] Repetir datos en una tabla

2016-06-30 Thread Novvier Marco Uscuchagua Cornelio
Buen día amigos, Tengo una tabla con registros de datos por día y quisiera convertirla en horas, es decir, repetir una fila 24 veces. Lo puedo hacer manualmente pero es un registro de 5 años y tardaría una eternidad. ¿Saben cual es método más rápido? De antemano muchas gracias. Atte. Marco.

Re: [R] Documenting data

2016-06-30 Thread G . Maubach
Hi Pito, Dear Readers, as other have already mentioned, there are good practices for documenting code and data. I would like to summarize them and add a few not mentioned earlier: 1. You should have always two things: your raw data and your R script/s. The raw data is immutable whereas the R

Re: [R] Documenting data

2016-06-30 Thread Bert Gunter
Private, since this is a trivial comment. Also, just my opinion, so feel free to ignore. Capture it, yes, but not necessarily as a function; just as a script might do, and the tools mentioned can do this. As others have said, your instincts are good, and you should just choose the methods that

Re: [R] Documenting data

2016-06-30 Thread Pito Salas
Thanks to you both. I think you’re saying/implying that once I “test drive” a particular bit of cleaning I should capture it in a function which does it reproducibly against the raw data, and that becomes the best documentation for it. That makes sense. Pito Salas Brandeis Computer Science

Re: [R] Command to combine means?

2016-06-30 Thread Bert Gunter
... Time to do your homework. Have you gone through any R tutorials? Some recommendations here: https://www.rstudio.com/online-learning/#R 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

Re: [R] Documenting data

2016-06-30 Thread Bert Gunter
In addition to what others have suggested, see ?history. 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, Jun 30, 2016 at 7:51 AM, Pito

Re: [R] Documenting data

2016-06-30 Thread Ulrik Stervbo
Vince Buffalo has covers this nicely in his book "Bioinformatics Data Skills". The original data should stay the original data is immutable and Vince then suggests that you have a text file in your data directory where you explain where the data came from and which scripts you used to create a

Re: [R] Documenting data

2016-06-30 Thread Robert Baer
You might look at: http://stackoverflow.com/questions/7979609/automatic-documentation-of-datasets You might also, try the FIle | Compile Notebook from within R-Studio (https://www.rstudio.com/) on your well-documented R-scripts to get a nice reproducible recording/report of data analysis

Re: [R] Documenting data

2016-06-30 Thread Christopher W Ryan
Pito-- You describe excellent practices. The R code itself, saved as a script, provides some documentation of how you got from original data to wherever you are. Use # comments liberally. Whenever possible, save your raw data, however it was when you got it--avoid changing it--make all the

Re: [R] Command to combine means?

2016-06-30 Thread S Ellison
Stata's documentation lists this as a meta-analysis tool. You may want to look at the rma function in the metafor package for various approaches to that problem. S Ellison > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Carlos R. > Moreira Maia >

[R] Command to combine means?

2016-06-30 Thread Carlos R. Moreira Maia
Dear all, I'm newbie with R (changing from STATA), and I can't find some commands. One of those is the "combine", which I use to combine means like this: n1 m1 sd1 n2 m2 sd2 combine 12 3 1 34 45 4 Combine has calculated the following values:

[R] rpart - plotcp find specificity and sensitivity

2016-06-30 Thread Parsa Akbari
Hi, I am using rpart to build a decision tree, I am then using printcp to find the cross-validation error (xerror) of different splits of the decision tree. I was wondering how I can use the rpart package to find sensitivity (false negative) and specificity (false positive) of cross-validation

[R] Documenting data

2016-06-30 Thread Pito Salas
I am studying statistics and using R in doing it. I come from software development where we document everything we do. As I “massage” my data, adding columns to a frame, computing on other data, perhaps cleaning, I feel the need to document in detail what the meaning, or background, or

[R] lineplot.CI xaxis scale change in sciplot?

2016-06-30 Thread Clemence Henry
Hi, I am trying to change the values of the tick marks on the xaxis of the following multipanel plot (see relevant bits of script below) to increments of 50 or to a custom scale (ie. 50, 100, 150, 200, 300...). So far I tried using xaxp or xlim both in par() or lineplot.CI(), as well as

Re: [R] Can I increase the size of an asterisk in plotmath()?

2016-06-30 Thread Sarah Goslee
I don't know of an automatic way, but of course you can make it as large as you'd like. plot(1:10, type="n") text(2, 8, expression(paste(bolditalic(p)^"*"))) #Rolf's original text(2, 6,expression(paste(bolditalic(p),"*", sep = ""))) #Goran's suggestion text(2, 3,

[R] Writing a formula to Excel

2016-06-30 Thread G . Maubach
Hi All, I am using excel.link to work seemslessly with Excel. In addition to values, like numbers and strings, I would like to insert a full operational formula into a cell. xlc["G14"] <- print(paste("=G9*100/G6"), quote = FALSE) The strings is put into the cell, but the cell is not

Re: [R] Understanding and predict round-off errors sign on simple functions

2016-06-30 Thread DIGHE, NILESH [AG/2362]
Using "runmean" function from caTools package within your SMA function appears to solve the issue. Please see details below. library(caTools) > dput(m) structure(c(-0.626453810742332, 0.183643324222082, -0.835628612410047, 1.59528080213779, 0.329507771815361, -0.820468384118015,

Re: [R] > Understanding strip.default & strip.custom

2016-06-30 Thread Patrick Connolly
On Wed, 29-Jun-2016 at 10:15PM +1000, Duncan Mackay wrote: |> Patrick |> |> Have a look at |> https://stat.ethz.ch/pipermail/r-help/2006-August/110621.html |> and |> https://stat.ethz.ch/pipermail/r-help/2008-June/165279.html |> |> I remember working it out with an example but I cannot

Re: [R] > Understanding strip.default & strip.custom

2016-06-30 Thread Patrick Connolly
On Wed, 29-Jun-2016 at 07:57AM -0700, Bert Gunter wrote: |> Did you mean: strip.custom(factor.levels...) ? |> Aaamm yes. Must stop doing this stuff so late. |> (I know of no "panel.custom()" function) |> |> |> -- Bert |> Bert Gunter |> |> "The trouble with having an open mind

Re: [R] Antwort: Re: Antwort: Re: Antwort: Re: Installing from source on Windows 7: tibble [RE OPENED]

2016-06-30 Thread Duncan Murdoch
On 30/06/2016 2:35 AM, g.maub...@weinwolf.de wrote: Hi Duncan, I would not have changed the COMPILED_BY option unless I thought I have to. In my "C:\R-Project\Rtools\mingw_32\bin" I have c++.exe g++.exe gcc.exe i686-w64-mingw32-c++.exe i686-w64-mingw32-g++.exe i686-w64-mingw32-gcc-4.9.3.exe

Re: [R] Can I increase the size of an asterisk in plotmath()?

2016-06-30 Thread Rolf Turner
On 30/06/16 19:38, Göran Broström wrote: Rolf, text(7.5,2.5,expression(paste(bolditalic(p),"*", sep = ""))) looks quite nice. On my Mac at least. Well, it didn't look nice on my laptop. The asterisk was nearly invisible. cheers, Rolf -- Technical Editor ANZJS Department of Statistics

Re: [R] data.table: “group counter” with NAs

2016-06-30 Thread PIKAL Petr
Hi > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Marine > Regis > Sent: Thursday, June 30, 2016 12:32 AM > To: r-help@r-project.org > Subject: [R] data.table: “group counter” with NAs > > Hello, > > I would like to add a counter column in a data

Re: [R] a new df with one combined column

2016-06-30 Thread PIKAL Petr
Hi. Hm. As OP has the variables in data frame, I think that the first answer by Ulrik was correct. However different class of those two columns prevents merge to result in one column. After df1$License is changed propperly to numeric. df.merge <- merge(df1, df2, by.x="License", by.y="Diff",

Re: [R] Can I increase the size of an asterisk in plotmath()?

2016-06-30 Thread Göran Broström
Rolf, text(7.5,2.5,expression(paste(bolditalic(p),"*", sep = ""))) looks quite nice. On my Mac at least. Göran On 30/06/16 02:38, Rolf Turner wrote: I am trying to plot an expression of the form "p^*" --- a bold letter p with the asterisk as a superscript. I can get *something* with code

Re: [R] linking vignettes in a man page

2016-06-30 Thread Christophe Dutang
Thanks both to your answer. In my case, I link both html and pdf vignetttes with \href, typically \href{../doc/FAQ.html}{Frequently Asked Questions}. Maybe Duncan, you could add your answer based on \url{../doc/} and \url{../..//help/} as a complement in Section 2.5 of Writing R extensions?

[R] Antwort: Re: Antwort: Re: Antwort: Re: Installing from source on Windows 7: tibble [RE OPENED]

2016-06-30 Thread G . Maubach
Hi Duncan, I would not have changed the COMPILED_BY option unless I thought I have to. In my "C:\R-Project\Rtools\mingw_32\bin" I have c++.exe g++.exe gcc.exe i686-w64-mingw32-c++.exe i686-w64-mingw32-g++.exe i686-w64-mingw32-gcc-4.9.3.exe i686-w64-mingw32-gcc.exe In my