Displaying 20 results from an estimated 100 matches similar to: "Depot for S3 to S4 generics (as in stats4)?"
2016 Feb 29
3
Sys.readlink (on BSD vs Linux)
Hello,
sorry for not being clear enough.
My problem is represented with the following code, running on OSX:
mkdir ~/test
ln -s ~/test ~/testlink
touch ~/test/foo
Rscript -e 'Sys.readlink(c("~/test/foo", "~/testlink/foo")); normalizePath(c("~/test/foo","~/testlink/foo"))'
I expected `Sys.readlink` to show the same output as `normalizePath`.
Also,
2005 Jan 16
3
Can I use....
Hi,
Is it possible to create a boot floppy that I can use to start iso's
that use say syslinux ?
Dave T.
2016 Feb 29
2
Sys.readlink (on BSD vs Linux)
Hello together,
the function `Sys.readlink` uses the system's readlink command to resolve symlink paths. On OSX/BSD the command has a different meaning than on Linux [1].
There exists the tool 'realpath', which seems suitable for the task, at least applied at the command line level [2]. It is used in `normalizePath`.
I suggest (at least the latter) to
* use realpath instead readlink
2014 Dec 05
2
Use of tools:::httpdPort in a package for CRAN.
Hello,
I wrote a function to show the help/index page of a package in a
browser (and want to include this in an update for a CRAN package). I
asked in R-help how to obtain the 00Index.html file, Duncan Murdoch
suggested to inspect (see
http://r.789695.n4.nabble.com/Obtain-00Index-html-tt4697661.html)
tools:::httpd (thank you therefore!). So I came up with:
help.index <- function (pkg,
2008 Feb 12
1
Namespace/method oddity
I stumbled on the following:
> library(stats4)
> example(mle)
> confint.default(fit2)
Error in UseMethod("vcov") : no applicable method for "vcov"
In addition: Warning message:
In object$coefficients :
$ operator not defined for this S4 class, returning NULL
> vcov(fit2)
lymax lxhalf
lymax 0.02857612 -0.04870231
lxhalf -0.04870231 0.11457338
2005 Jan 07
3
Isolinux
Hi,
I am trying to boot a liveCD thats on my hard disc ...is there a way of
doing this using lilo ?
reason well rather than keep burning to CD then testing I want to be
able to make changes then test by booting to liveCD....
Thanks in advance
Dave T..
2005 Jan 20
1
Usb Flash Drive Booting ...
Hi,
Does anyone know of a good guide to installing distros to usb flash
drives ....?
I read this one but its making much sense
http://www.damnsmalllinux.org/talk/node/86
Do I need to change drives in this manner for it to work ?
Dave T.
2005 Jan 14
1
chroot....
Hi,
I can get into basic shell (from linuxrc) but now I want to boot main
system ...
ie chroot into untar system & run from there ...
but when I run /sbin/init 3 I get kernel panic
wondered if /dev was set up .. if not how do I get it working ...
sorry to so vague but its diffcult to describe what I want to do......
so to sum up I want to go from initrd (linuxrc) to log into console of
2014 Sep 03
1
'library(ggplot2)' R CMD check WARNING in vignette R code
Hi,
can I claim the warning that occurs (at R CMD check --as-cran) when I
use 'library(ggplot2)' in executed vignette code as SPURIOUS (as
mentioned in the CRAN policies at section 'Submission') and (since it
is the only warning/error) get my package submission accepted? Has
anybody experience with that? Otherwise, is there a workaround to
evaluate this code (and calls to
2005 Jan 11
4
Problems with poor mans install
Hi,
I am trying to figure out a poor mans install ... I want to be able to
boot CD iso thats on my hard disc ..
There is an option to install via hard drive .. but I keep getting
VFAT16 files system errors ..
I know where copied iso image is ... I can boot kernel but linuxrc will
not start LiveCD ...
Maybe I could rewrite linuxrc to allow this but as it works from ram I
am finding hard to
2008 Jan 31
2
Pb with lapply()
Hi,
If needed, lapply() tries to convert its first argument into a list
before it starts doing something with it:
> lapply
function (X, FUN, ...)
{
FUN <- match.fun(FUN)
if (!is.vector(X) || is.object(X))
X <- as.list(X)
.Internal(lapply(X, FUN))
}
But in practice, things don't always seem to "work" as suggested by
this code (at least to the
2009 Oct 06
2
mle from stats4
I am using mle as a wrapper from optim( ). How would I extract the
convergence code, to know that optim( ) converged properly?
Thanks,
Stephen Collins, MPP | Analyst
Global Strategy | Aon Benfield
[[alternative HTML version deleted]]
2006 Oct 24
2
Installing stats4 package
Hi,
I wantto use 'mle' function in R on linux. As I see its been integrated
into the stats4 package. Am I correct ? If yes, Can anyone suggest how to
install the stats4 package to be able to run 'mle' function in R on linux ?
Otherwise how to sort out this problem ?
Thanks
Himanshu
[[alternative HTML version deleted]]
2018 Jan 12
0
Help with packages (methods, stats, stats4)
hello ,
i am so sorry , i figure it out.
im sending this msj to the moderator to stop the approval of the mail .
have a good day.
2018-01-12 15:42 GMT+00:00 imane hajar <imane.chafiki.fst at gmail.com>:
> hello,
> Can you please give me a hand with this problem,well i can't install
> these packages:
> - stats
> - methods
> - stats4
>
> when i tried the
2008 Dec 11
1
help with predict in stats4
Hi,
We're using stats4 for a logistic regression. The code is
chdreg.logit2 <- glm(chd ~ age + sex, family = binomial)
summary(chdreg.logit2)
oddsratios <- coef(chdreg.logit2)
exp(oddsratios)
# Calculate model predicted values
pred <- predict(chdreg.logit2,type="response")
The glm part runs fine, and up to now so has the predict function.
However, now we're
2009 Feb 02
0
Using Information from the Stats4 package in base envir
Hi. Thank you very much in advance for your help.
I have generated data from two simple linear models and used k-means
clustering (stats4) to identify two clusters in the generated data.
Next, I would like to do simple linear regression for each separate
cluster. I can do this if I first use the cluster labels to define
two separate data frames with the subset function.
However, I would
2009 Oct 07
1
2 questions about mle() /optim() function in stats4
Dear All,
There are two things about mle() that I wasn't so sure.
1) can mle() handle vector based parameter? say
ll<-function(theta=rep(1,20)){..............}
I tried such function, it worked for "optim" but not for "mle".
2) is there a general suggestion for the maximum number of parameters
allowed to use in mle() or optim()?
Thank you.
Regards,
MJO
2011 Aug 03
0
confint() in stats4 package
Hi there,
I had a problem when I hoped to get confidence intervals for the
parameters I got using mle() of stats4 package. This problem would not
appear if ``fixed'' option was not used. The following mini-example will
demo the problem:
x <- c(100, 56, 32, 18, 10, 1)
r <- c(18, 17, 10, 6, 4, 3)
n <- c(18, 22, 17, 21, 23, 20)
loglik.1 <- function(alpha, beta, c) {
x
2018 Jan 12
0
Help with packages (methods, stats, stats4)
1. Unless there is a good reason not to, please always cc the list. As you
note, I may misunderstand or just be too stupid, so you increase your
chance of getting a good answer by ccing them, which I have done here
2. It looks like you need to install the multcomp package. Have you?
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
2007 Aug 13
1
[Fwd: behavior of L-BFGS-B with trivial function triggers bug in stats4::mle]
I sent this in first on 30 July. Now that UseR! is over I'm trying again
(slightly extended version from last time).
With R 2.5.1 or R 2.6.0 (2007-08-04 r42421)
"L-BFGS-B" behaves differently from all of the
other optim() methods, which return the value of the function
when they are given a trivial function (i.e., one with no
variable arguments) to optimize. This is not
a bug in