Re: [R] [FORGED] Logical Operators' inconsistent Behavior

2017-05-21 Thread William Michels via R-help
Looking below and online, R's truth tables for NOT, AND, OR are identical to the NOT, AND, OR truth tables originating from Stephen Cole Kleene's "strong logic of indeterminacy", as demonstrated on the Wikipedia page entitled, "Three-Valued Logic"--specifically in the section entitled "Kleene and

Re: [R] Identyfing rows with specific conditions

2017-05-21 Thread Bert Gunter
More clarification: Are your "tables" matrices or data frames? (If you don't know what this means, you need to spend a little time with a e.g. web tutorial to learn). Also, does Meal A Meal B order count? -- i.e. is Meal A = 2, Meal B = 15 the same as Meal A = 15 and Meal B = 2? This is

Re: [R] Identyfing rows with specific conditions

2017-05-21 Thread Bert Gunter
Clarification: Does each customer have the same number of meals or do they differ from customer to customer? If the latter, how are missing meals notated? Do they always occur at the (right) end or can they occur anywhere in the row? Presumably each customer ID can have many different meal code

Re: [R] How to extract text contexts after clustering.

2017-05-21 Thread Ismail SEZEN
1- PLEASE do read the posting guide http://www.R-project.org/posting-guide.html 2- PLEASE, first _read_ help for kmeans (?kmeans) function before using function. > On 22 May 2017, at 05:33, θ ” wrote: > > hi: > I need to extract the text contexts of top 1 group after

[R] How to extract text contexts after clustering.

2017-05-21 Thread θ ”
hi: I need to extract the text contexts of top 1 group after clustering. But I have no idea how to sort the cluster size then extract the contexts of top 1 clusters. here is my cluster code: > file <- read.csv("SiC CMP.csv", header = TRUE) > cluster_k<-length(unique(file$Main.IPC)) > cl <-

Re: [R] Somewhat obscure bug in R 3.4.0 building from source

2017-05-21 Thread Bert Gunter
... and whether or not Rich's suggestion resolves your difficulties, please google such issues in future; e.g. "report bugs R" brought up all sorts of info on R bug reporting. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into

Re: [R] Somewhat obscure bug in R 3.4.0 building from source

2017-05-21 Thread Rich Shepard
On Sun, 21 May 2017, Peter Carbonetto wrote: The error occurs only when I do "make clean" followed by "make" again; make works the first time. Peter, I suggest you use 'make distclean' rather than 'make clean.' There are subtle differences between the two, yet the former is more complete.

[R] Somewhat obscure bug in R 3.4.0 building from source

2017-05-21 Thread Peter Carbonetto
Hi, I uncovered a bug in installing R 3.4.0 from source in Linux, following the standard procedure (configure; make; make install). Is this an appropriate place to report this bug? If not, can you please direct me to the appropriate place? The error occurs only when I do "make clean" followed by

Re: [R] [FORGED] Logical Operators' inconsistent Behavior

2017-05-21 Thread Hadley Wickham
On Fri, May 19, 2017 at 6:38 AM, S Ellison wrote: >> TRUE & FALSE is FALSE but TRUE & TRUE is TRUE, so TRUE & NA could be >> either TRUE or FALSE and consequently is NA. >> >> OTOH FALSE & (anything) is FALSE so FALSE & NA is FALSE. >> >> As I said *think* about it; don't

Re: [R] [FORGED] Re: [FORGED] Logical Operators' inconsistent Behavior

2017-05-21 Thread Duncan Murdoch
On 20/05/2017 10:03 PM, Ramnik Bansal wrote: In the case of logical operations performed with an operand being a character type, the error is: "operations are possible only for numeric, logical or complex types" Now the display of this error message seems to be the OUTCOME of the fact that

Re: [R] modulus operator?

2017-05-21 Thread Peter Dalgaard
Or maybe Mod(), but please, Heidi, don't expect the rest of the world to guess your intentions like that... -pd > On 21 May 2017, at 10:27 , Jim Lemon wrote: > > Hi Heidi, > I think you are looking for the %% operator. See the Arithmetic help > page in the base package.

Re: [R] modulus operator?

2017-05-21 Thread Jim Lemon
Hi Heidi, I think you are looking for the %% operator. See the Arithmetic help page in the base package. Jim On Sun, May 21, 2017 at 10:28 AM, McGann, Heidi wrote: > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and

[R] Forecast using VAR model

2017-05-21 Thread Dhivya Narayanasamy
I am building a VAR model to forecast of bivariate timeseries. But it shows flat forecast. So I would like to use recursive window forecasting technique using VAR model. Will it give what i expect (Avoid flat forecast) ? or should i have to go with other package. > datax.zoo <- read.zoo(datax)>

[R] modulus operator?

2017-05-21 Thread McGann, Heidi
__ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible