[R] Strange error while passing string as an argument to the function in bnlearn package

2014-11-10 Thread Alexandr M
Hello everybody, I am working with the package bnlear, but, probably, error is caused not by the package itself. There is a function cpquery() to which I pass argument str2: str2="(lag1=='s')" prob.s = cpquery(fitted1, event=eval(parse(text="(M=='s')")),

Re: [R] Strange error while passing string as an argument to the function in bnlearn package

2014-11-10 Thread Alexandr M
inside the loop and they are sometimes quite long. -- Best regards, Alexandr On 10 November 2014 23:28, Marco Scutari wrote: > Hi Alexandr, > > On 10 November 2014 17:46, Alexandr M wrote: > > I am working with the package bnlear, but, probably, error is caused not > by > >

Re: [R] Strange error while passing string as an argument to the function in bnlearn package

2014-11-14 Thread Alexandr M
nk you! It's exactly what I needed. --- BR, Alexandr On 11 November 2014 23:33, Marco Scutari wrote: > Hi Alexandr, > > On 11 November 2014 00:10, Alexandr M wrote: > > Sorry that I formulated my question not very accurately. > > I form expressions/(logic condit

[R] Shewhart Control Charts for Time Series data (qcc package)

2012-04-09 Thread Alexandr M
Hello everybody! I am trying to apply qcc function to time series data. There is an example from documentation: ### library(qcc) data(pistonrings) attach(pistonrings) diameter <- qcc.groups(diameter, sample) qcc(diameter[1:25,], type="xbar") detach(pistonrings) ### So, we have 5 iteams at each