Re: [R] trouble installing R from source on Windows 8

2014-11-30 Thread Erin Hodgess
great...thank you On Sun, Nov 30, 2014 at 1:45 AM, Uwe Ligges lig...@statistik.tu-dortmund.de wrote: On 30.11.2014 06:29, Jeff Newmiller wrote: Stop using administrator. If and only if Windows prompts you for permission to install, give it your password. Stay as far away from

[R] Comparing Latin characters with and without accents?

2014-11-30 Thread Spencer Graves
Hello: How can one convert Latin characters with to the corresponding characters without? For example, I want to convert ú to u, similar to how tolower('U') returns u. This can be done using chartr{base}, e.g., chartr('ú', 'u', 'Raúl') returns Raul. However, I wondered if a

Re: [R] Comparing Latin characters with and without accents?

2014-11-30 Thread Milan Bouchet-Valat
Le dimanche 30 novembre 2014 à 02:14 -0800, Spencer Graves a écrit : Hello: How can one convert Latin characters with to the corresponding characters without? For example, I want to convert ú to u, similar to how tolower('U') returns u. This can be done using

Re: [R] Comparing Latin characters with and without accents?

2014-11-30 Thread Spencer Graves
Wonderful. Thanks very much. Spencer On 11/30/2014 2:25 AM, Milan Bouchet-Valat wrote: Le dimanche 30 novembre 2014 à 02:14 -0800, Spencer Graves a écrit : Hello: How can one convert Latin characters with to the corresponding characters without? For example, I want to convert ú

Re: [R] please please unsubscribe!!!!!!!!!!!!!!!!

2014-11-30 Thread John Sorkin
The headers listed below as being part of the ״raw email messages are not seen, at least not in the messages I receive. John John David Sorkin M.D., Ph.D. Professor of Medicine Chief, Biostatistics and Informatics University of Maryland School of Medicine Division of Gerontology and Geriatric

[R] TSLS / 2SLS with a binary outcome

2014-11-30 Thread Philip Robinson
Hi, I am wanting to complete 2 stage least squared regression with a binary outcome. I have found and implemented a continuous outcome with tsls() from the sen package or ivreg() from the AER package. However I am struggling to find a package/function that implements a function for a binary

Re: [R] please please unsubscribe!!!!!!!!!!!!!!!!

2014-11-30 Thread Michael Dewey
Dear John Perhaps you have set your mail client to hide them? Your email certainly has them when I go Options | View | Headers | All in Thunderbird. Michael On 30/11/2014 12:05, John Sorkin wrote: The headers listed below as being part of the ״raw email messages are not seen, at least not

Re: [R] please please unsubscribe!!!!!!!!!!!!!!!!

2014-11-30 Thread John Kane
The problem seems to be that the people who have a desire to unsubscrbe and post here are not the most sophisticated of users and expecting them to know how to track down the raw email or even to realise the message at the bottom of the post is meant to convey much of anything is not likely to

Re: [R] Remove the border/frame in a dotplot()

2014-11-30 Thread John Kane
You seem to have posted in HTML and the post is close to unreadable. Also you did not include any data, as far as I can see. Please supply some sample dataand code. The easiest way to supply data is to se the dput() function. Example with your file named testfile: dput(testfile) Then copy

Re: [R] please please unsubscribe!!!!!!!!!!!!!!!!

2014-11-30 Thread Ranjan Maitra
I agree with this sentiment and suggestion. I can not see much of a downside to it, with the exception that most of these unsophisticated users will probably not even bother reading it. But then we would all be back in the current situation, not worse. Ranjan On Sat, 29 Nov 2014 21:58:23

Re: [R] please please unsubscribe!!!!!!!!!!!!!!!!

2014-11-30 Thread Fábio Magalhães
My bad, r-help messages indeed have the unsubscribe header set. Also, at least for Gmail a Precedence: bulk should be set in order to this mechanism to work, as Henrik pointed out. Currently the raw headers set precedence to list. I don't know the technical differences of list and bulk, so maybe

Re: [R] please please unsubscribe!!!!!!!!!!!!!!!!

2014-11-30 Thread Henrik Bengtsson
My reply on raw email headers was regarding a suggestion on having Gmail and similar clients automatically to add an easy-to-spot unsubscribe link/button. No one here suggested the user him-/herself should read those headers. Henrik On Nov 30, 2014 6:16 AM, John Kane jrkrid...@inbox.com wrote:

