Re: [R] HELP asin transformation

2015-02-24 Thread Marc Girondot
Le 22/02/2015 19:28, CHIRIBOGA Xavier a écrit : Dear all, I attempted to transform my data using "asin" but a WARNING message appears: dat1$Abu.tr<-asin(sqrt(dat1$Abundance/100)) Warning message: In asin(sqrt(dat1$Abundance/100)) : NaNs produced What does it mean? Is it a problem? How ca

Re: [R] Barplot

2015-02-24 Thread PIKAL Petr
Hi Homework? We do not solve your homeworks here. barplot(temp$revenue) and play with col and names.arg together with ?interaction of Year and Gender Or use ggplot2 Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Partha > Sinha > Sen

Re: [R] HELP asin transformation

2015-02-24 Thread Marc Girondot
Le 22/02/2015 19:28, CHIRIBOGA Xavier a écrit : Dear all, I attempted to transform my data using "asin" but a WARNING message appears: dat1$Abu.tr<-asin(sqrt(dat1$Abundance/100)) Warning message: In asin(sqrt(dat1$Abundance/100)) : NaNs produced What does it mean? Is it a problem? How ca

[R] Barplot

2015-02-24 Thread Partha Sinha
i want to plot the following data in barplot Year Gender revenue 2001 M 100 2001 F 150 2002 M75 2002 F200 2003 M150 2003 F 75 I want to compare performance of gender in year wise fashion . How to do ? Parth

Re: [R] One column listing on wide monitors too

2015-02-24 Thread 颜林林
options(width=10) On Wed, Feb 25, 2015 at 4:08 AM, marekl wrote: > Hi, > > it is probably very basic question, but I can't get answer still. > > R shows listings in more columns on wider monitors. Like on this picture: > http://i.imgur.com/GLF70r9.png > > Is there a way to set R to show listings

[R] Getting Rmarkdown to generate custom LaTEX environment

