Re: [R] Storing tableGrobs in a list

2018-06-14 Thread Stats Student
Thanks. The trick was in the do.call() syntax - p1<-do.call(gtable_combine, c(L1, list(along=2))) On Jun 14, 2018, 6:30 PM, at 6:30 PM, Jeff Newmiller wrote: >I don't know gtable_combine well enough to answer based on hand waving. >A reproducible example is more likely to tempt someone to dig

Re: [R] Storing tableGrobs in a list

2018-06-14 Thread Jeff Newmiller
I don't know gtable_combine well enough to answer based on hand waving. A reproducible example is more likely to tempt someone to dig a little. On June 14, 2018 8:07:19 AM HST, Stats Student wrote: >Thanks for the replies. Wasn't aware that Gmail on Android sent HTML by >default, apologies. > >

Re: [R] Kendall tau a, b, or c

2018-06-14 Thread Jeff Reichman
Marc Thank you - that will save me some time. Jeff -Original Message- From: Marc Schwartz Sent: Thursday, June 14, 2018 4:07 PM To: JEFFERY REICHMAN Cc: R-help Subject: Re: [R] Kendall tau a, b, or c > On Jun 14, 2018, at 4:04 PM, JEFFERY REICHMAN wrote: > > r-help Forum > > Is

Re: [R] Kendall tau a, b, or c

2018-06-14 Thread Marc Schwartz
> On Jun 14, 2018, at 4:04 PM, JEFFERY REICHMAN wrote: > > r-help Forum > > Is there a function to calculate either Kendall tau a, b, or c. It appears > the Kendall library only calculates tau b. Just wanted to check before > writing a function to calculate the concordant and discordant pa

[R] Kendall tau a, b, or c

2018-06-14 Thread JEFFERY REICHMAN
r-help Forum Is there a function to calculate either Kendall tau a, b, or c. It appears the Kendall library only calculates tau b. Just wanted to check before writing a function to calculate the concordant and discordant pairs. Then its pretty easy. jeff _

Re: [R] rJava woes on Linux Mint 18.3 Sylvia

2018-06-14 Thread J C Nash
Answering my own post. On the particular machine in question, I managed to install rJava after installing (in the OS) libbz2-dev and liblzma-dev. There was a hint of this in the install output, but not as clear as would help a novice. JN __ R-help@r-p

Re: [R] Storing tableGrobs in a list

2018-06-14 Thread Stats Student
Thanks for the replies. Wasn't aware that Gmail on Android sent HTML by default, apologies. Storing the tableGrob-s in a list worked but for some reason grid.arrange complains on output from gtable_combine() using lists vs individual tableGrob-s. # works when supplying individual tableGrobs

Re: [R] Data frame with Factor column missing data change to NA

2018-06-14 Thread Bill Poling
Jim, Actually, I got this to work. df$NonAcceptanceOther[df$NonAcceptanceOther==""]<- NA df$NonAcceptanceOther missingDF <- plot_missing(df) # missingDF # featurenum_missing pct_missinggroup # 13 NonAcceptanceOther 26157 0.86859932257 Remove G

[R] Trouble with tibbles

2018-06-14 Thread Kevin E. Thorpe
I am trying to learn and use the tidyverse tools and one peculiarity that I seem to encounter is that converting some data frames to tibbles gives surprising results. I tried to make a toy example illustrates the problem but couldn't. Let me show some output that illustrates the problem. > str

Re: [R] Fwd: Quadratic programming, for loop

2018-06-14 Thread Boris Steipe
Keep replies on list please. You are not accessing a value from vector Q if you access the zero'th element! R > Q <- c(3, 5, 8) R > Q[0] numeric(0) R > Q[1] [1] 3 R > Q[2] [1] 5 In the first iteration of the loop j is 2 thus j-2 is 0 and that's the reason for the error message: you are trying to

Re: [R] Data frame with Factor column missing data change to NA

2018-06-14 Thread Bill Poling
#Good morning Jim, thank you for your response and guidance. So I ran the suggested and got: Error in nchar(df2$NonAcceptanceOther) : 'nchar()' requires a character vector So I ran this: df2$NonAcceptanceOther[] <- lapply(df2$NonAcceptanceOther,as.character) #Then tried again. #But still g