[R] effects package x axis labels

2017-11-10 Thread Andras Farkas via R-help
Dear All, probably a simple enough solution but don;t seem to be able to get my head around it...example based on a publicly available data set: mydata <- read.csv("https://stats.idre.ucla.edu/stat/data/binary.csv";) mylogit <- glm(admit ~ gre + gpa + rank, data = mydata, family = "binomial") li

Re: [R] update R version in windows

2017-11-10 Thread Jeff Newmiller
That only works if you use apt-get for all package installs... I don't even know if that is possible. Use of install.packages within R works the same on all platforms... that is, upgrading R by a minor version (3.3 to 3.4) causes R to go looking for user-installed packages in a new library direc

Re: [R] R and LINGO?

2017-11-10 Thread Jeff Newmiller
That is interesting that you are having difficulty. Well, not really... please read the Posting Guide: a) No homework questions. Use the resources offered in your educational environment (school, MOOC, etc.). b) If this is not homework then frame your question with example R code... this is a

Re: [R] update R version in windows

2017-11-10 Thread Bond, Stephen
Thanks Caitlin and Richard MH. Works great. Stephen From: Caitlin [mailto:bioprogram...@gmail.com] Sent: Friday, November 10, 2017 12:33 PM To: Bond, Stephen Subject: Re: [R] update R version in windows install.packages("installr") updateR() rather... On Friday, November 10, 2017, Bond, Steph

Re: [R] R and LINGO?

2017-11-10 Thread Marc Schwartz
Hi, A few comments: 1. You appear to be replying to a post on the R-Help list from 2010: https://stat.ethz.ch/pipermail/r-help/2010-June/242714.html 2. Nothing that you have below appears to be directly related to R, but to LINGO: http://www.lindo.com/index.php/products/lingo-and-optimiz

Re: [R] update R version in windows

2017-11-10 Thread Bond, Stephen
This issue does not exist on Linux. My Ubuntu updates both R and all packages. Stephen B -Original Message- From: J C Nash [mailto:profjcn...@gmail.com] Sent: Friday, November 10, 2017 1:19 PM To: r-help; RICHARD M. HEIBERGER; Bond, Stephen Subject: Re: [R] update R version in windows

Re: [R] update R version in windows

2017-11-10 Thread Richard M. Heiberger
installr is Windows-specific. From the DESCRIPTION OS_type:windows I would guess that some of it would work on other OS, but you would have to check. If it looks useful elsewhere you should tell Tal Maintainer:Tal Galili Rich On Fri, Nov 10, 2017 at 1:18 PM, J C Nash wrote: > However, trying

Re: [R] update R version in windows

2017-11-10 Thread J C Nash
However, trying this on Linux Mint gave package ‘installr’ is not available (for R version 3.4.2) Has the package not been updated yet? JN Try the installr package. It was designed for this purpose. On Fri, Nov 10, 2017 at 11:49 AM, Bond, Stephen wrote: > Is there a utility which will al

Re: [R] R and LINGO?

2017-11-10 Thread Jan Olsen Røyland
Hei Im struggling with this problem: b) Another company wants to compose the optimal project portfolio based on the following 5- year project proposals. In the table, the cash flow for each project in each year is shown. Project 1 Project 2 Project 3 Project 4 Project 5 Project 6 1st year of the

Re: [R] update R version in windows

2017-11-10 Thread Richard M. Heiberger
Try the installr package. It was designed for this purpose. On Fri, Nov 10, 2017 at 11:49 AM, Bond, Stephen wrote: > Is there a utility which will allow me to upgrade my R version and update all > packages from the old version? > If I manually upgrade, then I have to manually re-install 50 packa

Re: [R] update R version in windows

2017-11-10 Thread Bert Gunter
?update.packages Should take care of packages. Manually reinstalling R binaries seems straightforward enough that it isn't much of a burden; but installing from source may be a different story, depending on your OS. The RStudio interface automates much of this, but it may not be enough for you or

Re: [R] update R version in windows

2017-11-10 Thread Michael Dewey
Dear Stephen Does section 2.8 in the Windows FAQ help you? Michael On 10/11/2017 16:49, Bond, Stephen wrote: Is there a utility which will allow me to upgrade my R version and update all packages from the old version? If I manually upgrade, then I have to manually re-install 50 packages. Than

[R] update R version in windows

2017-11-10 Thread Bond, Stephen
Is there a utility which will allow me to upgrade my R version and update all packages from the old version? If I manually upgrade, then I have to manually re-install 50 packages. Thank you. Stephen B [[alternative HTML version deleted]] __ R

