[R] Problem to install xgboost package

2017-05-15 Thread Shu-Ju Tu
Hi I planned to learn R and their machine learning algorithms such as xgboost. I just installed R 3.3 in our CentOS linux system. Linus system: centos-release-6-9.el6.12.3.x86_64 I used the command: yum install R. I successfully install "rJava" and "mlr" packages. Then I used the following command

[R] Aggregate counts of observations with times surrounding a time?

2017-05-15 Thread Mark Noworolski
I have a data frame that has a set of observed dwell times at a set of locations. The metadata for the locations includes things that have varying degrees of specificity. I'm interested in tracking the number of people present at a given time in a given store, type of store, or zip code. Here's an

Re: [R] Odd results from rpart classification tree

2017-05-15 Thread Marshall, Jonathan
Thanks Terry! I managed to figure that out shortly after posting (as is the way!) Adding an additional covariate that splits below one of the x branches but not the other and means the class proportion to go over 0.5 means the x split is retained. However, I now have another conundrum, this tim

Re: [R] plot problems

2017-05-15 Thread Duncan Murdoch
On 15/05/2017 4:15 PM, sylvie.celer...@free.fr wrote: Hello all, I'm using RStudio Version 1.0.136 on wondow 7 (64 bite) and I can't understand why all my plots are displayed ouside of the Rstudio graphic pane. How can I make them go back to the graphic panes ? This is a question for RStudio,

Re: [R] Tukey tests in two-way ANOVA

2017-05-15 Thread Richard M. Heiberger
you have only one df for site and one df for year. most likely you skipped the step of telling R those are factors. On Mon, May 15, 2017 at 1:40 PM, Lucy McMahon wrote: > R-help: > > I'm looking into the abundance of an algal species over site and years using > a two-way ANOVA: > >> summary (ao

Re: [R] Tukey tests in two-way ANOVA

2017-05-15 Thread peter dalgaard
I think you forgot to turn site and year into factors. (The 1 Df is the giveaway). -pd > On 15 May 2017, at 19:40 , Lucy McMahon wrote: > > R-help: > > I'm looking into the abundance of an algal species over site and years using > a two-way ANOVA: > >> summary (aov (fserratus ~ site+year))

[R] plot problems

2017-05-15 Thread sylvie . celerier
Hello all, I'm using RStudio Version 1.0.136 on wondow 7 (64 bite) and I can't understand why all my plots are displayed ouside of the Rstudio graphic pane. How can I make them go back to the graphic panes ? thanks a lot for your help sylvie __ R-hel

[R] Tukey tests in two-way ANOVA

2017-05-15 Thread Lucy McMahon
R-help: I'm looking into the abundance of an algal species over site and years using a two-way ANOVA: > summary (aov (fserratus ~ site+year)) Df Sum Sq Mean Sq F value Pr(>F) site 1 1487 1486.6 6.094 0.0155 * year 1 1173 1172.8

Re: [R] Xtable with long column headings/names

2017-05-15 Thread John Kane via R-help
Can you give us an example. I am having a problem visualizing this.  It seems obvious just to put in a line break normally but in xtabs who knows? On Monday, May 15, 2017 1:15 PM, Bruce Ratner PhD wrote: R-help: I'm using xtable that produces a table in html with one-line for each of t

Re: [R] Xtable with long column headings/names

2017-05-15 Thread BR_email
John: Here is the code of my xtable: TABLE <-xtable(dec_analy, digits = c(0,0,0,0,2,2,0), align = "ccc", latex.environments = "center", caption = "Analysis ") print.xtable(TABLE, type="html",file="C:/R_Data/Table.html", include.rownames

Re: [R] Xtable with long column headings/names

2017-05-15 Thread BR_email
John: After I generate the xtable table, I manually edited (by inserting ) the html header, below. Is there a way in xtable that I can set some setting to affect my xtable table? Thanks for your reply. Bruce Analysis DECILE NUMBER OF INDIVIDUALS NUMBER OF RESPONDERS RESPONSE RA

[R] Xtable with long column headings/names

2017-05-15 Thread Bruce Ratner PhD
R-help: I'm using xtable that produces a table in html with one-line for each of the long column headings/names. I would like to word wrap the column headings to break into two-lines. Any suggestion as to which argument needs adjustment is appreciated. Bruce ___

Re: [R] Odd results from rpart classification tree

2017-05-15 Thread Therneau, Terry M., Ph.D.
You are mixing up two of the steps in rpart. 1: how to find the best candidate split and 2: evaluation of that split. With the "class" method we use the information or Gini criteria for step 1. The code finds a worthwhile candidate split at 0.5 using exactly the calculations you outline. For

Re: [R] display double dot over character in plotmath?

2017-05-15 Thread Duncan Murdoch
On 15/05/2017 8:18 AM, Olivier Crouzet wrote: Hi, The following simple solution gives appropriate results in base R (and should work with any base character): plot(rnorm(100), rnorm(100), main = expression(paste(omega, "\u0308"))) It doesn't work for me on Mac OS or Windows 10 in the default

Re: [R] display double dot over character in plotmath?

2017-05-15 Thread Olivier Crouzet
Hi, The following simple solution gives appropriate results in base R (and should work with any base character): plot(rnorm(100), rnorm(100), main = expression(paste(omega, "\u0308"))) In your ggplot example, something like: ggplot(data, aes(x=X)) + geom_line(aes(y = Z), size=0.43) + xlab (expr

[R] Uisng a Dictionary with tm Package

2017-05-15 Thread Patrick Casimir
Hello Fellows, I used the dictionary function to capture terms from a corpus of 102 docs but the dictionary only captures those terms in 10 documents. I need those terms from all 102 docs. Any idea why? How do I get the dictionary to return for all 102 docs? See my coding below. > myTerms <-

[R] Joining tables with different order and matched values

2017-05-15 Thread Jim Lemon
Hi Abo, This is essentially the same as your other problem. Notice that this solution will only work if the values in dt1 and dt2 are character, not factor and that I have replaced the space in "Drug name" with an underscore. R will automatically substitute a period when such a name is read in. dt

Re: [R] display double dot over character in plotmath?

2017-05-15 Thread Duncan Mackay
Hi I looked up for the Unicode version at http://www.utf8-chartable.de/unicode-utf8-table.pl You might have to go to another page to find the Unicode equivalent. You may not be able to get the right character showing and get at square/s instead - it all depends on the drivers and how many charac

[R] [R-pkgs] New package: ompr

2017-05-15 Thread Dirk Schumacher
Dear R users, happy to announce that the first version of ompr is on CRAN now (https://cran.r-project.org/web/packages/ompr/). The package lets you model mixed integer linear programs algebraically directly in R. There is also another package ompr.roi that can be used to solve ompr models with RO

[R] [R-pkgs] apercu

2017-05-15 Thread Aurélien Chateigner
Dear All, I am pleased to announce the availability of my package called "apercu" on CRAN. The goal is to make your development easier by showing you a quick view (an "aperçu" in french) of any object you want (vector, matrix, data frame, list, array...). I first developed it after being tired to

[R] [R-pkgs] Calculate wind fetch using fetchR

2017-05-15 Thread Blake Seers
Dear R users, I am pleased to announce that the fetchR package is now available on CRAN, which automatically calculates wind fetch lengths, for any location(s) around the world. Wind fetch (or just fetch) is an important calculation in many coastal and oceanographic applications that require a me