Re: [R] Mailinglist

2019-01-05 Thread Jim Lemon
Hi Rachel, I'll take a guess and assume that you are monitoring the mobile phones of 36 people, adding an observation every time some specified change of state is sensed on each device. I'll also assume that you are only recording four types of measurement. It seems that you want to aggregate

Re: [R] Mailinglist

2019-01-05 Thread Jeff Newmiller
Not really. This is R-help, not R-do-my-work-for-me. You need to make enough progress in doing your work that you can ask a focused question about how to do some step of your work in R before your query will be answerable on this mailing list. Once you have started your work you will have some

Re: [R] Merge the data from multiple text files

2019-01-05 Thread David L Carlson
To expand on David W's answer, here is an approach to your example. If you have many text files, you would want to process them together rather than individually. You gave us two examples so I'll use those and read them from the console using readLines(), but you would use the same function to

Re: [R] g++ error causes non-zero exit status for package installation

2019-01-05 Thread Dirk Eddelbuettel
On 5 January 2019 at 13:13, Henrik Bengtsson wrote: | On Sat, Jan 5, 2019 at 9:41 AM Dirk Eddelbuettel wrote: | > | > | > On 5 January 2019 at 09:14, William Dunlap via R-help wrote: | > | You would get these errors ("R: file or directory not found, version: file | > | or directory not

Re: [R] g++ error causes non-zero exit status for package installation

2019-01-05 Thread Henrik Bengtsson
On Sat, Jan 5, 2019 at 9:41 AM Dirk Eddelbuettel wrote: > > > On 5 January 2019 at 09:14, William Dunlap via R-help wrote: > | You would get these errors ("R: file or directory not found, version: file > | or directory not found...") if you had a ~/.Rprofile file containing the > | line

Re: [R] g++ error causes non-zero exit status for package installation

2019-01-05 Thread Winfried Moser
dirk & bill, you guys are incredible! the non-silent .Rprofile was the problem! making the code interactive didn't help either, only silenceing it helped! thanks so much! i assume moving to r-sig-debian is now obsolete. ps, @dirk: adding michael rutters ppa also helped, but the packages get

Re: [R] g++ error causes non-zero exit status for package installation

2019-01-05 Thread Dirk Eddelbuettel
On 5 January 2019 at 20:40, Winfried Moser wrote: | dirk & bill, you guys are incredible! the non-silent .Rprofile was the | problem! | making the code interactive didn't help either, only silenceing it helped! Good to know you have it fixed. | thanks so much! i assume moving to r-sig-debian

Re: [R] Merge the data from multiple text files

2019-01-05 Thread David Winsemius
On 1/5/19 7:28 AM, Priya Arasu via R-help wrote: I have multiple text files, where each file has Boolean rules. Example of my text file 1 and 2 Text file 1: A = not(B or C) B = A and C C = D Text file 2: A = D and E B = not(D) I want to merge the contents in text file as follows A = not(B or

[R] Sciplot bargraph.CI err.lty not working

2019-01-05 Thread Nadia Tsvetkov
Hello, I am plotting ordered data as a bargraph using the following code: bargraph.CI(response=yfac, x.factor=xfac, err.lty=0, data=test) However, I still get error bars. In fact, err.lty=*1* or *2* or *asd *gives the same results and no error massage even if left blank. err.col also produces

[R] Mailinglist

2019-01-05 Thread Rachel Thompson
Dear Mr/Mrs, This is my first time working in R studio. I have a database of 36 participants but it has 150600 entries. Column - Column - Column- Column Participant Activityprobe - Activity Level - High/low/none Participant Screenprobe - screenon/off -

Re: [R] g++ error causes non-zero exit status for package installation

2019-01-05 Thread Dirk Eddelbuettel
On 5 January 2019 at 09:14, William Dunlap via R-help wrote: | You would get these errors ("R: file or directory not found, version: file | or directory not found...") if you had a ~/.Rprofile file containing the | line 'cat(version$version.string, sep="\n"). Well spotted -- very much so. That

Re: [R] Diff'ing 2 strings

2019-01-05 Thread Bert Gunter
It's the "split" string not the "sep" string, as you and probably everyone else already realizes. And, of course, it could be a regular expression, not literally a character string. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things

Re: [R] g++ error causes non-zero exit status for package installation

2019-01-05 Thread William Dunlap via R-help
You would get these errors ("R: file or directory not found, version: file or directory not found...") if you had a ~/.Rprofile file containing the line 'cat(version$version.string, sep="\n"). Bill Dunlap TIBCO Software wdunlap tibco.com On Sat, Jan 5, 2019 at 1:23 AM Winfried Moser wrote: >

[R] Merge the data from multiple text files

2019-01-05 Thread Priya Arasu via R-help
I have multiple text files, where each file has Boolean rules. Example of my text file 1 and 2 Text file 1: A = not(B or C) B = A and C C = D Text file 2: A = D and E B = not(D) I want to merge the contents in text file as follows A = not(B or C) and (D and E) B = not(D) and (A and C) C = D Is

Re: [R] Diff'ing 2 strings

2019-01-05 Thread Bert Gunter
I do not know what you mean in your string context, as diff in Linux finds lines in files that differ. A reproducible example -- posting guide! -- would be most useful here. However, maybe something of the following strategy might be useful: 1. Break up your strings into lists of string "chunks"

Re: [R] CRAN updates

2019-01-05 Thread Rich Shepard
On Sat, 5 Jan 2019, Dirk Eddelbuettel wrote: ... can add these six lines to Rprofile.site (as Debian does) or your ~/.Rprofile Dirk, Thank you. I missed seeing .Rprofile when I went looking for it. Regards, Rich __ R-help@r-project.org

Re: [R] g++ error causes non-zero exit status for package installation

2019-01-05 Thread Dirk Eddelbuettel
On 4 January 2019 at 23:23, Winfried Moser wrote: | dear community, | | i get a *non-zero exit status* installing the survey-package in R version | 3.5.2 on ubuntu 18.04. the problem seems to be related to *g++* and/or the | package *minqa*. in the output of the installation procedure i found

Re: [R] Failed to install RQuantLib in Ubuntu machine

2019-01-05 Thread Dirk Eddelbuettel
On 3 January 2019 at 03:16, Christofer Bogaso wrote: | I was trying to install RQuantLib in my Ubuntu machine which failed with | below information : Try this on the shell instead: sudo apt-get install r-cran-rquantlib Otherwise maybe rebuild Rcpp from inside R, or also install it from

Re: [R] CRAN updates

2019-01-05 Thread Dirk Eddelbuettel
On 5 January 2019 at 05:46, Rich Shepard wrote: |Is there a file where I can specify the repository to use when upgrading | packages rather than having R ask each time? Many ways. You want to set options(repos) -- see eg help(download.packages) and see help(Startup) for the many ways where

[R] Diff'ing 2 strings

2019-01-05 Thread Sebastien Bihorel
Hi, Does R include an equivalent of the linux diff command? Ideally I would like to diff 2 fairly complex strings and extract the differences without having to save them on disk and using a system('diff file1 file2') command. Thanks Sebastien __

[R] CRAN updates

2019-01-05 Thread Rich Shepard
Is there a file where I can specify the repository to use when upgrading packages rather than having R ask each time? TIA, Rich __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

[R] g++ error causes non-zero exit status for package installation

2019-01-05 Thread Winfried Moser
dear community, i get a *non-zero exit status* installing the survey-package in R version 3.5.2 on ubuntu 18.04. the problem seems to be related to *g++* and/or the package *minqa*. in the output of the installation procedure i found the following g++ related lines: g++ -I"/usr/share/R/include"

[R] Revolutions blog: December 2018 roundup

2019-01-05 Thread David Smith (CDA) via R-help
Happy New Year! For more than 10 years, Microsoft staff and guests have written about R at the Revolutions blog (http://blog.revolutionanalytics.com) and every month I post a summary of articles from the previous month of particular interest to readers of r-help. In case you missed them, here are