Re: [R] Compiling R with zlib in non-standard location

2017-05-24 Thread Peter Carbonetto
Hi David, I found this blog post helpful. I had a similar situation where I was installing R 3.3 on CentOS 6, and I found these instructinos worked well: http://pj.freefaculty.org/blog/?p=315 The only problem I had is that the instructions as written do not allow for using the R installation wit

Re: [R] problem with vegan function rda()

2017-05-24 Thread Hadi Poorbagher
Hi The problem with rda() and getting some result like: Regularization parameters: > NULL may be related to the package �agricolae� as when I load it, rda() fails to produce a plot. To solve, quit R and re-start it. This time, do not load �agricolae�. Regards Hadi �� ��

Re: [R] Did not complete an assignment in time for students to grade

2017-05-24 Thread Alice Nix
Hello, I am wondering if I can re-subscribe to the R Programming course on Coursera at a later point in time and pick up where I left off. I completed everything except for one assignment in Week 3 which required peer review of the assignment for a grade. Thanks! - Alice [[alternative

Re: [R] Error: could not find function of a packge

2017-05-24 Thread Duncan Murdoch
On 24/05/2017 5:11 PM, Maity, Arnab K wrote: Dear R helpers, I created a package on github. It is located at "arnabkrmaity/brlrmr". Then I submitted this on CRAN and it is now available on CRAN. When I install this package from github using install.github("arnabkrmaity\brlrmr"), everything

[R] Error: could not find function of a packge

2017-05-24 Thread Maity, Arnab K
Dear R helpers, I created a package on github. It is located at "arnabkrmaity/brlrmr". Then I submitted this on CRAN and it is now available on CRAN. When I install this package from github using install.github("arnabkrmaity\brlrmr"), everything works fine. However, when I install directly f

Re: [R] Cause of error assigning NULL to element of a vector

2017-05-24 Thread Jeff Newmiller
Perhaps it is worth pointing out (in case the OP thinks this is SQL) that the special value NA is used for "missing" in R. y[1] <- NA works just fine. -- Sent from my phone. Please excuse my brevity. On May 24, 2017 11:51:41 AM PDT, Marc Schwartz wrote: > >> On May 24, 2017, at 1:30 PM, Ramn

Re: [R] Cause of error assigning NULL to element of a vector

2017-05-24 Thread Marc Schwartz
> On May 24, 2017, at 1:30 PM, Ramnik Bansal wrote: > > What is the cause of the error below ? > >> y <- 1 >> y[1] <- NULL > Error in y[1] <- NULL : replacement has length zero > > Thanks, > Ramnik Hi, > length(NULL) [1] 0 You are attempting to assign NULL, which is a zero length special ob

[R] Cause of error assigning NULL to element of a vector

2017-05-24 Thread Ramnik Bansal
What is the cause of the error below ? > y <- 1 > y[1] <- NULL Error in y[1] <- NULL : replacement has length zero Thanks, Ramnik [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https:/

Re: [R] about combining two dataframes

2017-05-24 Thread Bert Gunter
On Wed, May 24, 2017 at 10:50 AM, lily li wrote: > Thanks, I didn't know the email function before. > The code works. I found that using "=" is different from using "<-". > If you are referring to assignment in the evaluation environment (instead of e.g. to values of function arguments), then wha

Re: [R] about combining two dataframes

2017-05-24 Thread lily li
Thanks, I didn't know the email function before. The code works. I found that using "=" is different from using "<-". On Wed, May 24, 2017 at 11:41 AM, David L Carlson wrote: > Is there a reason not to just rename the columns? > > First, you should use dput(DF1) and dput(DF2) to send your examp

Re: [R] about combining two dataframes

2017-05-24 Thread lily li
Thanks for your reply. I created the two dataframes (just numbers from txt files) in one for loop, so that it is confused to give them the same column names. That is the reason that I give them different column names to differentiate them, but it causes difficulty in later combining them. On Wed,

Re: [R] about combining two dataframes

2017-05-24 Thread Ulrik Stervbo
Hi Lily, maybe you should read up on what bind_rows/bind_cols (or the base functions rbind and cbind) do. bind_cols and cbind will fail in this case because of the different number of rows. bind_rows and rbind will fail because the column names are different - how can R know that month and mon r

Re: [R] about combining two dataframes

2017-05-24 Thread David L Carlson
Is there a reason not to just rename the columns? First, you should use dput(DF1) and dput(DF2) to send your example tables to the list: DF1 <- structure(list(year = c(1981L, 1981L, 1981L, 1981L), month = c(1L, 1L, 1L, 1L), day = 1:4, product1 = c(18L, 19L, 16L, 19L), product2 = c(56L, 45L, 48

[R] about combining two dataframes

2017-05-24 Thread lily li
Hi all, I have a question about combining two data frames. For example, there are the two dataframes below, with the same structure but different column names and column lengths. How to add the values in DF2 to the end of DF1, though the column names do not match? How to add more than two? Thanks.

Re: [R] Identyfing rows with specific conditions

2017-05-24 Thread David L Carlson
You may run into memory issues if the table is that large in which case you may need to break your customers into subsets and process each subset separately. Then combine the results of the subsets into a single file. There are a couple of relatively easy ways to speed things up, but I don't kn

Re: [R] Error in readRDS(dest) (was Re: Error with installed.packages with R 3.4.0 on Windows)

2017-05-24 Thread Patrick Connolly
On Tue, 23-May-2017 at 12:20PM +0200, Martin Maechler wrote: [...] |> |> Given the above stack trace. |> It may be easier to just do |> |> debugonce(available.packages) |> install.packages("withr") |> |> and then inside available.packages, (using 'n') step to the |> point _before_ the

Re: [R] [FORGED] Re: Rpart help

2017-05-24 Thread Rolf Turner
On 24/05/17 20:30, peter dalgaard wrote: And, never mind Bert's rant, a simple table(single_order, churn) would give info similar to what you claim to have from Excel, minus the risk of finding that the data are not the same, or that Excel was doing something bizarre. Bert? Rant? Perish

Re: [R] Rpart help

2017-05-24 Thread peter dalgaard
> On 24 May 2017, at 04:38 , Bert Gunter wrote: > > 1. Forget Excel. Erase it from your memory. banish its paradigms from > your practices. Faiing to do so will only bring misery as you explore > R. R is a rational programming language primarily for data analysis, > statistics, and graphics. Exc

Re: [R] ggplot problem

2017-05-24 Thread Thierry Onkelinx
Dear Greg, Make sure that your x variable (Betas) is categorical. That is required for geom_boxplot(). And please do read the posting guide. Best regards, ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / t