[R] searching for a specific row name in R

2018-08-12 Thread Deepa Maheshvare
Hello Everyone, I have a 1000 x 20 matrix. The second column of the matrix has the names of identifiers. How do I check when a certain identifier is present in the set of 1000 identifier names present in the second column. For instance, let the names of identifiers be A1,A2,...A1000. I want to

Re: [R] Mysterious seg fault --- SOLVED

2018-08-12 Thread Rolf Turner
OK everybody! You can relax. :-) I managed to spot the loony. After mucking around with valgrind, and before trying gdb, I had one more look at my code and *finally* saw the stupid thing that I had been doing. In the call to .Fortran() I had a line nphi=as.integer(nphi), but "nphi"

Re: [R] Mysterious seg fault.

2018-08-12 Thread Rolf Turner
On 13/08/18 12:03, Duncan Murdoch wrote: So I did: /usr/local/bin/valgrind R I believe on your system R is a script, so you can't run valgrind this way.  It's just debugging bash, not R.  You need to use R -d valgrind (though with your weird path problems, you might need a fully qualifi

Re: [R] Mysterious seg fault.

2018-08-12 Thread Duncan Murdoch
On 12/08/2018 6:32 PM, Rolf Turner wrote: On 12/08/18 17:42, Eric Berger wrote: Hi Rolf, When faced with such a situation I take the following approach which often helps. Use the same setup that caused the seg fault (you need a reproducible problem.) Start your R session using valgrind. e.g. i

Re: [R] cumulate of snow cumulates from daily values of different automatic stations for some time intervals

2018-08-12 Thread Jim Lemon
Hi Stefano, This was such a stinker of a problem that I just had to crack it: # create some data the lazy man's way year_dates<-c(paste(2000,rep("01",31),formatC(1:31,width=2,flag=0),sep="-"), paste(2000,rep("02",29),formatC(1:29,width=2,flag=0),sep="-"), paste(2000,rep("03",31),formatC(1:31,wid

Re: [R] Mysterious seg fault.

2018-08-12 Thread Rolf Turner
On 12/08/18 17:42, Eric Berger wrote: Hi Rolf, When faced with such a situation I take the following approach which often helps. Use the same setup that caused the seg fault (you need a reproducible problem.) Start your R session using valgrind. e.g. in linux I do: $ valgrind R Assuming t

Re: [R] Fast matrix multiplication

2018-08-12 Thread Peter Carbonetto
Hi Ravi, Like Ista, I have also had success in using R with OpenBLAS on our Linux compute cluster. This will involve installing R from source. If you'd like, I can send you the configure settings I used, as well as the environment settings used to control OpenBLAS multithreading. The CRAN site al

Re: [R] source script file that contains Unicode non-English characters

2018-08-12 Thread Duncan Murdoch
On 12/08/2018 11:48 AM, Faridedin Cheraghi wrote: that's right and I don't want to change my locale. my sessionInfo() : I think it could be another manifestation of a known bug on Windows, where strings are converted from UTF-8 to the current locale and back to UTF-8, a lossy conversion. Thi

Re: [R] source script file that contains Unicode non-English characters

2018-08-12 Thread Faridedin Cheraghi
that's right and I don't want to change my locale. my sessionInfo() : R version 3.5.1 (2018-07-02) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200) Matrix products: default locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.

Re: [R] source script file that contains Unicode non-English characters

2018-08-12 Thread Duncan Murdoch
On 12/08/2018 3:09 AM, Faridedin Cheraghi wrote: It was actually a .rmd file so you can get the coloring of the bug report in your text editor. I changed the format to .txt. When I run your script on a Mac (in a UTF-8 locale), all lines work as expected. I'm guessing you are working on Window

Re: [R] Assistance on Installing Rattle

2018-08-12 Thread Michael Dewey
Dear Shivi What error message do you get when you try to install RGtk2? Michael On 12/08/2018 11:49, Shivi Bhatia wrote: Hi Eric, Thank you for the reply. I am adding the session details below, hope it helps: R version 3.5.1 (2018-07-02) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under

Re: [R] Assistance on Installing Rattle

2018-08-12 Thread Shivi Bhatia
Hi Eric, Thank you for the reply. I am adding the session details below, hope it helps: R version 3.5.1 (2018-07-02) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200) Matrix products: default locale: [1] LC_COLLATE=English_India.1252 LC_CTYPE=English_India.12

Re: [R] source script file that contains Unicode non-English characters

2018-08-12 Thread Faridedin Cheraghi
It was actually a .rmd file so you can get the coloring of the bug report in your text editor. I changed the format to .txt. -Farid On Sun, Aug 12, 2018 at 7:24 AM, Jeff Newmiller wrote: > ... and read the Posting Guide... only a few file types will ever make it > through the mailing list so re