Hello Everyone,
Before reporting decided to post here first:
tt - structure(c(1254238817, 1254238859, 1254238969, 1254239080), class =
c(POSIXt,
POSIXct),
tzone = )
cut.POSIXt(tt, 2)
#Error in `levels-.factor`(`*tmp*`, value =
On Fri, 11 Sep 2009 18:56:36 +0200, Gabor Grothendieck
ggrothendi...@gmail.com wrote:
in the devel version. If that does not help let me know offline
and I will try to help you.
Thanks Gabor,
I solved the problem.
Here is the code in case somebody else wants to have full completions for
Hello everyone,
I am trying to implement completion for proto objects. Proto extends
environment in a hierarchical way. Thus completion should list all the
names in all it's parent environments.
For normal classes defining names.class would do the job, but completion
for environment is
tried to modify utils:::specialCompletions directly, did not
wok either - it's something wrong with ls.proto above :(.
On Fri, Sep 11, 2009 at 10:02 AM, Vitalie S. vitosm...@rambler.ru
wrote:
Hello everyone,
I am trying to implement completion for proto objects. Proto extends
environment
On Tue, 01 Sep 2009 10:47:36 +0200, Corrado ct...@york.ac.uk wrote:
Thanks Duncan, Spencer,
To clarify, the situation is:
1) I have no reasons to choose S3 on S4 or vice versa, or any other
coding
convention
2) Our group has not done any OO developing in R and I would be the
first, so I
On Mon, 31 Aug 2009 12:25:38 +0200, Jim Lemon j...@bitwrit.com.au wrote:
Liviu Andronic wrote:
Could someone give a brief and subjective overview of ESS. I notice
that many people use it, and many describe it as the tool for the
power user. As far as I'm concerned, I've once again looked at
On Fri, 28 Aug 2009 16:40:53 +0200, Kevin Wright kw.s...@gmail.com wrote:
On Fri, Aug 28, 2009 at 8:22 AM, Ted Harding
ted.hard...@manchester.ac.ukwrote:
On 28-Aug-09 12:59:24, Esmail wrote:
Perhaps most of you have already seen this?
Hello Uwe,
Just a related question, OpenBugs is using C and T for Censoring and
Truncation. But this does not seem to work with BRugs.
I am using this document
http://mathstat.helsinki.fi/openbugs/Manuals/ModelSpecification.html#TheBUGSLanguageStochasticNodes
Thanks,
Vitalie.
On Tue, 25
see ?[
For '['-indexing only: 'i, j, ...' can be logical vectors,
indicating elements/slices to select. Such vectors are
recycled if necessary to match the corresponding extent. 'i,
j, ...' can also be negative integers, indicating
On Tue, 25 Aug 2009 12:13:21 +0200, Uwe Ligges
lig...@statistik.tu-dortmund.de wrote:
Vitalie S. wrote:
Hello Uwe,
Just a related question, OpenBugs is using C and T for Censoring and
Truncation. But this does not seem to work with BRugs.
I am using this document
http
This is a BUGS error message that indeed tells you that BUGS cannot
truncate that density - not related to R at all.
Best,
Uwe Ligges
Yes, indeed, that does not work in OpenBugs as well. Means that
documentation of Open bugs is incorrect (they are using dnorm there).
Also I works
On Fri, 21 Aug 2009 22:38:09 +0200, baptiste auguie
baptiste.aug...@googlemail.com wrote:
Try this,
mystr -c==1
subset(foo, eval(parse(text = mystr)) )
library(fortunes)
fortune(parse) # try several times
# I prefer this, but there is probably a better way
mycond- quote(c==1)
subset(foo,
On Thu, 20 Aug 2009 02:36:38 +0200, kathie kathryn.lord2...@gmail.com
wrote:
Dear R users,
I try to compute this summation,
http://www.nabble.com/file/p25054272/dd.jpg
where
f(y|x) = Negative Binomial(y, mu=exp(x' beta), size=1/alp)
http://www.nabble.com/file/p25054272/aa.jpg
On Mon, 17 Aug 2009 12:24:28 +0200, deanj2k dl...@le.ac.uk wrote:
Hello.
I have a vector and within that vector is one expression. When I display
this vector it comes up as
expression(NA_character_, NA_character_, Null Effect, Pooled effect,
NA_character_, NA_character_, NA_character_,
On Mon, 17 Aug 2009 16:49:53 +0200, Inchallah Yarab
inchallahya...@yahoo.fr wrote:
Hi,
i export data from an csv file like this :
Data - read.csv2(c:/Art.csv,sep=,) # import data into R
Data - Data [1:5,1:5]# extracting the first 5 rows and columns
Data
Policy.Number AXA.Entity Country
On Sat, 15 Aug 2009 09:20:04 +0200, Dieter Menne
dieter.me...@menne-biomed.de wrote:
sandsky wrote:
I have a data set (csv); e.g.,
ID samp1 samp2 samp3 samp4
G1 2332 12 87
G2 8545 49 76
G3 1246 39 28
G4 73
Hi,
RG Hi,
RG I'm wondering if the following behaviour is normal:
RG setClass('A', representation(number='numeric'), RG
validity=function(object){ RG if( obj...@number -1 )
return(Invalid number); TRUE})
[1] A
RG a - new('A')
RG a
An object of class
On Thu, 13 Aug 2009 15:11:03 +0200, Michael Knudsen micknud...@gmail.com
wrote:
On Thu, Aug 13, 2009 at 11:35 AM, Lina Rusyteliner...@yahoo.co.uk
wrote:
Hi Lina,
What function can I use for matrices addition? I couldn’t find any
information about it in the manual or in the internet.
You have to understand the difference between the lexical scope of a
function (which gives the search path for variables) and call stack (which
is a path of function calls). This gives an enormous flexibility in
programming, perhaps at the cost of confusing some people.
See
Completion should be automatic if you define names() to return the valid
names.
Thank you Deepayan, that works beautifully. I wonder though; names
function for environment objects always returns NULL, but completion still
works. Looks tricky.
Vitalie.
--
Dear UseRs,
I declared a `$` method for a S4 class. Can I have ab automatic completion
for this operator in R? Lists and environment objects provide this feature
by default, but my object is an extension of function class which does
not have subseting defined. How to be?
Thanks for any
Hello,
Is there a way to access function's slots from inside the function? I
want to make functions slot dependent without recurring to generic
function mechanism.
Probably this goes a bit against R philosophy, but otherwise I don't
really see the use of extending functions in R.
Setting methods for groups (compare in this case) does not work
properly. Once one method is set ,redefining it or even removing does
not change the behavior:
Can anyone suggest how to refresh methods table for some particular
generic? (in the above case Compare group generic).
For now
Dear UseRs,
Setting methods for groups (compare in this case) does not work
properly. Once one method is set ,redefining it or even removing does not
change the behavior:
setClass(foo
,representation(range=numeric)
)
#[1] foo
setMethod(Compare,c(e1=ANY,e2=foo),
setMethod(initialize,test2,
function(.Object,...){
.Object-callNextMethod(.Object,...)
validity is checked in the preceeding line
.obj...@b-.obj...@a ## here b is initialized ##
.Object
})
new(test2)
Error in if
Dear UseRs,
A simple class inheritance example:
setClass(test,representation(a=numeric))
setMethod(initialize,test,
function(.Object,x,...){
print(Initialization!!!)
callNextMethod(.Object,a=x,...)
})
new(test,x=23)
[1] Initialization!!!
An
Dear UseRs,
Does anyone know when exactly the validity is checked in S4? Documentation is silent:(.
Here is a small example:
setClass(test1,representation(a=numeric))
setMethod(initialize,test1,
function(.Object,...){
a-runif(1) ## here slot a is initialized ##
On Wed, 17 Dec 2008 20:07:08 +0100, GOUACHE David
d.goua...@arvalisinstitutduvegetal.fr wrote:
argument which I will pass on to subset() somewhere inside my function.
I would use the example of .() function from plyr package in this case:
.-function (...){
28 matches
Mail list logo