Re: [R] importing data error question

2019-01-16 Thread Fox, John
Dear Jihee, This appears to be a different problem. You were apparently able to access the spreadsheet file, but the R Commander didn't find a suitable worksheet in it. Try downloading and reading the file at . If that

Re: [R] importing data error question

2019-01-16 Thread Fox, John
Dear Jihee, Probably the easiest way to change the language to English temporarily in R is to enter the command Sys.setenv(LANGUAGE="en") at the R command prompt prior to loading the Rcmdr package. I hope that this helps, John > On Jan 16, 2019, at 7:02 PM, 우지희 wrote: > > Thanks

Re: [R] Confusion Table

2019-01-16 Thread reichmanj
Ah yes - thank you -Original Message- From: Jeff Newmiller Sent: Wednesday, January 16, 2019 6:49 PM To: r-help@r-project.org; reichm...@sbcglobal.net Subject: Re: [R] Confusion Table If you turn your character variable into a factor and specify the levels argument, you can control

Re: [R] Confusion Table

2019-01-16 Thread reichmanj
That's easy enough Thanks -Original Message- From: Peter Langfelder Sent: Wednesday, January 16, 2019 6:48 PM To: reichm...@sbcglobal.net Cc: r-help Subject: Re: [R] Confusion Table The lazy way is to do tst_tab = tst_tab[c(2,1), c(2,1)] The less lazy way is something like

Re: [R] Confusion Table

2019-01-16 Thread Jeff Newmiller
If you turn your character variable into a factor and specify the levels argument, you can control the sequence in which any discrete values are presented. tst_pred <- factor( tst_pred, levels=c("No","Yes") ) On January 16, 2019 4:31:15 PM PST, reichm...@sbcglobal.net wrote: >R-Help > > >

Re: [R] Confusion Table

2019-01-16 Thread Peter Langfelder
The lazy way is to do tst_tab = tst_tab[c(2,1), c(2,1)] The less lazy way is something like tst_tab <- table(predicted = factor(tst_pred, levels = c("Yes", "No")), actual = factor(default_tst$default, levels = c("Yes", "No"))) Peter On Wed, Jan 16, 2019 at 4:39 PM wrote: > > R-Help > > > >

[R] Confusion Table

2019-01-16 Thread reichmanj
R-Help R-Help community is there an simple straight forward way of changing my confusion table output to list "Yes" before "No" rather than "No" before "Yes" - R default. # Making predictions on the test set. tst_pred <- ifelse(predict(model_glm, newdata = default_tst, type = "response")

[R] create groups from data with duplicates, such that each group has a duplicate represented once

2019-01-16 Thread Kevin Wamae
Hi, I have a sequencing run with ~3000 samples (attached dataset). The samples were initially tagged and amplified by PCR in duplicate. The tags used range from MID01 to MID26. MID01-MID13 were used for pair 1 while MID14-MID26 were used for pair 2. The tags are re-used to allow samples to be

Re: [R] R Companion to Linear Statistical Models by KNNL

2019-01-16 Thread Bert Gunter
See here for relevant comments: https://stats.stackexchange.com/questions/64406/r-code-for-kutner-et-als-applied-linear-statistical-models 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

[R] R Companion to Linear Statistical Models by KNNL

2019-01-16 Thread AbouEl-Makarim Aboueissa
Dear All: I am wondering if there is An R Companion to Linear Statistical Models *by *Kutner, Nachtsheim, Neter, and Li. Any help would be appreciated. with many thanks abou __ *AbouEl-Makarim Aboueissa, PhD* *Professor, Statistics and Data Science* *Graduate

Re: [ESS] R Error splits code frame

2019-01-16 Thread Vitalie Spinu via ESS-help
Could you please add an issue to github with your frame configuration? I also see some not-so nice dynamics with R buffers recently. We need to discuss this in a bit more detail on the issue tracker. Vitalie >> On Wed, Jan 16 2019 12:01, Johannes Aengenheyster via ESS-help wrote: > Dear

Re: [R] R help: fviz_nbclust’ is not available (for R version 3.5.2)

2019-01-16 Thread Jeff Newmiller
Indeed, if you repeat the code you provided before then the problem will not go away because you are not using the knowledge we have given you. You need to show us what you are trying differently based on the explanations provided on the mailing list. If you don't do this then we cannot move

Re: [R] Error with install.packages using R v 3.5.1 and 3.5.2

2019-01-16 Thread Emily Wan
Henrik and Jeff - Thank you both for your thoughts and helpful suggestions on this problem - a colleague and I did some forensics on this end and discovered the issue was related to a combination of 1) slow network connections and 2) having my personal library installed on a different server from

Re: [R] R help: fviz_nbclust’ is not available (for R version 3.5.2)

