Re: [R] Tidyverse data frame conversion from monthly to annual
Hi aggregate is another option. aggregate(df[, 2:4], list(df$Year), sum) Cheers Petr > -Original Message- > From: R-help On Behalf Of > p...@philipsmith.ca > Sent: Monday, March 4, 2019 4:15 AM > To: r-help@r-project.org > Subject: [R] Tidyverse data frame conversion from monthly to annual > > I have a data frame in which the first column is a sequence of monthly dates > and the other columns are variables. There are a great many variables. I want > to create another data frame similar to the first one, but with annual values > instead of monthly, created by summing the months within each year. > > I am able to do this as shown in this reprex: > > library(tidyverse) > REF_DATE <- seq(as.Date("2000/1/1"),by="month",length.out=36) > set.seed(57) > df <- data.frame(REF_DATE, > x=sample(1:100,size=36), > y=sample(1:100,size=36), > z=sample(1:100,size=36), > Year=year(REF_DATE)) > df1 <- df %>% >group_by(Year) %>% >summarise(x_a=sum(x),y_a=sum(y),z_a=sum(z)) %>% >ungroup() > > However, while this works for the simple case with only three variables, I > actually have many more than three, so I am looking for a more general > approach. I have no clue as to how to proceed. Any advice will be much > appreciated. > > Philip > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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, minimal, self-contained, reproducible code. Osobní údaje: Informace o zpracování a ochraně osobních údajů obchodních partnerů PRECHEZA a.s. jsou zveřejněny na: https://www.precheza.cz/zasady-ochrany-osobnich-udaju/ | Information about processing and protection of business partner’s personal data are available on website: https://www.precheza.cz/en/personal-data-protection-principles/ Důvěrnost: Tento e-mail a jakékoliv k němu připojené dokumenty jsou důvěrné a podléhají tomuto právně závaznému prohláąení o vyloučení odpovědnosti: https://www.precheza.cz/01-dovetek/ | This email and any documents attached to it may be confidential and are subject to the legally binding disclaimer: https://www.precheza.cz/en/01-disclaimer/ __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.
[R] Multilevel models
Hello, I have data with workers within departments. I am interested in testing the effects of peers' satisfaction on employees' productivity. To assess peer satisfaction, I calculate, for each employee, the average satisfaction of the employees' peers within the department. In other words, I calculate the average satisfaction in the department, while excluding the focal employee. I'm not sure about the level of this variable, because on the one hand, it is unique for each employee, but on the other hand, the values of this variable across employees are not independent of each other. How would I account for this issue in R? Thank you, S Weaver [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.
Re: [R] R installation Ubuntu 18.04 missing dependency libreadline6
Thanks Rui, Depending on how I try to install I get a different error. I am starting to think that somehow the Ubuntu installation may be faulty. I used a ISO that I had burned about a year ago. I had no problem then with a shared installation but who knows. sudo apt-get update sudo apt-get install r-base results in john@jonh-T510:~$ sudo apt-get install r-base Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help resolve the situation: The following packages have unmet dependencies: r-base : Depends: r-base-core (>= 3.5.2-1xenial) but it is not going to be installed Depends: r-recommended (= 3.5.2-1xenial) but it is not going to be installed Recommends: r-base-html but it is not going to be installed E: Unable to correct problems, you have held broken packages. -- I downloaded the R-3.5.2.tar.gz file and tried compiling. Results -- checking whether PCRE support suffices... yes checking for pcre2-config... no checking for curl-config... no checking curl/curl.h usability... no checking curl/curl.h presence... no checking for curl/curl.h... no configure: error: libcurl >= 7.22.0 library and headers are required with support for https --- Symantic seems to feel that libcurs3 7.58.0-2ubuntu2 and libcurl3-gnutls 7.58.0-2ubuntu3.6 are installed. Maybe I need to install a few more flavours? On Sun, 3 Mar 2019 at 07:33, Rui Barradas wrote: > > Hello, > > I never installed R on Ubuntu like you did it. > I follow this: > > sudo apt-get update > sudo apt-get install r-base > sudo apt-get install r-base-dev > > > And it works at the first try. See [1] > The problems I [always] have are with missing Ubuntu libs needed by > contributed packages, not with base R. > > [1] https://cran.r-project.org/bin/linux/ubuntu/README > > Hope this helps, > > Rui Barradas > > > Às 11:20 de 03/03/2019, John Kane via R-help escreveu: > > > > NOTE. This is a re-post of a message of Saturday 2018-03-03 sent with an > > incorrect header. > > > > To upgrade to R.3.5.2 from 3.4.4 I have been following the instructions at > > https://www.r-bloggers.com/installation-of-r-3-5-on-ubuntu-18-04-lts-and-tips-for-spatial-packages/ > > . > > > > I seem to have the repository properly connected and verified. > > > > I am getting an error: > > --- > > john@jonh-T510:~$ sudo apt install r-base r-base-core r-recommended > > Reading package lists... Done Building dependency tree Reading state > > information... Done Some packages could not be installed. This may mean > > that you have requested an impossible situation or if you are using the > > unstable distribution that some required packages have not yet been created > > or been moved out of Incoming. The following information may help resolve > > the situation: > > > > The following packages have unmet dependencies: r-base-core : Depends: > > libreadline6 (>= 6.0) but it is not installable Recommends: r-base-dev but > > it is not going to be installed E: Unable to correct problems, you have > > held broken packages. > > - > > Earlier I was getting another error r-base-core : Depends: libpng12-0 but > > it is not installable but that was cured by installing libpng12-0 via the > > Ubuntu Software app. > > > > I cannot find what appears to be an installable version of libreadlines6. > > > > Ubuntu reports that the up-to-date version of libreadlines7. > > > > Should I consider this an R issue or an Ubuntu issue? > > > > In any case, has anyone encountered the problem and beaten it? > > > > Thanks > > > > __ > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > > 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, minimal, self-contained, reproducible code. > > > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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, minimal, self-contained, reproducible code. -- John Kane Kingston ON Canada
[R] Multilevel moderated mediation
Hello, I am trying to run a *multilevel moderated mediation model in R*, with data nested in three levels (children, within classes, within schools). All of my variables are at the individual level, but I still need to account for the nested nature of the data. In separate analyses of mediation (using the mediation package) and of moderation (using the lme4 package) I find evidence for indirect effects of the predictor on the outcome, and evidence that my moderator moderates the effects of the predictor on the mediator. But I’d also like to test if the moderator moderates the indirect effect of the predictor on the outcome. Is there a way to do this in R? Thank you, Shaul Oreg [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.
Re: [R] Tidyverse data frame conversion from monthly to annual
summarise_all() does the trick. Thanks very much for the help. Philip On 2019-03-03 22:14, p...@philipsmith.ca wrote: I have a data frame in which the first column is a sequence of monthly dates and the other columns are variables. There are a great many variables. I want to create another data frame similar to the first one, but with annual values instead of monthly, created by summing the months within each year. I am able to do this as shown in this reprex: library(tidyverse) REF_DATE <- seq(as.Date("2000/1/1"),by="month",length.out=36) set.seed(57) df <- data.frame(REF_DATE, x=sample(1:100,size=36), y=sample(1:100,size=36), z=sample(1:100,size=36), Year=year(REF_DATE)) df1 <- df %>% group_by(Year) %>% summarise(x_a=sum(x),y_a=sum(y),z_a=sum(z)) %>% ungroup() However, while this works for the simple case with only three variables, I actually have many more than three, so I am looking for a more general approach. I have no clue as to how to proceed. Any advice will be much appreciated. Philip __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.
Re: [R] Tidyverse data frame conversion from monthly to annual
Try using time series objects in xts. Should be easy. At worst once the xts object is automatically arranged by date you have to note the row numbers for each year period and I think data would be ok to handle unless it is more than 30-40 years when you would look up other xts options. Xts objects would automatically take the date column and use them as row ids so there is obviously another simple loop you can generate for summing up . There would also be easy functions once you start with xts. Best Regards Amit +91 7899381263 Please request Skype as available 5th Year FPM (Ph.D.) in Finance and Accounting Area Indian Institute of Management, Lucknow, (U.P.) 226013 India http://bit.ly/2A2PhD AEA Job profile : http://bit.ly/AEAamit FMA 2 page profile : http://bit.ly/FMApdf2p SSRN top10% downloaded since July 2017: http://ssrn.com/author=2665511 From: p...@philipsmith.ca Sent: 04 March 2019 08:45 To: r-help@r-project.org Subject: [R] Tidyverse data frame conversion from monthly to annual I have a data frame in which the first column is a sequence of monthly dates and the other columns are variables. There are a great many variables. I want to create another data frame similar to the first one, but with annual values instead of monthly, created by summing the months within each year. I am able to do this as shown in this reprex: library(tidyverse) REF_DATE <- seq(as.Date("2000/1/1"),by="month",length.out=36) set.seed(57) df <- data.frame(REF_DATE, x=sample(1:100,size=36), y=sample(1:100,size=36), z=sample(1:100,size=36), Year=year(REF_DATE)) df1 <- df %>% group_by(Year) %>% summarise(x_a=sum(x),y_a=sum(y),z_a=sum(z)) %>% ungroup() However, while this works for the simple case with only three variables, I actually have many more than three, so I am looking for a more general approach. I have no clue as to how to proceed. Any advice will be much appreciated. Philip __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.
Re: [R] Tidyverse data frame conversion from monthly to annual
?summarise_all See the examples. On March 3, 2019 7:14:55 PM PST, p...@philipsmith.ca wrote: >I have a data frame in which the first column is a sequence of monthly >dates and the other columns are variables. There are a great many >variables. I want to create another data frame similar to the first >one, >but with annual values instead of monthly, created by summing the >months >within each year. > >I am able to do this as shown in this reprex: > >library(tidyverse) >REF_DATE <- seq(as.Date("2000/1/1"),by="month",length.out=36) >set.seed(57) >df <- data.frame(REF_DATE, > x=sample(1:100,size=36), > y=sample(1:100,size=36), > z=sample(1:100,size=36), > Year=year(REF_DATE)) >df1 <- df %>% > group_by(Year) %>% > summarise(x_a=sum(x),y_a=sum(y),z_a=sum(z)) %>% > ungroup() > >However, while this works for the simple case with only three >variables, >I actually have many more than three, so I am looking for a more >general >approach. I have no clue as to how to proceed. Any advice will be much >appreciated. > >Philip > >__ >R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >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, minimal, self-contained, reproducible code. -- Sent from my phone. Please excuse my brevity. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.
[R] Tidyverse data frame conversion from monthly to annual
I have a data frame in which the first column is a sequence of monthly dates and the other columns are variables. There are a great many variables. I want to create another data frame similar to the first one, but with annual values instead of monthly, created by summing the months within each year. I am able to do this as shown in this reprex: library(tidyverse) REF_DATE <- seq(as.Date("2000/1/1"),by="month",length.out=36) set.seed(57) df <- data.frame(REF_DATE, x=sample(1:100,size=36), y=sample(1:100,size=36), z=sample(1:100,size=36), Year=year(REF_DATE)) df1 <- df %>% group_by(Year) %>% summarise(x_a=sum(x),y_a=sum(y),z_a=sum(z)) %>% ungroup() However, while this works for the simple case with only three variables, I actually have many more than three, so I am looking for a more general approach. I have no clue as to how to proceed. Any advice will be much appreciated. Philip __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.
Re: [R-es] Consulta eliminar columna autómatica
Quizás write.table(.., row.names = FALSE) ? Saludos, Jorge.- El El dom, 3 de mar. de 2019 a las 11:18 a. m., Andrés Hirigoyen < andreshirigo...@gmail.com> escribió: > Buenas tardes, estoy intentando guardar una salida como archivo .xlsx, pero > necesito que la primer columna generada (que indica el número de registros) > en todo data.frame no se guarde. En el ejemplo es tengo 8 registros > >y grupo edad > 1 28 1 30 > 2 24 1 45 > 3 30 1 44 > 4 24 1 41 > 5 22 2 42 > 6 31 2 43 > 7 24 2 42 > 8 28 2 44 > > ¿Ideas? > Muchas Gracias > > -- > > [[alternative HTML version deleted]] > > ___ > R-help-es mailing list > R-help-es@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-help-es > -- Sent from my phone. Please excuse my brevity and misspelling. [[alternative HTML version deleted]] ___ R-help-es mailing list R-help-es@r-project.org https://stat.ethz.ch/mailman/listinfo/r-help-es
Re: [R] R installation Ubuntu 18.04 missing dependency libreadline6
Cancel my mailing that source.list. to r-sig-debian. I took one last look at the sources.list file and realised that I had the same repository repeated. I had read it as being commented out but it was not. Delete one line and I was fine. Nothing like blindness! I must have scanned that thing at least 3 or 4 times and totally missed it. Your offer was gratefully received. I had not realised how often I use R in a day even just as a quick calculator. Thanks to everyone for the help. I was just about ready to reinstall Ubuntu and not looking forward to 2 or 3 days of installations and customising. On Sunday, March 3, 2019, 2:08:04 p.m. EST, John Kane wrote: Thanks Ista, Interestingly enough, I have only one repository as far as I can see. I was a bit amazed. I think I have a faulty Ubuntu installation and will have to reinstall. What fun On Sunday, March 3, 2019, 1:16:52 p.m. EST, Ista Zahn wrote: Hi John, The official instructions at https://cran.r-project.org/bin/linux/ubuntu/ work on a fresh ubuntu:bionic from dockerhub. This suggests that the issue is due to the configuration of your local system rather than with any problem with either R or ubuntu. My guess is that you've been reading too many blog posts and adding too many ppa's to your system, which can lead to package conflicts. Unfortunately in that case it's hard for people to help you remotely, since we don't know what you've done to your system. Best, Ista On Sun, Mar 3, 2019 at 6:20 AM John Kane via R-help wrote: > > > NOTE. This is a re-post of a message of Saturday 2018-03-03 sent with an >incorrect header. > > To upgrade to R.3.5.2 from 3.4.4 I have been following the instructions at > https://www.r-bloggers.com/installation-of-r-3-5-on-ubuntu-18-04-lts-and-tips-for-spatial-packages/ > . > > I seem to have the repository properly connected and verified. > > I am getting an error: > --- > john@jonh-T510:~$ sudo apt install r-base r-base-core r-recommended Reading > package lists... Done Building dependency tree Reading state information... > Done Some packages could not be installed. This may mean that you have > requested an impossible situation or if you are using the unstable > distribution that some required packages have not yet been created or been > moved out of Incoming. The following information may help resolve the > situation: > > The following packages have unmet dependencies: r-base-core : Depends: > libreadline6 (>= 6.0) but it is not installable Recommends: r-base-dev but it > is not going to be installed E: Unable to correct problems, you have held > broken packages. > - > Earlier I was getting another error r-base-core : Depends: libpng12-0 but it > is not installable but that was cured by installing libpng12-0 via the Ubuntu > Software app. > > I cannot find what appears to be an installable version of libreadlines6. > > Ubuntu reports that the up-to-date version of libreadlines7. > > Should I consider this an R issue or an Ubuntu issue? > > In any case, has anyone encountered the problem and beaten it? > > Thanks > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.
Re: [R] R installation Ubuntu 18.04 missing dependency libreadline6
Will do. Thanks. On Sunday, March 3, 2019, 3:59:14 p.m. EST, Ista Zahn wrote: Hi John, This is not the place, but if you post your /etc/apt/sources.list to r-sig-debian I might be able to help you sort it out. Best, Ista On Sun, Mar 3, 2019 at 2:08 PM John Kane wrote: > > Thanks Ista, > > Interestingly enough, I have only one repository as far as I can see. I was a > bit amazed. > > I think I have a faulty Ubuntu installation and will have to reinstall. What > fun > > > > On Sunday, March 3, 2019, 1:16:52 p.m. EST, Ista Zahn > wrote: > > > Hi John, > > The official instructions at > https://cran.r-project.org/bin/linux/ubuntu/ work on a fresh > ubuntu:bionic from dockerhub. This suggests that the issue is due to > the configuration of your local system rather than with any problem > with either R or ubuntu. My guess is that you've been reading too many > blog posts and adding too many ppa's to your system, which can lead to > package conflicts. Unfortunately in that case it's hard for people to > help you remotely, since we don't know what you've done to your > system. > > Best, > Ista > > On Sun, Mar 3, 2019 at 6:20 AM John Kane via R-help > wrote: > > > > > > NOTE. This is a re-post of a message of Saturday 2018-03-03 sent with an > >incorrect header. > > > > To upgrade to R.3.5.2 from 3.4.4 I have been following the instructions at > > https://www.r-bloggers.com/installation-of-r-3-5-on-ubuntu-18-04-lts-and-tips-for-spatial-packages/ > > . > > > > I seem to have the repository properly connected and verified. > > > > I am getting an error: > > --- > > john@jonh-T510:~$ sudo apt install r-base r-base-core r-recommended > > Reading package lists... Done Building dependency tree Reading state > > information... Done Some packages could not be installed. This may mean > > that you have requested an impossible situation or if you are using the > > unstable distribution that some required packages have not yet been created > > or been moved out of Incoming. The following information may help resolve > > the situation: > > > > The following packages have unmet dependencies: r-base-core : Depends: > > libreadline6 (>= 6.0) but it is not installable Recommends: r-base-dev but > > it is not going to be installed E: Unable to correct problems, you have > > held broken packages. > > - > > Earlier I was getting another error r-base-core : Depends: libpng12-0 but > > it is not installable but that was cured by installing libpng12-0 via the > > Ubuntu Software app. > > > > I cannot find what appears to be an installable version of libreadlines6. > > > > Ubuntu reports that the up-to-date version of libreadlines7. > > > > Should I consider this an R issue or an Ubuntu issue? > > > > In any case, has anyone encountered the problem and beaten it? > > > > Thanks > > > > > __ > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > > 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, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.
Re: [R] R installation Ubuntu 18.04 missing dependency libreadline6
Hi John, This is not the place, but if you post your /etc/apt/sources.list to r-sig-debian I might be able to help you sort it out. Best, Ista On Sun, Mar 3, 2019 at 2:08 PM John Kane wrote: > > Thanks Ista, > > Interestingly enough, I have only one repository as far as I can see. I was a > bit amazed. > > I think I have a faulty Ubuntu installation and will have to reinstall. What > fun > > > > On Sunday, March 3, 2019, 1:16:52 p.m. EST, Ista Zahn > wrote: > > > Hi John, > > The official instructions at > https://cran.r-project.org/bin/linux/ubuntu/ work on a fresh > ubuntu:bionic from dockerhub. This suggests that the issue is due to > the configuration of your local system rather than with any problem > with either R or ubuntu. My guess is that you've been reading too many > blog posts and adding too many ppa's to your system, which can lead to > package conflicts. Unfortunately in that case it's hard for people to > help you remotely, since we don't know what you've done to your > system. > > Best, > Ista > > On Sun, Mar 3, 2019 at 6:20 AM John Kane via R-help > wrote: > > > > > > NOTE. This is a re-post of a message of Saturday 2018-03-03 sent with an > > incorrect header. > > > > To upgrade to R.3.5.2 from 3.4.4 I have been following the instructions at > > https://www.r-bloggers.com/installation-of-r-3-5-on-ubuntu-18-04-lts-and-tips-for-spatial-packages/ > > . > > > > I seem to have the repository properly connected and verified. > > > > I am getting an error: > > --- > > john@jonh-T510:~$ sudo apt install r-base r-base-core r-recommended > > Reading package lists... Done Building dependency tree Reading state > > information... Done Some packages could not be installed. This may mean > > that you have requested an impossible situation or if you are using the > > unstable distribution that some required packages have not yet been created > > or been moved out of Incoming. The following information may help resolve > > the situation: > > > > The following packages have unmet dependencies: r-base-core : Depends: > > libreadline6 (>= 6.0) but it is not installable Recommends: r-base-dev but > > it is not going to be installed E: Unable to correct problems, you have > > held broken packages. > > - > > Earlier I was getting another error r-base-core : Depends: libpng12-0 but > > it is not installable but that was cured by installing libpng12-0 via the > > Ubuntu Software app. > > > > I cannot find what appears to be an installable version of libreadlines6. > > > > Ubuntu reports that the up-to-date version of libreadlines7. > > > > Should I consider this an R issue or an Ubuntu issue? > > > > In any case, has anyone encountered the problem and beaten it? > > > > Thanks > > > > > __ > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > > 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, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.
Re: [R] R installation Ubuntu 18.04 missing dependency libreadline6
Thanks Ista, Interestingly enough, I have only one repository as far as I can see. I was a bit amazed. I think I have a faulty Ubuntu installation and will have to reinstall. What fun On Sunday, March 3, 2019, 1:16:52 p.m. EST, Ista Zahn wrote: Hi John, The official instructions at https://cran.r-project.org/bin/linux/ubuntu/ work on a fresh ubuntu:bionic from dockerhub. This suggests that the issue is due to the configuration of your local system rather than with any problem with either R or ubuntu. My guess is that you've been reading too many blog posts and adding too many ppa's to your system, which can lead to package conflicts. Unfortunately in that case it's hard for people to help you remotely, since we don't know what you've done to your system. Best, Ista On Sun, Mar 3, 2019 at 6:20 AM John Kane via R-help wrote: > > > NOTE. This is a re-post of a message of Saturday 2018-03-03 sent with an >incorrect header. > > To upgrade to R.3.5.2 from 3.4.4 I have been following the instructions at > https://www.r-bloggers.com/installation-of-r-3-5-on-ubuntu-18-04-lts-and-tips-for-spatial-packages/ > . > > I seem to have the repository properly connected and verified. > > I am getting an error: > --- > john@jonh-T510:~$ sudo apt install r-base r-base-core r-recommended Reading > package lists... Done Building dependency tree Reading state information... > Done Some packages could not be installed. This may mean that you have > requested an impossible situation or if you are using the unstable > distribution that some required packages have not yet been created or been > moved out of Incoming. The following information may help resolve the > situation: > > The following packages have unmet dependencies: r-base-core : Depends: > libreadline6 (>= 6.0) but it is not installable Recommends: r-base-dev but it > is not going to be installed E: Unable to correct problems, you have held > broken packages. > - > Earlier I was getting another error r-base-core : Depends: libpng12-0 but it > is not installable but that was cured by installing libpng12-0 via the Ubuntu > Software app. > > I cannot find what appears to be an installable version of libreadlines6. > > Ubuntu reports that the up-to-date version of libreadlines7. > > Should I consider this an R issue or an Ubuntu issue? > > In any case, has anyone encountered the problem and beaten it? > > Thanks > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.
Re: [R] R installation Ubuntu 18.04 missing dependency libreadline6
Hi John, The official instructions at https://cran.r-project.org/bin/linux/ubuntu/ work on a fresh ubuntu:bionic from dockerhub. This suggests that the issue is due to the configuration of your local system rather than with any problem with either R or ubuntu. My guess is that you've been reading too many blog posts and adding too many ppa's to your system, which can lead to package conflicts. Unfortunately in that case it's hard for people to help you remotely, since we don't know what you've done to your system. Best, Ista On Sun, Mar 3, 2019 at 6:20 AM John Kane via R-help wrote: > > > NOTE. This is a re-post of a message of Saturday 2018-03-03 sent with an > incorrect header. > > To upgrade to R.3.5.2 from 3.4.4 I have been following the instructions at > https://www.r-bloggers.com/installation-of-r-3-5-on-ubuntu-18-04-lts-and-tips-for-spatial-packages/ > . > > I seem to have the repository properly connected and verified. > > I am getting an error: > --- > john@jonh-T510:~$ sudo apt install r-base r-base-core r-recommended Reading > package lists... Done Building dependency tree Reading state information... > Done Some packages could not be installed. This may mean that you have > requested an impossible situation or if you are using the unstable > distribution that some required packages have not yet been created or been > moved out of Incoming. The following information may help resolve the > situation: > > The following packages have unmet dependencies: r-base-core : Depends: > libreadline6 (>= 6.0) but it is not installable Recommends: r-base-dev but it > is not going to be installed E: Unable to correct problems, you have held > broken packages. > - > Earlier I was getting another error r-base-core : Depends: libpng12-0 but it > is not installable but that was cured by installing libpng12-0 via the Ubuntu > Software app. > > I cannot find what appears to be an installable version of libreadlines6. > > Ubuntu reports that the up-to-date version of libreadlines7. > > Should I consider this an R issue or an Ubuntu issue? > > In any case, has anyone encountered the problem and beaten it? > > Thanks > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.
[R-es] Consulta eliminar columna autómatica
Buenas tardes, estoy intentando guardar una salida como archivo .xlsx, pero necesito que la primer columna generada (que indica el número de registros) en todo data.frame no se guarde. En el ejemplo es tengo 8 registros y grupo edad 1 28 1 30 2 24 1 45 3 30 1 44 4 24 1 41 5 22 2 42 6 31 2 43 7 24 2 42 8 28 2 44 ¿Ideas? Muchas Gracias -- [[alternative HTML version deleted]] ___ R-help-es mailing list R-help-es@r-project.org https://stat.ethz.ch/mailman/listinfo/r-help-es
Re: [R] R installation Ubuntu 18.04 missing dependency libreadline6
Hello, I never installed R on Ubuntu like you did it. I follow this: sudo apt-get update sudo apt-get install r-base sudo apt-get install r-base-dev And it works at the first try. See [1] The problems I [always] have are with missing Ubuntu libs needed by contributed packages, not with base R. [1] https://cran.r-project.org/bin/linux/ubuntu/README Hope this helps, Rui Barradas Às 11:20 de 03/03/2019, John Kane via R-help escreveu: NOTE. This is a re-post of a message of Saturday 2018-03-03 sent with an incorrect header. To upgrade to R.3.5.2 from 3.4.4 I have been following the instructions at https://www.r-bloggers.com/installation-of-r-3-5-on-ubuntu-18-04-lts-and-tips-for-spatial-packages/ . I seem to have the repository properly connected and verified. I am getting an error: --- john@jonh-T510:~$ sudo apt install r-base r-base-core r-recommended Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help resolve the situation: The following packages have unmet dependencies: r-base-core : Depends: libreadline6 (>= 6.0) but it is not installable Recommends: r-base-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages. - Earlier I was getting another error r-base-core : Depends: libpng12-0 but it is not installable but that was cured by installing libpng12-0 via the Ubuntu Software app. I cannot find what appears to be an installable version of libreadlines6. Ubuntu reports that the up-to-date version of libreadlines7. Should I consider this an R issue or an Ubuntu issue? In any case, has anyone encountered the problem and beaten it? Thanks __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.
[R] R installation Ubuntu 18.04 missing dependency libreadline6
NOTE. This is a re-post of a message of Saturday 2018-03-03 sent with an incorrect header. To upgrade to R.3.5.2 from 3.4.4 I have been following the instructions at https://www.r-bloggers.com/installation-of-r-3-5-on-ubuntu-18-04-lts-and-tips-for-spatial-packages/ . I seem to have the repository properly connected and verified. I am getting an error: --- john@jonh-T510:~$ sudo apt install r-base r-base-core r-recommended Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help resolve the situation: The following packages have unmet dependencies: r-base-core : Depends: libreadline6 (>= 6.0) but it is not installable Recommends: r-base-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages. - Earlier I was getting another error r-base-core : Depends: libpng12-0 but it is not installable but that was cured by installing libpng12-0 via the Ubuntu Software app. I cannot find what appears to be an installable version of libreadlines6. Ubuntu reports that the up-to-date version of libreadlines7. Should I consider this an R issue or an Ubuntu issue? In any case, has anyone encountered the problem and beaten it? Thanks __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.
Re: [R] Remove Even Number from A Vector
On 03/03/2019 3:44 a.m., Ivan Krylov wrote: Hi Darren, On Sat, 2 Mar 2019 22:27:55 + Darren Danyluk wrote: It sounds like she is working with the very basics of this software, and her task is to write the code which would result in the extraction of "odd" data from a dataset of restaurant sales. Not a native English speaker here; what exactly do you mean by "odd" in this case? "Odd" numbers have a remainder of 1 when divided by 2; "even" numbers are multiples of 2. Duncan Murdoch If I ignore the "subject" field, it looks like your daughter should be looking for outlier detection methods. For example, https://rseek.org/ offers some good results for "outlier detection". __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.
Re: [R] R installation Ubuntu 10.04 missing dependency
Hi John, Is the subject line of your question correct? Ubuntu 10.04? If that is not a typo, that could be contributing to your problem. I believe that the current stable release of Ubuntu is 18.04. According to the following link ubuntu 10.04 was released almost 10 years ago and was "retired" about 5 years ago. http://fridge.ubuntu.com/2015/03/18/ubuntu-10-04-lucid-lynx-reaches-end-of-life-on-april-30-2015/ HTH, Eric On Sun, Mar 3, 2019 at 7:10 AM John Kane wrote: > To upgrade to R.3.5.2 from 3.4.4 I have been following the > instructions at > > https://www.r-bloggers.com/installation-of-r-3-5-on-ubuntu-18-04-lts-and-tips-for-spatial-packages/ > . > > I seem to have the repository properly connected and verified. > > I am getting an error: > > --- > john@jonh-T510:~$ sudo apt install r-base r-base-core r-recommended > Reading package lists... Done > Building dependency tree > Reading state information... Done > Some packages could not be installed. This may mean that you have > requested an impossible situation or if you are using the unstable > distribution that some required packages have not yet been created > or been moved out of Incoming. > The following information may help resolve the situation: > > The following packages have unmet dependencies: > r-base-core : Depends: libreadline6 (>= 6.0) but it is not installable >Recommends: r-base-dev but it is not going to be installed > E: Unable to correct problems, you have held broken packages. > > - > Earlier I was getting another error > r-base-core : Depends: libpng12-0 but it is not installable > but that was cured by installing libpng12-0 via the Ubuntu Software app. > > I cannot find what appears to be an installable version of libreadlines6. > > Ubuntu reports that the up-to-date version of libreadlines7. > > Should I consider this an R issue or an Ubuntu issue? > > In any case, has anyone encountered the problem and beaten it? > > Thanks > > -- > John Kane > Kingston ON Canada > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.
Re: [R] Remove Even Number from A Vector
Hi Darren, On Sat, 2 Mar 2019 22:27:55 + Darren Danyluk wrote: > It sounds like she is working with the very basics of this software, > and her task is to write the code which would result in the > extraction of "odd" data from a dataset of restaurant sales. Not a native English speaker here; what exactly do you mean by "odd" in this case? If I ignore the "subject" field, it looks like your daughter should be looking for outlier detection methods. For example, https://rseek.org/ offers some good results for "outlier detection". -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, minimal, self-contained, reproducible code.