2015-02-24 Thread Huan Truong
Hi all, I was struggling trying to make my Rmarkdown document to generate \begin{figure*} instead of \begin{figure} So that the figure spans on two columns (I'm using a custom template). in my figure. I have read the Rmarkdown Reference Guide, and searched for it on StackOverflow, and the gen

[R] problem in R2JAGS

2015-02-24 Thread thanoon younis
Hi everyone, I need your help to correct R code using R2JAGS. The problem is when i defined testJAGSdata which contains on all the data as following testJAGSdata <- read.bugsdata("bugsdata.R") bugsdata.R<-read.table("F:/JAGS/bugsdata.R") i found this error > testJAGSdata <- read.bugsdata("bugs

Re: [R] R crashes with "Error in UseMethod("depth")" when resizing ggplot windows

2015-02-24 Thread Duncan Murdoch
On 24/02/2015 4:13 PM, Eike Petersen wrote: > Hello everyone, > > Quite frequently I encounter crashes when resizing ggplot windows. The > error message is always as follows: > >> Error in UseMethod("depth") : >> no applicable method for 'depth' applied to an object of class "NULL" >> >> Process

Re: [R] One column listing on wide monitors too

2015-02-24 Thread David L Carlson
Here are several ways: > a <- paste("String", 1:16) > a [1] "String 1" "String 2" "String 3" "String 4" "String 5" "String 6" [7] "String 7" "String 8" "String 9" "String 10" "String 11" "String 12" [13] "String 13" "String 14" "String 15" "String 16" > matrix(a, length(a)) [,1]

Re: [R] decimal places

2015-02-24 Thread peter dalgaard
> On 24 Feb 2015, at 18:24 , Duncan Murdoch wrote: > > stats:::print.pairwise.htest > > and you'll see it hard-codes 2 significant digits. (Which surprises me > a bit, but I guess your p-values are all 0.030 and 0.050.) It was a decade and a half ago, but I think the general idea of the hardc

[R] R crashes with "Error in UseMethod("depth")" when resizing ggplot windows

2015-02-24 Thread Eike Petersen
Hello everyone, Quite frequently I encounter crashes when resizing ggplot windows. The error message is always as follows: > Error in UseMethod("depth") : > no applicable method for 'depth' applied to an object of class "NULL" > > Process R exited abnormally with code 255 at Tue Feb 24 21:51:18

[R] One column listing on wide monitors too

2015-02-24 Thread marekl
Hi, it is probably very basic question, but I can't get answer still. R shows listings in more columns on wider monitors. Like on this picture: http://i.imgur.com/GLF70r9.png Is there a way to set R to show listings like this, in one column only? [1] "String 1" [2] "String 2" [3] "String 3" ...

Re: [R] Environment error in the car package Anova.lme function

2015-02-24 Thread David Winsemius
On Feb 24, 2015, at 10:24 AM, William Randall Henner wrote: > When I call the Anova function on a lme object from inside a function > environment I get an error: > > Error in eval(expr, envir, enclos) : object 'y' not found > > > However, if I call the exact same code in the global environment

[R] Environment error in the car package Anova.lme function

2015-02-24 Thread William Randall Henner
When I call the Anova function on a lme object from inside a function environment I get an error: Error in eval(expr, envir, enclos) : object 'y' not found However, if I call the exact same code in the global environment there is no error. My theory is that for some reason the Anova.lme function

Re: [R] help

2015-02-24 Thread jim holtman
Where did 36 pairs come from? 6 things taken 2 at a time is 15 pairs. Here is an example of how it might be done: library(seqinr) Seq1 <- read.fasta(file ="C:/D.fasta") # are you doing each pair so that you have 6 taken 2 at a time for 15 plots? pairs <- combn(6, 2) # create the pairings # now t

Re: [R] decimal places

2015-02-24 Thread Duncan Murdoch
On 24/02/2015 9:11 AM, Linh Nguyen Vaccarello wrote: > I am very new to R and I'm trying to increase my decimal places (from 2 to > 4) for this code: > >> with(longitudinal, pairwise.wilcox.test(DV, Time, > p.adjust.method="holm", >

Re: [R] Not finding superclass in library

2015-02-24 Thread Martin Maechler
> "RB" == Ramiro Barrantes > on Tue, 24 Feb 2015 16:34:13 + writes: RB> Thank you so much for your help. Will aim at making a RB> reproducible example next time, maybe if I had done that RB> I would realized that the issue was that I was using RB> Rscript, which d

Re: [R] Not finding superclass in library

2015-02-24 Thread Martin Maechler
> Rolf Turner > on Tue, 24 Feb 2015 09:41:42 +1300 writes: > On 24/02/15 09:35, Ramiro Barrantes wrote: >> Hello, >> >> I have a library that I created . > > No you ***DO NOT***. You have a ***PACKAGE***. If you > cannot even get your terminology

[R] help

2015-02-24 Thread Ron Flatau
I try to create a dot plot loop for 6 protein, that mean that i want to do dot plot to 36 pairs of protein in a loop library(seqinr) Seq1 <- read.fasta(file ="C:/D.fasta") Protinename1 <- Seq1[[1]] Protinename2 <- Seq1[[2]] Protinename3 <- Seq1[[3]] Protinename4 <- Seq1[[4]] Protinename5 <- Seq1[[5

[R] decimal places

2015-02-24 Thread Linh Nguyen Vaccarello
I am very new to R and I'm trying to increase my decimal places (from 2 to 4) for this code: >with(longitudinal, pairwise.wilcox.test(DV, Time, p.adjust.method="holm", paired=TRUE)) Right now the output is: Pairwise

Re: [R] Not finding superclass in library

2015-02-24 Thread Ramiro Barrantes
Thank you so much for your help. Will aim at making a reproducible example next time, maybe if I had done that I would realized that the issue was that I was using Rscript, which does not load the methods library, which was the source of the problem. Fro

Re: [R] xtable caption knitr

2015-02-24 Thread Ulises M. Alvarez
On 02/24/2015 05:16 AM, AURORA GONZALEZ VIDAL wrote: I have a problem with the caption option on the xtable function. Using Rmarkdown, knitr generates correctly a pdf when I write something like this: ```{r xtable, results="asis"} library( xtable ) variableName <- c( "V03_1" ) age <- c( rep(1,

[R] Parallel for that does not keep the results

2015-02-24 Thread Alaios via R-help
Hi all,I am working in a multi core machine and I am trying to make some parallel code to speed up the process. I have seen already the foreach packet but it looks like that it always combine the results on a list. My case though is simpler since I am plotting and saving in external files, insid

Re: [R] xtable caption knitr

2015-02-24 Thread Michael Dewey
Dear Aurora I suspect the underscore character in your variable name is the problem. On 24/02/2015 11:16, AURORA GONZALEZ VIDAL wrote: Dear all, I have a problem with the caption option on the xtable function. Using Rmarkdown, knitr generates correctly a pdf when I write something like this:

Re: [R] Convert windows source package for Mac use

2015-02-24 Thread S Ellison
> Is there a way to convert a Windows source package so it can be installed on > a Mac? The .zip format yo mention is not a source package; it is a compiled binary. The _source_ packages are .tar.gz files. Those do not need to be converted for different platforms (provided the package supports

Re: [R] How to Deploy a 'poLCA' Model?

2015-02-24 Thread David L Carlson
Looking at package poLCA I see functions poLCA.predcell() and poLCA.table(). If these do not do what you want, you will need to be clearer and provide a reproducible example. - David L Carlson Department of Anthropology Texas A&M University College Station, TX

Re: [R] Convert windows source package for Mac use

2015-02-24 Thread Marc Schwartz
> On Feb 24, 2015, at 7:19 AM, Warthog wrote: > > Hi, > I am on a Mac. > Is there a way to convert a Windows source package so it can be installed on > a Mac? > > I have a package in zip form from a friend who runs Windows. > I THINK that it is in compiled format for Windows. > The Descrip

[R] Convert windows source package for Mac use

2015-02-24 Thread Warthog
Hi, I am on a Mac. Is there a way to convert a Windows source package so it can be installed on a Mac? I have a package in zip form from a friend who runs Windows. I THINK that it is in compiled format for Windows. The Description says: Built: R 3.1.2 x86_64-w64-mingw32windows I tried

[R] xtable caption knitr

2015-02-24 Thread AURORA GONZALEZ VIDAL
Dear all, I have a problem with the caption option on the xtable function. Using Rmarkdown, knitr generates correctly a pdf when I write something like this: ```{r xtable, results="asis"} library( xtable ) variableName  <- c( "V03_1" ) age <- c( rep(1,10),rep(2,10),rep(3,10) ) gender <- c( rep("m

Re: [R] Packages not installing on XP

2015-02-24 Thread S Ellison
> 2) Switch off any anti-virus runtime checking. Thanks; that seems to have been it - probably because of a recent Norton update, as previous package installations worked smoothly. S *** This email and any attachments are confiden

Re: [R] Packages not installing on XP

2015-02-24 Thread Prof Brian Ripley
On 24/02/2015 10:52, S Ellison wrote: I have an installation problem; on installing MethComp either from repository or local zip file on Win XP (!) I get Warning: unable to move temporary installation 'C:\Program Files\R\R-3.1.2\library\filefbc44fe1354\MethComp' to ‘C:\Program Files\R\R-3.1.2

[R] Packages not installing on XP

2015-02-24 Thread S Ellison
I have an installation problem; on installing MethComp either from repository or local zip file on Win XP (!) I get Warning: unable to move temporary installation 'C:\Program Files\R\R-3.1.2\library\filefbc44fe1354\MethComp' to ‘C:\Program Files\R\R-3.1.2\library\MethComp’ The same occurs with

Re: [R] Error with using windRose function from the open air package

2015-02-24 Thread Jim Lemon
Hi Alexandra, As Jeff mentioned, cbind is probably causing the conversion to factors. One thing I would suggest is keeping the names: windSFO<-data.frame(ws=ws,wd=wd,stn=stn,yearSite=yearSite) as it looks like the windRose function expects the names to be there. If the error persists after using