[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] package ‘contingency.tables’ is not available (for R version 2.15.2)

2013-03-04 Thread Joanna Papakonstantinou
, Mar 4, 2013 at 2:15 PM, Milan Bouchet-Valat nalimi...@club.frwrote: 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 to see column and row

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 joanna.p...@gmail.com wrote: So I realized I had to convert my

[R] cutreeDynamic error

2013-02-26 Thread Joanna Papakonstantinou
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 wrong. Thank you. -- ** *Joanna Papakonstantinou, Ph.D

[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,

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 ehl...@ucalgary.ca wrote: On 2013-02-24 07:57, Joanna Papakonstantinou wrote: I am using the iris dataset

[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

[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 1.4

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

2013-02-22 Thread Joanna Papakonstantinou
. ** 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 http://www.R-project.org/posting

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 s.elli...@lgcgroup.com wrote: Should I create an output directory

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 j...@bitwrit.com.au 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
, 2013 at 2:36 PM, Gabor Grothendieck ggrothendi...@gmail.com wrote: On Thu, Feb 21, 2013 at 10:46 AM, Joanna Papakonstantinou joanna.p...@gmail.com wrote: 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

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

2013-02-20 Thread Joanna Papakonstantinou
place? If so, should they be in my Documents or in Program Files? Thank you for your help. ** *Joanna Papakonstantinou, Ph.D.* [[alternative HTML version deleted]] __ R-help@r

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

2013-02-20 Thread Joanna Papakonstantinou
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 joanna.p...@gmail.com wrote: I installed R on my Windows laptop in C:\Program Files\R\R-2.15.2

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

2013-02-20 Thread Joanna Papakonstantinou
. ** *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 http://www.R-project.org/posting-guide.html and provide commented

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

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

2013-02-20 Thread Joanna Papakonstantinou
, Joanna Papakonstantinou wrote: I am getting an error when trying to import tab delimited .txt file saved from Excel. I have read what is posted on the forums but still am confused. I saved my Excel file (DataTestforR.xlsx) as a tab delimited txt file (DataTestR.txt) on my Desktop