[R] the difference between "-" and "!" between base and data.table package

2017-04-15 Thread Carl Sutton via R-help
Hi I normally use package data.table but today was doing some base R coding. Had a problem for a bit which I finally resolved. I was attempting to separate a data frame between train and test sets, and in base R was using the "!" to exclude training set indices from the data frame. All I w

[R] How to integrate OpenBLAS LAPACK to my RStudio in WINDOWS 7?

2017-04-15 Thread Allan Tanaka via R-help
Hi. I have installed OpenBLAS and LAPACK. It's working correctly in Python. I also want OpenBLAS and LAPACK to be used in R to speed up computational time but i can't find the installation guide for RStudio in Windows7. Does it mean that RStudio automatically detect the installed OpenBLAS and us

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-15 Thread Jeff Newmiller
Well, to be fair, .Rprofile is an R configuration file, so it was merely the subject line that was off-topic. -- Sent from my phone. Please excuse my brevity. On April 15, 2017 4:24:06 PM PDT, Rolf Turner wrote: >On 16/04/17 07:57, BR_email wrote: >> Boris: >> As before, you assume that I, Bruc

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-15 Thread BR_email
John: Thanks for your help. Regarding an apology to Boris. No. He is a condescending person. On the three requests for help, which I made since starting with R, he tells me to read the manuals, blogs, etc., while persons like you offer help. That is not strange? My three questions Boris replies

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-15 Thread Rolf Turner
On 16/04/17 07:57, BR_email wrote: Boris: As before, you assume that I, Bruce Ratner, just asks questions without first trying it myself. FYI: I purchased and read four RStudio books, as well as all the links I found in the web. I will not take your maligning me. Please try to assist me, but do n

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-15 Thread John C Frain
If you have your Rprofile.site file in the default place you will need to start whatever editor you are using in administrator mode to save your changes. At least that is so on my PC with windows 10 with R installed in the default directory. I use notepad++ in administrator mode. I presume that you

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-15 Thread Henrik Bengtsson
Hi. First, there should be no difference in where and how R and RStudio locate the R startup file. Second, if there is an .Rprofile in the working directory (i.e. ./.Rprofile), then that file with have higher priority than the file located in ~/.Rprofile. You can use the following R calls, also

[R] output of filled.contour

2017-04-15 Thread 宓辰羲
Dear all: I used the argument of filled.contour for drawing. I just wonder how to shorten the spacing between the key and the picture? Attached below is the output. Thanks very much for the kind help! Best Cheers Chenxi __ R-help@r-pro

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-15 Thread David Winsemius
> On Apr 15, 2017, at 12:46 PM, Boris Steipe wrote: > > As with R, do with RStudio: Read The Beautiful Manual, and peruse The Google. > For example, searching Google with the two (admittedly hard to guess) > cryptograms: > "RStudio Rprofile" > > will present more than a dozen most enlighteni

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-15 Thread Jeff Newmiller
You type each expression interactively at the R console and look at the path it prints. Then you know where to look, or if no file exists there then you know where to put the file you want to be there. -- Sent from my phone. Please excuse my brevity. On April 15, 2017 12:14:32 PM PDT, BR_email

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-15 Thread BR_email
Boris: As before, you assume that I, Bruce Ratner, just asks questions without first trying it myself. FYI: I purchased and read four RStudio books, as well as all the links I found in the web. I will not take your maligning me. Please try to assist me, but do not bully me. Bruce Ratner, Ph.D.

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-15 Thread BR_email
David: Thank you. Bruce Bruce Ratner, Ph.D. The Significant Statistician™ (516) 791-3544 Statistical Predictive Analtyics -- www.DMSTAT1.com Machine-Learning Data Mining and Modeling -- www.GenIQ.net David Winsemius wrote: On Apr 15, 2017, at 12:14 PM, BR_email wrote: Bill: Thanks for repl

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-15 Thread Boris Steipe
As with R, do with RStudio: Read The Beautiful Manual, and peruse The Google. For example, searching Google with the two (admittedly hard to guess) cryptograms: "RStudio Rprofile" will present more than a dozen most enlightening links to fulfil your desire. Perhaps the following link works be

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-15 Thread David Winsemius
> On Apr 15, 2017, at 12:14 PM, BR_email wrote: > > Bill: > Thanks for reply. > Sorry, I do not understand it. > For example, where do I put "file.path(getwd(), ".Rprofile")" ? This is not the correct venue for questions about RStudio setup. Instead this questions should go to: https://suppor

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-15 Thread BR_email
Bill: Thanks for reply. Sorry, I do not understand it. For example, where do I put "file.path(getwd(), ".Rprofile")" ? Bruce William Dunlap wrote: I think the site-specific R profile should be, using R syntax file.path(R.home("etc"), "Rprofile.site") # no dot before the capital R The pe

Re: [R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-15 Thread William Dunlap via R-help
I think the site-specific R profile should be, using R syntax file.path(R.home("etc"), "Rprofile.site") # no dot before the capital R The personal R profile will be file.path(Sys.getenv("HOME"), ".Rprofile") # there is a dot before capital R but if a local R profile, file.path(getwd(), ".R

[R] Setting .Rprofile for RStudio on a Windows 7 x64bit

2017-04-15 Thread BR_email
Hi R-helpers: Can you offer assistance in my getting .Rprofile and .Rprofile.site to run in RStudio? When I start RStudio nothing happens. I have put .Rprofile in [1] and [2], and .Rprofile.site in [2]. Below, the info I believe you need to know. Thanks, in advance, for any help. Bruce The .Rp

Re: [R] Can this be done in ggplot?

2017-04-15 Thread Axel Urbiz
Thanks Kenneth. That is the right idea for what I’m after. However, creating a combined factor based on “g” and “f” is creating unwanted spaces between the bars in the plot (I’d like to keep them adjacent within levels of “g” as shown in my first plot). I had the idea that ordering bars in ggplot

Re: [R] Non date value

2017-04-15 Thread Ashta
Jeff, I am sorry for that. On Sat, Apr 15, 2017 at 12:04 AM, Jeff Newmiller wrote: > You don't follow instructions very well. Read the Posting Guide more > carefully. > -- > Sent from my phone. Please excuse my brevity. > > On April 14, 2017 9:39:30 PM PDT, Ashta wrote: >>DF1 is a data frame.

Re: [R] Can this be done in ggplot?

2017-04-15 Thread Axel Urbiz
Thanks Kenneth. That is the right idea for what I’m after. However, creating a combined factor based on “g” and “f” is creating unwanted spaces between the bars in the plot (I’d like to keep them adjacent within levels of “g” as shown in my first plot). I had the idea that ordering bars in ggp

Re: [R] seq argument along.with

2017-04-15 Thread Rui Barradas
Hello, A good example of a use case of seq_along is to avoid constructs such as 1:length(x) that don't make sense and are a source for bugs whenever x is of length zero. See for instance loops where careless coders do for(i in 1:length(x)){ x[i] <- some computation } If x is of lengt