Displaying 20 results from an estimated 2000 matches similar to: "S4 and connection slot [Sec=Unclassified]"
2009 Jun 23
3
V2.9.0 changes [Sec=Unclassified]
Hi all,
Prefix: I am a frustrated Java coder in R.
I am coding a medium sized ecosystem modelling program in R. I have changed to using S4 objects and it has cost me an order of magnitude in execution speed over the functional model. I cannot afford this penalty and have found that it is the result of all the passing-by-value of objects.
I see that you can now safely inherit from
2010 Oct 04
2
Recursion error after upgrade to R_2.11.1 [Sec=Unclassified]
Hi all,
After an upgrade from R_2.10.1 to R_2.11.1 I am now getting the following error:
Error: evaluation nested too deeply: infinite recursion / options(expressions=)?
This occurs in the initialize method of S4 classes where I was initialising attributes eg:
.Object[['realtimeState']] <- list()
I can avoid this new error by altering the code to do:
.Object$realtimeState <-
2010 Oct 04
1
S4 class help pages [Sec=Unclassified]
Hi,
I am working on producing an R package containing mostly S4 classes and methods.
I have generated and filled out all the necessary .Rd files but find that once installed I am unable to access help pages for the classes using the ?package::classname-class syntax that is suggested when using the ?? apropos search. This lists my package classes and the class help pages. Instead, the
2009 Jun 02
1
S4 Objects [Sec=Unclassified]
I am new to R programming but have dived into a medium sized modelling software development project.
Having come from a Java OO background I have a couple of questions about S4 objects.
Is there a way to make S4 slots (and methods) private and hence force the use of accessor methods?
Is there a straight-forward way to implement pass-by-reference for method parameters?
I am currently
2009 May 05
0
S4 slot of type connection [Sec=Unclassified]
I am having trouble declaring a slot of type "connection" or "file" in which to store a file connection.
I get a warning message when class definition is loaded:
In .completeClassSlots(ClassDef, where) :
undefined slot classes in definition of "Element": datafileConn(class "file")
Can anyone suggest what type I should be using for the slot. Type
2010 Oct 13
1
Wierd nlm behaviour in 2.10.1 and 2.12.0 [Sec=Unclassified]
Hi all,
When upgrading to 2.11.1 recently I noticed different results being produced by my code.
After much digging I have finally narrowed it to a call to nlm().
This can be replicated by:
FixedRemovals<-1836180125888
AbStageInitial<-2223033830403
Rates<- 0.3102445
nlm(function(rootM,Abund,Loss,OtherM)
{(Loss-(rootM/(rootM+OtherM)*
(1-exp(-(rootM+OtherM)))*
2008 Mar 17
1
generalized linear mixed models with a beta distribution [Sec=Unclassified]
Craig A Faulhaber wrote:
>I am interested in using a generalized linear mixed model with data
> that best fits a beta distribution (i.e., the data is bounded between
> 0 and 1 but is not binomial).
..
>For clarification, here's what I'm trying to model:
>I have a beta-distributed response variable (y). I have a fixed-effect
>explanatory variable (treatment),
2018 Oct 03
2
Non-matching linkedid on CDR Records [SEC=UNCLASSIFIED]
Hi asterisk-users,
We have recently moved to the 13.x branch of Asterisk from 11.x, and we're trying to correlate CDR records from multiple-legs for billing purposes.
As part of this change we have added 'linkedid' to our CDR table schema in an attempt to join the multiple records into one billable record.
The call path can be simplified as (transport types in brackets):
SIP
2012 Mar 22
0
Disable AD checking per share in smb.conf [sec=unclassified]
Hi,
Is it possible to have non-authenticating shares on an server with security=ADS ?
I have a RHEL server, with Centrify Express, and joined to a domain, but I would
like to have a samba share that doesn't request a username/password for machines
not on the domain.
When I have a plain windows XP machine (not on the domain) attempt to connect, I
get asked for a username/password.
Is
2012 Apr 23
1
Disable AD checking per share in smb.conf [sec=unclassified]
Hi,
Is it possible to have non-authenticating shares on an server with security=ADS ?
I have a RHEL server, with Centrify Express, and joined to a domain, but I would
like to have a samba share that doesn't request a username/password for machines
not on the domain.
When I have a plain windows XP machine (not on the domain) attempt to connect, I
get asked for a username/password.
Is
2008 Aug 27
1
ifelse() fill order and recycling rules [Sec=Unclassified]
Hi all,
Using R v2.7.1, platform i386-pc-mingw32
Can someone please shed some light on the behaviour of ifelse() for me?
My intent is to calc relative proportions of z$b, at the same time
subsetting z$b based on z$a. I could attack the problem other ways
(suggestions welcome) but I am also intrigued by the _order_ in which
ifelse seems to assign values, and how recycling works. For instance,
2018 Oct 08
3
Non-matching linkedid on CDR Records [SEC=UNCLASSIFIED]
Hi all,
Just thought I'd update this thread in case anyone else is Googling trying to find out how to do this...
I found the solution to my problem to be to use the IAXVAR() function to pass the accountcode between the Asterisk boxen and update the CHANNEL(accountcode) with that variable.
Thanks to Richard @ Digium for the reply that clarified my misunderstanding.
Calum
On Wed, 2018-10-03
2009 May 12
1
Power function for ratio of lognormal means: two equally valid results? [SEC=Unclassified]
Hi All
This is a general stats problem that I am dealing with using R, so any help is greater appreciated.
I have two lognormal distributions with means M1 and M2.
If we have:
H0: log(M1/M2)=0
H1: log(M1/M2) !=0 equivalent to log(M1/M2)=log(1+P) where P<0 or P>0.
If we calculate the power for a value of P=0.1 or P=-0.1 (i.e. a 10% difference) and say assume SE{log(M1/M2)}=0.05, and
2005 May 17
3
locator() (PR#7873)
Full_Name: Sascha Frydman
Version: 2.1.0
OS: Windows XP
Submission from: (NULL) (147.66.131.10)
when Esc is pressed while a plot with locator running has the focus, R crashes.
eg.
plot(1)
locator(1)
I am running in SDI mode
2018 Mar 18
3
`@<-` modify its argument when slot is externalptr
Dear all,
I am confused about the inconsistent behaviors of `@<-` operator when
used in different ways. Consider the following example:
library(inline)
# Function to generate an externalptr object with random address
new_extptr <- cfunction(c(), '
SEXP val = PROTECT(ScalarLogical(1));
SEXP out = PROTECT(R_MakeExternalPtr(&val, R_NilValue, val));
UNPROTECT(2);
2005 Feb 24
4
r: functions
hi all
i have a function that uses two inputs, say xdata and ydata. An example
is the following,
simple1<-function(xdata,ydata)
{
ofit<-lm(ydata~xdata)
list(ofit)
}
say i use arbitray number for xdata and ydata such that
D =
x1 x2 y
1 1 10
2 6 6
3 10 7
x<-D[,1:2]
and
y<-D[,3]
if one uses these inputs and rund the program we get the following:
>simple(xdata=x,ydata=y)
2008 Sep 10
3
writing simple function through script
Hi all,
I try to write a simple function in a script. The script is as follows
yo<-function(Xdata)
{
n<-length(Xdata[,1])
Lgm<-nls(formula=LgmFormula,
data=Xdata,
start=list(a=1500,b=0.1),weights=Xdata$Qe)
return(Lgm)
}
After the execution of the script, when I call the function yo on data
called NC60.DATA I get an error.
#yo(NC60.DATA)
Erreur dans eval(expr, envir, enclos)
2012 Dec 27
2
Bootstrap
Hola, buenas tardes
estoy intentando hacer un bootstrap de un modelo, pero me da el siguiente
error:
"Error in FUN(newX[, i], ...) :
unused argument(s) (list(age = c(33, 47, 49, 56, 60, 64, 64, 66, 68, 69,
71, 71, 72, 73, 74, 75, 75, 76, 78, 81, 83, 83, 36, 43, 46, 47, 49, 49, 51,
51, 52, 52, 53, 54, 54, 54, 55, 56, 56, 57, 57, 58, 58, 58, 58, 59, 59, 60,
61, 62, 63, 64, 65, 65, 66, 66,
2011 Oct 05
2
AsOf join in R
Hi,
I tried to google for any solution for asof join operator in R. But I
couldn't find one. The asof join operator AsOf(A,B) merges 2 time
series by looking for latest available value of B prior to each time
point in A. For example,
A <- xts(c(10,15,20,25),
order.by=as.POSIXct(c("2011-09-01","2011-09-09","2011-09-10","2011-09-15"))
B <-
2008 Dec 18
1
using jackknife in linear models
Hi R-experts,
I want to use the jackknife function from the bootstrap package onto a
linear model.
I can't figure out how to do that. The manual says the following:
# To jackknife functions of more complex data structures,
# write theta so that its argument x
# is the set of observation numbers
# and simply pass as data to jackknife the vector 1,2,..n.
# For example, to jackknife
#