Re: [R] package ‘contingency.tables’ is not available (for R version 2.15.2)

2013-03-04 Thread Joanna Papakonstantinou
anna On Mon, Mar 4, 2013 at 2:15 PM, Milan Bouchet-Valat wrote: > Le lundi 04 mars 2013 à 12:37 -0600, Joanna Papakonstantinou a écrit : > > I am trying to create contingency tables (to evaluate prior to performing > > Pearson's Chi-Squared test for independence). I would like

[R] package ‘contingency.tables’ is not available (for R version 2.15.2)

2013-03-04 Thread Joanna Papakonstantinou
I am trying to create contingency tables (to evaluate prior to performing Pearson's Chi-Squared test for independence). I would like to see column and row totals as well as expected and observed values and cell counts. I tried to use the package "contingency. tables" but get the following warning:

Re: [R] cutreeDynamic error

2013-02-27 Thread Joanna Papakonstantinou
Thank you, Peter. This worked. I appreciate your time and help. Regards, Joanna On Wed, Feb 27, 2013 at 1:21 AM, Peter Langfelder < peter.langfel...@gmail.com> wrote: > On Tue, Feb 26, 2013 at 8:34 AM, Joanna Papakonstantinou > wrote: > > So I realized I had to convert my dd

[R] cutreeDynamic error

2013-02-26 Thread Joanna Papakonstantinou
So I realized I had to convert my dd.daisy to a matrix and used: ddmatrix.daisy<-as.matrix(dd.daisy) and then I passed that in as the distM: > cutreeDynamic(as.hclust(dd.diana), cutHeight = NULL, minClusterSize = 2, method = "hybrid", distM = ddmatrix.daisy,deepSplit = (ifelse(method=="hybrid", 1,

[R] cutreeDynamic error

2013-02-26 Thread Joanna Papakonstantinou
ht = 2, minClusterSize = 1, method = "hybrid", : Argument dendro must have class hclust. Is this trying to tell me I cannot use this with DIANA but only with hclust because I thought it could be used with any of the hierarchical methods? I hope someone can please tell me what I am doing

[R] Argument dendro must have class hclust - cutreeDynamic error

2013-02-25 Thread Joanna Papakonstantinou
I am having difficulty getting the dynamic tree cut package to work. Given the data table "myddtable" LengthPlaceColorAge5HRed224ABlue205WGreen243GRed222GBlue236WGreen255ARed194H Blue23 I created a similarity matrix using DAISY and Gower metric and specified Place and Color columns as characters (

Re: [R] How to define variables as categorical using Gower with Daisy

2013-02-25 Thread Joanna Papakonstantinou
Thank you for pointing me to ?dissimilarity.object. I now see that N = Nominal (factor) and I = Interval scaled (numeric). Regards. On Sun, Feb 24, 2013 at 2:36 PM, Peter Ehlers wrote: > On 2013-02-24 07:57, Joanna Papakonstantinou wrote: > >> I am using the iris dataset that co

[R] How to define variables as categorical using Gower with Daisy

2013-02-24 Thread Joanna Papakonstantinou
> I am using the iris dataset that contains mixed variables (some columns are > numeric and some categorical). > > > iris > Sepal.Length Sepal.Width Petal.Length Petal.WidthSpecies > 15.1 3.5 1.4 0.2 setosa > 24.9 3.0

[R] Fwd: difficulty defining variables as categorical using Gower with DAISY

2013-02-22 Thread Joanna Papakonstantinou
orrectly. Could someone please tell me how to specify the types correctly? Thank you. > > ** > > Joanna Papakonstantinou, Ph.D. > [[alternative HTML version deleted]] __ R-help@r-projec

Re: [R] Error in setwd(outDir) : cannot change working directory

2013-02-21 Thread Joanna Papakonstantinou
net ahead with using the installation. I have not encountered anything wrong while using is so unless there is something you can tell from the above, I guess I will just continue to use the current installation. Many thanks. On Thu, Feb 21, 2013 at 2:36 PM, Gabor Grothendieck wrote: > On Thu, Feb 2

Re: [R] duplicate 'row.names' are not allowed

2013-02-21 Thread Joanna Papakonstantinou
Thank you. I ended up converting the excel file to a csv file and using mytable<-read.csv(myfile, header=T) and it worked so I abandoned using the tab delimited txt file. On Wed, Feb 20, 2013 at 9:29 PM, Jim Lemon wrote: > On 02/21/2013 07:10 AM, Joanna Papakonstantinou wrote: > >&

Re: [R] Error in setwd(outDir) : cannot change working directory

2013-02-21 Thread Joanna Papakonstantinou
I only thought one was missing since it kept giving me error that it wasn't set. But all seems to working OK so I guess I don't need to create anything. Thank you for your help. On Wed, Feb 20, 2013 at 7:28 PM, S Ellison wrote: > > > > Should I create an output directory somewhere either in Pro

Re: [R] duplicate 'row.names' are not allowed

2013-02-20 Thread Joanna Papakonstantinou
gt; > Cu Sa Na Ci Se NM NPI IPI Seg > > 0090.00 15.48 1 SOM S L TX 0 0.2 0.2 7-Very > > I count 11 data columns and nine column names. > > -- > Alameda, CA, USA > > -- ** *Joanna Papakonstantinou, Ph.D.*

Re: [R] Error in setwd(outDir) : cannot change working directory

2013-02-20 Thread Joanna Papakonstantinou
I ran >testInstalledPackages(scope="base",errorsAreFatal=FALSE) and it completed (and spit out a graph). Does this mean I am ok to contunie using this installation of R? Should I create an output directory somewhere either in Program Files where R is installed or in my working directory? Thank you

[R] duplicate 'row.names' are not allowed

2013-02-20 Thread Joanna Papakonstantinou
ry Please tell me what I am doing wrong. Thank you. ****** *Joanna Papakonstantinou, Ph.D.* [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide htt

Re: [R] Error in setwd(outDir) : cannot change working directory

2013-02-20 Thread Joanna Papakonstantinou
ndard, do you just recommend I unistall and resintsall somewhere else? Thank you for your help. On Wed, Feb 20, 2013 at 11:33 AM, Gabor Grothendieck < ggrothendi...@gmail.com> wrote: > On Wed, Feb 20, 2013 at 11:54 AM, Joanna Papakonstantinou > wrote: > > I installed R on my Win

[R] Error in setwd(outDir) : cannot change working directory

2013-02-20 Thread Joanna Papakonstantinou
ry ‘C:/Program Files/R/R-2.15.2/library’. Do all packages need to be in one place? If so, should they be in my Documents or in Program Files? Thank you for your help. ****** *Joanna Pa