similar to: Beginner’s Question

Displaying 20 results from an estimated 10000 matches similar to: "Beginner’s Question"

2017 Jun 12
1
Beginner’s Question
Please excuse the naive question but my first hour with RStudio, resulted in this? > data() > data(?women?) Error: unexpected input in "data(?? So,that did not work but >data(women) without the quotes did. Would someone be so kind as to explain the function of quotes in RStudio? Thanks, Neil ********************************* Whenever the people are well informed, they can be
2011 Jun 21
0
How does rpart computes "improve" for split="information"?? (which seems to be different then the "gini" case)
Hello dear R-help members, I would appreciate any help in understanding how the rpart function computes the "improve" (which is given in fit$split) when using the split='information' parameter. Thanks to Professor Atkinson help, I was able to find how this is done in the case that split='gini'. By following the explanation here:
2004 Jun 04
1
rpart
Hello everyone, I'm a newbie to R and to CART so I hope my questions don't seem too stupid. 1.) My first question concerns the rpart() method. Which method does rpart use in order to get the best split - entropy impurity, Bayes error (min. error) or Gini index? Is there a way to make it use the entropy impurity? The second and third question concern the output of the printcp() function.
2017 Nov 14
0
Possible bug(s) causing ggplot2 and XLConnect to crash recent builds of r-devel
The following R code causes R to crashes under recent r-devel builds of R: library(ggplot2) RCBD.lay <- data.frame(Blocks = factor(rep(1:5, each = 6)), Units = factor(rep(1:6, times = 5)), Treatments = factor(rep(1:6, times = 5))) ggplot(data = RCBD.lay, aes(x = Units, y = Blocks, label = Treatments)) + geom_text(aes(colour = Treatments)) I
2007 Aug 16
1
Regression tree: labels in the terminal nodes
Dear everybody, I'm a new user of R 2.4.1 and I'm searching for information on improving the output of regression tree graphs. In the terminal nodes I am up to now able to indicate the number of values (n) and the mean of all values in this terminal node by the command > text(tree, use.n=T, xpd=T) Yet I would like to indicate automatically in the output graph of the tree some
2011 Jun 13
1
In rpart, how is "improve" calculated? (in the "class" case)
Hi all, I apologies in advance if I am missing something very simple here, but since I failed at resolving this myself, I'm sending this question to the list. I would appreciate any help in understanding how the rpart function is (exactly) computing the "improve" (which is given in fit$split), and how it differs when using the split='information' vs split='gini'
2020 Feb 26
1
library ( vctrs ) + library ( ggplot2 )
Hi i need use these 2 librarys? ( vctrs ) and ( ggplot2 ) , and the 2 librarys are installed in my Rstudio? RStudio Version 1.2.5033 ? 2009-2019 RStudio, Inc. "Orange Blossom" (330255dd, 2019-12-04) but i got all times thesse messages....please help-me...thanks lot of > library ( vctrs ) Error: package or namespace load failed for ?vctrs? in loadNamespace(i, c(lib.loc, .libPaths()),
2009 May 01
1
A beginner's question about ggplot
Dear R-users, I would have another question about the ggplot() function in the ggplot2 package. All the examples I've read so far in the documentation make use of a single neatly formatted data.frame. However, sometimes, one may be interested in plotting on the same grid information or objects derived from two totally different datasets and customize both displays. I still cannot tell how
2017 Apr 09
2
Splitting C/C++ code into pure and side-effecting code
Hi Suman, I think you can ascertain pureness automatically leveraging the compiler instead of manually tagging attribute to each method and call-site. It would seem like impurity should be a transitive attribute. So this would conflict with below. __attribute__((annotate("pure"))) int add(uint32_t a, uint32_t b) { // impure by calling printf... ... printf("%d + %d =
2024 Mar 21
1
Building Packages.
With all this discussion, I shudder to ask this. I may have missed the answers but the discussion seems to have been about identifying and solving the problem rapidly rather than what maybe is best going forward if all parties agree. What was the motivation for what RSTUDIO did for their version and the decision to replace what came with utils unless someone very explicitly over-rode them by
2012 Mar 14
0
using predict() with poly(x, raw=TRUE)
Dear r-devel list members, I've recently encountered the following problem using predict() with a model that has raw-polynomial terms. (Actually, I encountered the problem using model.frame(), but the source of the error is the same.) The problem is technical and concerns the design of poly(), which is why I'm sending this message to r-devel rather than r-help. To illustrate:
2024 Mar 21
1
Building Packages.
I posted a description of their changes this morning. Duncan Murdoch On 21/03/2024 11:37 a.m., avi.e.gross at gmail.com wrote: > With all this discussion, I shudder to ask this. I may have missed the > answers but the discussion seems to have been about identifying and solving > the problem rapidly rather than what maybe is best going forward if all > parties agree. > > What
2012 Nov 01
0
oblique.tree : the predict function asserts the dependent variable to be included in "newdata"
Dear R community, I have recently discovered the package oblique.tree and I must admit that it was a nice surprise for me, since I have actually made my own version of a kind of a classifier which uses the idea of oblique splits (splits by means of hyperplanes). So I am now interested in comparing these two classifiers. But what I do not seem to understand is why the function
2012 Nov 01
0
Upcoming R training: SF Dec 3-4, DC Dec 10-11
Hi all, I'd like to let you know about four R training courses that RStudio will be offering in December: * Effective data visualization (http://bit.ly/TY2ONI) Dec 3. San Francisco, CA * Reports and reproducible research (http://bit.ly/RsZmYr) Dec 4. San Francisco, CA * Advanced R programming (http://bit.ly/RvZDsd) Dec 10. Washington, DC * Package development (http://bit.ly/UhTIWz)
2014 Jan 03
2
Question about --files-from= and folder structure
I'm writing a script to sync some mp3 files. Due to a limitation in the number of destination files that can be read from my thumb drive, I'm not looking to preserve the original file structure (actually, I'm looking to sync *only the files* to the new destination directory). The source files are all subfolders under /backup/Music: ./Adrian Legg/Mrs. Crowe's Blue Waltz/Paddy
2010 Feb 09
1
lm combined with splines
Hello, In the following I tried 3 versions of an example in R help. Only the two first predict command work. After : library(splines) require(stats) 1) fm1 <- lm(weight ~ bs(height, df = 5), data = women) ht1 <- seq(57, 73, len = 200) ph1 <- predict(fm1, data.frame(height=ht1)) # OK plot(women, xlab = "Height (in)", ylab = "Weight (lb)") lines(ht1, ph1) 2)
2015 Sep 05
0
Support for high DPI 4K screens
On 09/05/2015 06:46 AM, Tom Wenseleers wrote: > I was recently testing R and RStudio on a high dpi 4K monitor under > Windows and noticed that the plot window cannot be scaled or zoomed > without affecting the relative sizing of all plot elements (line > widths, font sizes, legend spacing etc). RStudio seems to try to > overcome this by enabling dpi scaling for the plot window on
2010 Nov 01
1
sqldf error only on Unix not Windows
Hello Group, I am having trouble with the sqldf package on unix. The same code works fine on windows. Silly Example script: # Load the package library(sqldf) # Use the titanic data set data(women) colnames(women) head(women) sqldf('select height, count(*) from women where height is not null group by weight') Unix Output and error: bash-3.00$ R --vanilla <testR.R
2006 Sep 05
1
Sweave and the "[" function
I am wanting to use the "[" operator in an S-chunk, e.g. <<>>= str(women) women$height women[,1] "["(women,1) @ to show the equivalence of three methods of extracting an element from a data.frame. However Sweave returns the last of these as women[1] in the S input chunk How can I force it not to do this and return "["(women,1)
2016 Nov 16
2
Versión de Rstudio descargable para installar ggplt2
Yo he instalado en windows hace 3 días (por diversas razones) la última versión de R y RStudio y ahora con el tema ggplot2 no he tenido ningún problema Un saludo ________________________________ De: R-help-es <r-help-es-bounces en r-project.org> en nombre de miguel.angel.rodriguez.muinos en sergas.es <miguel.angel.rodriguez.muinos en sergas.es> Enviado: miércoles, 16 de noviembre