Re: [R] Frequency count of terms only in a given column in R

2015-08-31 Thread PIKAL Petr
Hi and if you manage to read the file to R correctly as two column data frame, you can achieve your task by: table(yourdata[,1]) Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Michael > Dewey > Sent: Friday, August 28, 2015 5:16 PM >

Re: [R] Fisher's Test 5x4 table

2015-08-31 Thread peter dalgaard
> On 30 Aug 2015, at 13:54 , paul brett wrote: > > Fisher's Exact Test for Count Data with simulated p-value (based on 1e+07 > replicates) > > data: Trapz > p-value = 1e-07 > alternative hypothesis: two.sided > > > Dispite these chages, the changes equations is not

Re: [R] Fisher's Test 5x4 table

2015-08-31 Thread Gerrit Eichner
Paul, in addition to Peter's suggestion about the missing of theory you are also completely missing to explain what you mean by "[it] is not giving me the results for the calculations" or "[how] to get the results of the fisher test". They are there in the output of R's fisher.test() (if you

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

2015-08-31 Thread Marco Colagrossi
Thanks for your help, I got the mistake I was making and I managed to find a solution regarding those graphs; I don't want to abuse of your patience but I have three further questions: 1. Always regarding the forest plots, it is possible to make a cross-subset? I try to explain my self better; I

Re: [R] using survreg() in survival package with "long" data

2015-08-31 Thread Fox, John
Dear Terry, Thank you for the extended explanation -- it's helpful. Best, John From: Therneau, Terry M., Ph.D. [thern...@mayo.edu] Sent: August 31, 2015 9:56 AM To: r-help@r-project.org; Fox, John; Göran Broström Subject: Re: using survreg() in

[R] [R-pkgs] New packages on CRAN: googleAuthR and searchConsoleR

2015-08-31 Thread Mark Edmondson
Hi R package users, You may be interested in these two new packages now available on CRAN: *googleAuthR* lets you easily authenticate with Google OAuth2 APIs and make your own packages with them. It also is multi-user Shiny compatible, so you can publish your apps and users can work with their

Re: [R] Fisher's Test 5x4 table

2015-08-31 Thread paul brett
Hi Peter and Gerrit, Sorry about my confusion with the results I was not entirely sure what they were. I was expecting some form of a table and i didn't realize that with the results of a fisher test, one just gets a p-value. I had tried the 'estimate' and 'null.value'

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

2015-08-31 Thread Michael Dewey
Comments in line On 31/08/2015 16:08, Marco Colagrossi wrote: Thanks for your help, I got the mistake I was making and I managed to find a solution regarding those graphs; I don't want to abuse of your patience but I have three further questions: 1. Always regarding the forest plots, it is

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

2015-08-31 Thread Marco Colagrossi
The solution that you proposed works perfectly, thank you very much. I'll wait for Wolfgang answer as I'm having few doubts about the models. Thanks On 31 August 2015 at 18:34, Michael Dewey wrote: > Comments in line > > On 31/08/2015 16:08, Marco Colagrossi wrote: >>

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

2015-08-31 Thread Viechtbauer Wolfgang (STAT)
Have you read help(rma.mv)? It describes in detail what "random = ~ 1 | author" does. Also, I think you may find some of these useful: http://www.metafor-project.org/doku.php/analyses#multivariate_multilevel_meta-analysis_models Especially:

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

2015-08-31 Thread Navien
Dear Wolfgang, Kindly please i have an issue with R code could you please help me. Best Regards On Mon, Aug 31, 2015 at 6:24 PM, Viechtbauer Wolfgang (STAT)-2 [via R] < ml-node+s789695n4711682...@n4.nabble.com> wrote: > Have you read help(rma.mv)? It describes in detail what "random = ~ 1 | >

[R] Trouble with Caret and C5.0

2015-08-31 Thread Lorenzo Isella
Dear All, I am trying to mine a small dataset. Admittedly, it is a bit odd since it is an example of multi-classification task where I have more than 300 different classes for about 600 observations. Having said that, the problem is not the output of my script, but the fact that it gets stuck,

[R] modify strip labels with given text using lattice package

2015-08-31 Thread Luigi Marongiu
Dear all, I am drawing a barchart plot with lattice and the resulting strips are taking the value of the variable being compared (in this example "assay"). However I would like to write myself the value to place into the strips, let's say I want to call the variables as "molecular test" and

[R] Conditional replacement and removal of data frame values

2015-08-31 Thread Luigi Marongiu
Dear all, I have a data frame and I would like to do the following: a) replace value of one variable "a" according to the value of another one "b" b) remove all the instances of the variable "b" For the sake of argument, let's say I have the following data frame: test <- rep(c("Adenovirus",

[R] Interpreting interaction terms in a glmm