[R] no non-missing arguments to max; returning -Inf [2(dplyr/mutate()]

2014-11-30 Thread Muhuri, Pradip (SAMHSA/CBHSQ)
Hello, With dplyr mutate(), the code below creates a new column (oiddate), which is the maximum of the four dates (mrjdate,cocdate, inhdate, haldate). The code seems to provide the results (presented below) I desired. But, the issue is that I am getting the following warning message: 1: In

Re: [R] please please unsubscribe!!!!!!!!!!!!!!!!

2014-11-30 Thread Jeff Newmiller
No one is suggesting that anyone read raw headers. This is a mechanism that requires features on both the list server end and the client end... but if newbies are using modern facilities then that would be exactly their situation. Please read up on the mechanism at least a little bit before

Re: [R] please please unsubscribe!!!!!!!!!!!!!!!!

2014-11-30 Thread Duncan Murdoch
On 30/11/2014, 9:56 AM, Fábio Magalhães wrote: My bad, r-help messages indeed have the unsubscribe header set. Also, at least for Gmail a Precedence: bulk should be set in order to this mechanism to work, as Henrik pointed out. Currently the raw headers set precedence to list. I don't know

Re: [R] please please unsubscribe!!!!!!!!!!!!!!!!

2014-11-30 Thread Fábio Magalhães
Duncan, You are right, I've assumed precedence wouldn't break anything, but looking a little more into this issue it seems some people use filters based on this header and Gmail seems to be the only client that needs bulk precedence set to make unsubscribe link work. I think the question boils

[R] starting with mixture distribution

2014-11-30 Thread Alaios via R-help
Hi.I was using the last night the fitdistr package to start with some fitting. I have some data sets that even though have a very gaussian distribution it looks like that also it has some very heavy tails, that can not be accurately be modelled by a gaussian distribution.Where should I give a

[R] cyclic dependency when building a package

2014-11-30 Thread Glenn Schultz
Hi All, I am working on a package BondLab for the analysis of fixed income securities. Building the package results in the following: Error in loadNamespace(package, c(which.lib.loc, lib.loc)) : cyclic namespace dependency detected when loading ‘BondLab’, already loading ‘BondLab’ It

Re: [R] TSLS / 2SLS with a binary outcome

2014-11-30 Thread Achim Zeileis
On Sun, 30 Nov 2014, Philip Robinson wrote: Hi, I am wanting to complete 2 stage least squared regression with a binary outcome. I have found and implemented a continuous outcome with tsls() from the sen package or ivreg() from the AER package. However I am struggling to find a

Re: [R] starting with mixture distribution

2014-11-30 Thread Achim Zeileis
On Sun, 30 Nov 2014, Alaios via R-help wrote: Hi.I was using the last night the fitdistr package to start with some fitting. I have some data sets that even though have a very gaussian distribution it looks like that also it has some very heavy tails, that can not be accurately be modelled by

Re: [R] cyclic dependency when building a package

2014-11-30 Thread Martin Morgan
On 11/30/2014 07:15 AM, Glenn Schultz wrote: Hi All, I am working on a package BondLab for the analysis of fixed income securities. Building the package results in the following: Error in loadNamespace(package, c(which.lib.loc, lib.loc)) : cyclic namespace dependency detected when loading

Re: [R] cyclic dependency when building a package

2014-11-30 Thread Duncan Murdoch
On 30/11/2014, 10:15 AM, Glenn Schultz wrote: Hi All, I am working on a package BondLab for the analysis of fixed income securities. Building the package results in the following: Error in loadNamespace(package, c(which.lib.loc, lib.loc)) : cyclic namespace dependency detected when

Re: [R] Remove the border/frame in a dotplot()

2014-11-30 Thread Richard M. Heiberger
stéphanie, I believe you need all of this. Look at it with a good editor and in a monowidth font such as courier to see the structure. Rich library(lattice) library(latticeExtra) dotplot(~ 1:10, par.settings=list( axis.line=list(col=transparent),

[R] R dplyr solution vs. Base R solution for the slect column total

2014-11-30 Thread Muhuri, Pradip (SAMHSA/CBHSQ)
Hello, I am looking for a dplyr or base R solution for the column total - JUST FOR THE LAST COLUMN in the example below. The following code works, giving me the total for each column - This is not exactly what I want. rbind(test, colSums(test)) I only want the total for the very last column.

Re: [R] R dplyr solution vs. Base R solution for the slect column total

2014-11-30 Thread Boris Steipe
try: sum(test$count) B. On Nov 30, 2014, at 12:01 PM, Muhuri, Pradip (SAMHSA/CBHSQ) pradip.muh...@samhsa.hhs.gov wrote: Hello, I am looking for a dplyr or base R solution for the column total - JUST FOR THE LAST COLUMN in the example below. The following code works, giving me the

Re: [R] please please unsubscribe!!!!!!!!!!!!!!!!

2014-11-30 Thread peter dalgaard
On 30 Nov 2014, at 16:51 , Fábio Magalhães fmagalh...@gmail.com wrote: Duncan, You are right, I've assumed precedence wouldn't break anything, but looking a little more into this issue it seems some people use filters based on this header and Gmail seems to be the only client that needs

Re: [R] please please unsubscribe!!!!!!!!!!!!!!!!

2014-11-30 Thread Rich Shepard
On Sun, 30 Nov 2014, peter dalgaard wrote: (a) would people actually take the hint, whatever we put in the footer? Only some actually read everything and look for help at the bottom of the message. Since Microsoft users almost always top post I wonder if they even see the bottom of a

Re: [R] R dplyr solution vs. Base R solution for the slect column total

2014-11-30 Thread Muhuri, Pradip (SAMHSA/CBHSQ)
Hi Boris, That gives me the total for each of the 6 columns of the data frame. I want the column sum just for the last column. Thanks, Pradip Muhuri -Original Message- From: Boris Steipe [mailto:boris.ste...@utoronto.ca] Sent: Sunday, November 30, 2014 12:50 PM To: Muhuri, Pradip

Re: [R] R dplyr solution vs. Base R solution for the slect column total

2014-11-30 Thread Boris Steipe
No it doesn't ... consider: test - data.frame(first=c(1,2), second=c(3,4)) test first second 1 1 3 2 2 4 sum(test$second) [1] 7 On Nov 30, 2014, at 3:48 PM, Muhuri, Pradip (SAMHSA/CBHSQ) pradip.muh...@samhsa.hhs.gov wrote: Hi Boris, That gives me the total for each

Re: [R] R dplyr solution vs. Base R solution for the slect column total

2014-11-30 Thread Muhuri, Pradip (SAMHSA/CBHSQ)
Hi Boris, Sorry for not being explicit when replying to your first email. I wanted to say it does not work when row-binding. I want the following output. Thanks, Pradip 11 3 22 4 Total 7 ### Below is the console ##

Re: [R] R dplyr solution vs. Base R solution for the slect column total

2014-11-30 Thread Jeff Newmiller
Seems like you have what you want, unless you meant to show something different than you did show. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics:

Re: [R] R dplyr solution vs. Base R solution for the slect column total

2014-11-30 Thread Duncan Murdoch
On 30/11/2014, 8:45 PM, Muhuri, Pradip (SAMHSA/CBHSQ) wrote: Hi Boris, Sorry for not being explicit when replying to your first email. I wanted to say it does not work when row-binding. I want the following output. Thanks, Pradip 11 3 22 4

Re: [R] R dplyr solution vs. Base R solution for the slect column total

2014-11-30 Thread Muhuri, Pradip (SAMHSA/CBHSQ)
Hi Duncan, Thank you for sending your solution. Below is another way. Pradip test - data.frame(first=c(1,2), second=c(3,4)) total - c(, sum(test$second)) rbind(test, Total=total) first second 1 1 3 2 2 4 Total7 rbind(test, c(Total,

Re: [R] please please unsubscribe!!!!!!!!!!!!!!!!

2014-11-30 Thread Ranjan Maitra
Following on Rich and Peter, is it practical for the list to put it at the top then, before the R-message? Something like: TO UNSUBSCRIBE from the list: see https://stat.ethz.ch/mailman/listinfo/r-help And then continue on for each R message. Because top-posting has pretty much taken over,

Re: [R] R dplyr solution vs. Base R solution for the slect column total

2014-11-30 Thread Boris Steipe
What do you think should be in the empty cells? Zero? NA? Empty strings? There can't just be nothing... Here's an example with empty strings as the filler element - but do consider carefully what Duncan wrote. test - data.frame(first=c(1,2), second=c(3,4)) typeof(test[1,1]) # double #

Re: [R] R dplyr solution vs. Base R solution for the slect column total

2014-11-30 Thread Muhuri, Pradip (SAMHSA/CBHSQ)
Hi Boris, Excellent point. Yes, I want to convert it into to the numeric type. Your code has worked out well on the real data set. The issue is resolved. Thanks so much for your help! Pradip -Original Message- From: Boris Steipe [mailto:boris.ste...@utoronto.ca] Sent: Sunday,