Re: [R] Calculating frequencies of multiple values in 200 colomns

2017-11-10 Thread William Dunlap via R-help
Use table(factor(x, levels=your3values)) Bill Dunlap TIBCO Software wdunlap tibco.com On Fri, Nov 10, 2017 at 1:32 AM, Allaisone 1 wrote: > > > Thank you for your effort Bert.., > > > I knew what is the problem now, the values (1,2,3) were only an example. > The values I have are 0 , 1, 2 . Tab

Re: [R] Calculating frequencies of multiple values in 200 colomns

2017-11-10 Thread Eric Berger
How about this workaround - add 1 to the vector x <- c(1,0,2,1,0,2,2,0,2,1) tabulate(x) # [1] 3 4 tabulate(x+1) #[1] 3 3 4 On Fri, Nov 10, 2017 at 4:34 PM, Marc Schwartz wrote: > Hi, > > To clarify the default behavior that Boris is referencing below, note the > definition of the 'bin' argument

Re: [R] [R-pkgs] Release of ess 0.0.1

2017-11-10 Thread Jorge Cimentada
Hi Martin, This makes a lot of sense. Once I update the package I will add it. Could the authors of the 'ESSR' package also add a similar note to their DESCRIPTION file once the R part of ESS is released? This package 'ESSR' is named to match the Emacs Speaks Statistics (ESS) project. It is u

Re: [R] Calculating frequencies of multiple values in 200 colomns

2017-11-10 Thread Marc Schwartz
Hi, To clarify the default behavior that Boris is referencing below, note the definition of the 'bin' argument to the tabulate() function: bin: a numeric vector ***(of positive integers)***, or a factor. Long vectors are supported. I added the asterisks for emphasis. This is also noted in the

Re: [R] [R-pkgs] Release of ess 0.0.1

2017-11-10 Thread Martin Maechler
> Jorge Cimentada > on Fri, 10 Nov 2017 14:31:43 +0100 writes: > Thanks to all. Will consider this change in future releases. > --- > Jorge Cimentada > *https://cimentadaj.github.io/ * > On Fri, Nov

Re: [R] Calculating frequencies of multiple values in 200 colomns

2017-11-10 Thread Boris Steipe
|> x <- sample(0:2, 10, replace = TRUE) |> x [1] 1 0 2 1 0 2 2 0 2 1 |> tabulate(x) [1] 3 4 |> table(x) x 0 1 2 3 3 4 B. > On Nov 10, 2017, at 4:32 AM, Allaisone 1 wrote: > > > > Thank you for your effort Bert.., > > > I knew what is the problem now, the values (1,2,3) were only an e

Re: [R] [R-pkgs] Release of ess 0.0.1

2017-11-10 Thread Rainer Krug
> On 9 Nov 2017, at 15:57, Sam Steingold wrote: > >> * Jorge Cimentada [2017-11-09 00:02:53 +0100]: >> >> I'm happy to announce the release of ess 0.0.1 a package designed to >> download data from the European Social Survey > > Given the existence of ESS (Emacs Speaks Statistics - > https://

Re: [R] Calculating frequencies of multiple values in 200 colomns

2017-11-10 Thread Allaisone 1
Thank you for your effort Bert.., I knew what is the problem now, the values (1,2,3) were only an example. The values I have are 0 , 1, 2 . Tabulate () function seem to ignore calculating the frequency of 0 values and this is my exact problem as the frequency of 0 values should also be calcu

Re: [R] [R-pkgs] Release of ess 0.0.1

2017-11-10 Thread Jorge Cimentada
Thanks to all. Will consider this change in future releases. --- Jorge Cimentada *https://cimentadaj.github.io/ * On Fri, Nov 10, 2017 at 12:41 PM, Rainer Krug wrote: > > > On 9 Nov 2017, at 15:57, Sam Steingold wrote: > > * Jor

Re: [R] How to create separate legend for each plot in the function of facet_wrap in ggplot2?

2017-11-10 Thread Dominik Schneider
That's not the point of facet_wrap so check out the cowplot package for combining multiple ggplot objects (with legends) into one figure. On Fri, Nov 10, 2017 at 10:21 AM, Marna Wagley wrote: > Hi R users, > I need to create more than 20 figures (one for each group) in one page. I > have a comm

[R] How to create separate legend for each plot in the function of facet_wrap in ggplot2?

2017-11-10 Thread Marna Wagley
Hi R users, I need to create more than 20 figures (one for each group) in one page. I have a common legend for 20 figures using the facet_wrap. However the range of the values among the groups are very wide. For example one group has the value of 0 to 3, but the values of some of the groups has r