2015-08-31 Thread Joaquín Aldabe
Hi, I would appreciate if someone could send me or indicate where to find information on how to interpret second order interactions (especially when variables are both continuous) in the context of glmm R output. Thanks in advanced, Joaquín -- *Joaquín Aldabe* *Grupo Biodiversidad, Ambiente y

Re: [R] modify strip labels with given text using lattice package

2015-08-31 Thread David Winsemius
On Aug 31, 2015, at 1:17 PM, Luigi Marongiu wrote: > Dear all, > I am drawing a barchart plot with lattice and the resulting strips are > taking the value of the variable being compared (in this example > "assay"). However I would like to write myself the value to place into > the strips, let's

Re: [R] Conditional replacement and removal of data frame values

2015-08-31 Thread David Winsemius
On Aug 31, 2015, at 1:49 PM, Luigi Marongiu wrote: > Dear all, > I have a data frame and I would like to do the following: > a) replace value of one variable "a" according to the value of another one "b" > b) remove all the instances of the variable "b" > > For the sake of argument, let's say I

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

2015-08-31 Thread shawin
I have an issue ans i posted it , so i would like to receive a solution please On Mon, Aug 31, 2015 at 8:35 PM, shawin [via R] < ml-node+s789695n4711689...@n4.nabble.com> wrote: > I have a data frame csv file and I'm trying to calculate median for each > group separately row by row . When I

[R] Non zero padding dates

2015-08-31 Thread Dominic Roye
Hello, How can I convert date-time in which month and day have non zero padding? For example: "2015119_06" ("2015-01-19 06:00") Thanks Dominic [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

[R] PLS Regression: Non-Metric

2015-08-31 Thread iclozm
Hello, I was wondering if anyone has successfully implemented the non-metric pls regression algorithm presented by Giorgio Russolillo in the appendix of his PhD dissertation. I am having issues calling the function with his example matrices (tea data set) and I think there may be a few mistakes

Re: [R] Non zero padding dates

2015-08-31 Thread William Dunlap
> For example: "2015119_06" ("2015-01-19 06:00") How would the ninth of November be represented? Bill Dunlap TIBCO Software wdunlap tibco.com On Mon, Aug 31, 2015 at 1:11 PM, Dominic Roye wrote: > Hello, > > How can I convert date-time in which month and day have non

Re: [R] Non zero padding dates

2015-08-31 Thread jim holtman
you will probably have to take a guess since your example is also 2015-11-09 06:00; so how do you determine which one. come up with an algorithm and the solution is easy. Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you

Re: [R] Non zero padding dates

2015-08-31 Thread Bert Gunter
In your example, how would you know that it is not 2015-11-9 06:00. ? Cheers, Bert On Monday, August 31, 2015, Dominic Roye wrote: > Hello, > > How can I convert date-time in which month and day have non zero padding? > > For example: "2015119_06" ("2015-01-19

[R-es] modelos nulos

2015-08-31 Thread Luis Espinola
Querida comunidad, Estoy queriendo usar el paquete EcoSimR, para aplicar modelos nulos. En el tutorial no explica algunos resultados. Quisiera saber si alguien lo ha utilizado y me se podrían ayudar. No se como extraer los valores de los indices C-scores y los otros que menciona y también

Re: [R] reshape: melt and cast

2015-08-31 Thread stephen sefick
This is very hard to read. Please use dput to provide data. I believe the answer is in the manual. Look at the aggregation function argument. Please excuse my brevity; this message was sent from my telephone. On Sep 1, 2015 12:11 AM, "Matt Pickard" wrote: > Hi,

[R] reshape: melt and cast

2015-08-31 Thread Matt Pickard
Hi, I have data that looks like this: *> head(ratings) QCode PID RaterName SI1 SI2 SI3 SI4 SI5 SI6 SI7 SI8 SI9 SI10 SI111 GUILT 1123 cwormhoudt 2 2 3 1 1 1 3 3 3 212 LOVE 1123 cwormhoudt 1 2 3 2 1 1 1 1 11 33 GUILT 1136 cwormhoudt 1 2

Re: [R] modify strip labels with given text using lattice package

2015-08-31 Thread Duncan Mackay
Hi Luigi add strip.custom argument barchart(test ~ count|assay, df, groups = res, stack = TRUE, main = "Comparison of test results", xlab = "Count", col = c("yellow", "blue"), strip= strip.custom(factor.levels = c("molecular test","serological test"),

Re: [R] using survreg() in survival package with "long" data

2015-08-31 Thread Therneau, Terry M., Ph.D.
On 08/30/2015 05:00 AM, r-help-requ...@r-project.org wrote: I'm unable to fit a parametric survival regression using survreg() in the survival package with data in "counting-process" ("long") form. To illustrate using a scaled-down problem with 10 subjects (with data placed on the web):