2019-01-16 Thread N Meriam
Thanks for your valuable clarifications. I tried all the steps again but the problem remains. In fact, "fviz_nbclust" is a function inside the package "factoextra". I run each step very carefully but the problem remains...It doesn't make sense because I have installed factoextra. This warning

Re: [R] Error with install.packages using R v 3.5.1 and 3.5.2

2019-01-16 Thread Henrik Bengtsson
Immediately after you get that error: Error in if (any(diff)) { : missing value where TRUE/FALSE needed what does > traceback() output? (I suspect this error occurs in tools:::checkMD5sums() used to assert that the package files are correctly downloaded). Also, going forward, let's try with

Re: [R] R help: fviz_nbclust’ is not available (for R version 3.5.2)

2019-01-16 Thread Jeff Newmiller
Concept 1: You don't install functions... you install packages that have functions in them. There is a function fviz_nbclust in factoextra. Concept 2: Once a package is installed, you do NOT have to install it again, e.g. every time you want to do that analysis. Making the installation part of

Re: [R] R help: fviz_nbclust’ is not available (for R version 3.5.2)

2019-01-16 Thread Sarah Goslee
Hi, fviz_nbclust is a function within the package factoextra. Once you have installed the package and loaded it, you do not need to explicitly install the function. You probably also don't need FunCluster - I think you may be confusing that package with the FUNcluster argument to the

Re: [R] NA rows appeared in data.frame

2019-01-16 Thread peter dalgaard
There is some logic to getting something that you don't know what is when you don't know whether you want it or not. It is certainly more informative than not getting anything, just like if you indexed with FALSE. However, a more straightforward argument is that when you use integer indexing

Re: [R] Error with install.packages using R v 3.5.1 and 3.5.2

2019-01-16 Thread Jeff Newmiller
I don't know specifically where that error comes from... but I can think of two possible directions to go: 1) If you have ever run R as Administrator then you may need to delete your personal library (‘~/My Documents/R/win-library/3.5’) and reload all packages NOT using Run As Administrator.

[ESS] R Error splits code frame

2019-01-16 Thread Johannes Aengenheyster via ESS-help
Dear all, For some months now, I basically have the exact same problem as here: https://grokbase.com/t/r/ess-help/1319gq8w1m/ess-error-message-in-r-now-splitting-frame. I have one frame with an R process, and one (or more) frames with R code. As soon as R produces an error, the code frame

[R] R help: fviz_nbclust’ is not available (for R version 3.5.2)

2019-01-16 Thread N Meriam
Hello, I'm struggling to install a function called "fviz_nbclus". My code is the following: pkgs <- c("factoextra", "NbClust") install.packages(pkgs) library(factoextra) library(NbClust) # Standardize the data load("df4.rda") library(FunCluster) install.packages("fviz_nbclust")

Re: [R] Error with install.packages using R v 3.5.1 and 3.5.2

2019-01-16 Thread Emily Wan
Hi Jeff - I do not think the issue is Bioconductor (which is why I had posted the inquiry on this forum - but as an aside, I do have the latest version of Bioconductor (3.8)). As an example, when I attempt to use the generic install.packages() function, I receive the same error message. I have

Re: [R] importing data error question

2019-01-16 Thread Fox, John
Dear jihee, I've looked into this problem further, using my Mac where it's easier to temporarily change languages and character sets than on Windows, and I discovered the following: I was able to duplicate your problem with importing Excel files when working in Korean. There's a similar

Re: [R] Operator Overloading in R

2019-01-16 Thread Eric Berger
I have experience with R6 classes but I have not used operator overloading with them. Out of curiosity I did a quick search and found this link which provides a step by step (I am not claiming it is the only way)

[R] Operator Overloading in R

2019-01-16 Thread Mahnoor Malik
I am using R6 class and I have to do operator overloading (+ ,-,*) for a custom data type . What will be the necessary steps ? I am totally confused as to what should I do in order to implement this . Thanks [[alternative HTML version deleted]]

Re: [R-es] optimizacion costos

2019-01-16 Thread Javier Marcuzzi
Estimado Jesús Para Fernández En teoría es ese material, lo vi muy rápido y en la parte genética tiene cosas que biológicamente no son así, hay un libro de Falconer, Introducción a la genética cuantitativa, que tiene escrita la parte matemática, hay un abismo entre la biología y los ingenieros

Re: [R] NA rows appeared in data.frame

2019-01-16 Thread Ernest Han
Dear Rui and Petr, Thank you for taking time and effort to help. Rui's solution is an effective workaround so that I can continue to work with the data. However, the appearance of these NA rows (with NA rownames) is clearly errorneous (possibly a bug behaviour due to R base code). What I am