Displaying 20 results from an estimated 1000 matches similar to: "Huge performance difference between implicit and explicit print"
2016 Apr 14
2
Previously extended schema not working in 4.4.0
On Thu, 2016-04-14 at 18:07 +0100, Jonathan Hunter wrote:
> On 14 April 2016 at 13:37, Jonathan Hunter <jmhunter1 at gmail.com>
> wrote:
>
> > # samba-tool dbcheck --cross-ncs
> > Checking 4079 objects
> > MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x00290001
> > MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x0029000a
> >
2016 Apr 14
2
Previously extended schema not working in 4.4.0
Thank you, Andrew - I hadn't done so. (In a good way, I haven't yet had
problems with samba that have caused me to delve quite so deeply into the
DB :) so I'm not as familiar with the range of tools as I could be, sorry!)
This has flagged up quite a few errors, all along the lines of:
# samba-tool dbcheck --cross-ncs
Checking 4079 objects
MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk:
2010 Nov 17
2
Reference classes: accessor functions via 'getRefClass(...)$accessors(...)'
Hi there,
I''d like to choose between an "static" and "dynamic" access of a reference
class field, say ''a''.
myObj <- getRefClass("Blabla")$new()
Static: myObj$a
Dynamic: myObj$a.get() where the function retrieves the data
from a database (or some other location), stores it to a buffer and
2009 Jan 02
1
"registering" a generic method for a class
Sorry in advance if this is too simple a question, but I'm stuck with
some odd behavior and I can't find the text to rid myself of this
(admittedly somewhat trivial) problem. Note that I've done generic
programming with S3 "objects" in the past, but I've never really
dabbled in creating S4 objects until now.
So, I've created a new S4 class, call it
2011 Dec 03
2
Help! Big problem when using "browser()" to do R debugging?
Hi all,
Could you please help me?
I am having the following weird problem when debugging R programs
using "browser()":
In my function, I've inserted a "browser()" in front of Step 1. My
function has 3 steps and at the end of each step, it will print out
the message "Step i is done"...
However, after I hit <ENTER> when the program stopped before Step 1
2008 Feb 23
1
Set without argument
Hi the list,
I am defining S4 objet. Is it possbile to define a method that change
the slot of an object without using <- ?
My object contain a numeric and a matrix. At some point, I would like to
impute the missing value in the matrix. So I would like to use something
like :
-----------------
setClass("MyObj",representation(time="numeric",traj="matrix"))
a
2009 Sep 02
4
diff of two timestamps
Hi all,
I have the following problem: I have a csv-file consisting of timestamp
values (no dates), e.g.:
Timestamp1;Timestamp2;
05:24:43;05:25:05;
15:47:02;15:47:22;
18:36:05;18:36:24;
15:21:24;15:22:04;
I need a vector with the difference of the two timestamps, so I read the
data with the read.csv-function:
myObj <- read.csv("file.csv",header=TRUE,sep=";").
I have then
2005 Dec 07
1
Dots argument in apply method
Hello everyone,
I'm working on a package using S4 classes and methods and I ran into the
following "problem" when I tried to create an "apply" method for objects
of one of my new classes. I've found a way around the problem but I
wonder if I did not paint myself into the corner. I'd like your opinion
about that.
So I have an object "myObj" of class
2016 Apr 15
2
Previously extended schema not working in 4.4.0
On Fri, 2016-04-15 at 00:32 +0100, Jonathan Hunter wrote:
> Thank you Andrew, really appreciated.
>
> I have now run 'samba-tool dbcheck --cross-ncs --fix' and it has
> successfully fixed some errors; there were 110 previously, however
> there are still 69 remaining after a second pass of dbcheck --fix.
>
> The remaining errors seem to be mainly of this form:
>
2005 Jun 02
1
showMethods doubt
Hi,
I'm developing in S4 and I wanted to see the methods for a specific
class using showMethods but I didn't succed. Can someone help ? See the
example below.
setClass("myclass",
representation(
name ="character"
)
)
setGeneric("mymeth", function(obj, ...){
standardGeneric("mymeth")
}
)
setMethod("mymeth",
2004 Feb 20
2
passing object names in a vector to save?
Hi!
Like to write quite a lot (ca 100) of objects from my envirovment with save.
The names of the objects are in a list nam.
nam<-dir()
nam<-grep("E",nam,value=T)
length(nam)
20
for(x in nam)
{
#reads the objects and assigns the names.
assign(x,simFromEmboss(Simmatrix(),x))
nnam<-paste(x,".rda",sep="")
print(nnam)
save(x,file=nnam)
}
I knew that
2016 Apr 14
0
Previously extended schema not working in 4.4.0
Thank you Andrew, really appreciated.
I have now run 'samba-tool dbcheck --cross-ncs --fix' and it has
successfully fixed some errors; there were 110 previously, however there
are still 69 remaining after a second pass of dbcheck --fix.
The remaining errors seem to be mainly of this form:
ERROR: duplicate attributeID values for myattrib in replPropertyMetaData on
2006 Mar 11
2
how do i retrieve a newly created id
in my code i''m calling save on an object. The id gets created as the object
is persisted. How can i retrieve that newly created id? I guess I could
query the table again using the other attributes of the object but is there
another way?
thanks in advance.
larry
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2016 Apr 14
0
Previously extended schema not working in 4.4.0
On 14 April 2016 at 13:37, Jonathan Hunter <jmhunter1 at gmail.com> wrote:
> # samba-tool dbcheck --cross-ncs
> Checking 4079 objects
> MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x00290001
> MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x0029000a
> MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x00290004
> MYOBJ=value,OU=myou,DC=mydomain,DC=org,DC=uk: 0x0009030e
>
2006 Mar 07
3
Making an S3 object act like a data.frame
"[.ggobiDataset" <- function(x, ..., drop=FALSE) {
x <- as.data.frame(x)
NextMethod("[", x)
}
"[[.ggobiDataset" <- function(x, ..., drop=FALSE) {
x <- as.data.frame(x)
NextMethod("[[", x)
}
"$.ggobiDataset" <- function(x, ..., drop=FALSE) {
x <- as.data.frame(x)
NextMethod("$", x)
}
> class(x)
[1]
2008 Jan 15
0
Help with the generic function "["
Hello Everyone:
I'm hoping to get some suggestions on this problem i'm having with
subsetting on an R object i've created. I would really appreciate any advice.
I've created this simple S3 class:
>str(ans)
Class 'myObj' atomic [1:45000] 0.0428 0.0423 0.0554 0.0338 0.0345 ...
..- attr(*, "Size")= int 10
..- attr(*, "Region")= chr
2004 Nov 06
3
how to read this matrix into R
the following the the lower.tri matrix in a file named luxry.car
and i want to read it in R as a lower.tri matrix.how can i do?
i have try to use help.search("read"),but no result what i want.
1.000
0.591 1.000
0.356 0.350 1.000
2009 Mar 31
1
as.data.frame peculiarities
The documentation of as.data.frame is not explicit about how it generates
column names for the simple vector case, but it seems to use the character
form of the quoted argument, e.g.
names(as.data.frame(1:3))
[1] "1:3"
But there is a strange case:
names(as.data.frame(c("a")))
[1] "if (stringsAsFactors) factor(x) else x"
I feel fairly comfortable calling this a
2007 Mar 30
2
ANOVA and confidence intervals plot
Dear *,
I would like to obtain for each factor of my anova model the
"response variable vs factor" plot with means and 95% Tukey HSD
intervals.
I would appreciate any information on how to do that.
Cheers
--------------------------------------------------------------------
Max MANFRIN Tel.: +32 (0)2 650 3168
IRIDIA - CoDE, CP 194/6
2018 Aug 09
3
WishList: Remove Generic Arguments
I apologize if this issue has been raised before.
I really like object oriented S3 programming.
However, there's one feature of object oriented S3 programming that I don't
like.
Generic functions can have arguments other than dots.
Lets say you have an R package with something like:
print.myfunction (f, ...)
{ dosomething (f, ...)
}
Noting that I use function objects a lot.
R CMD