Displaying 20 results from an estimated 7000 matches similar to: "links in html documentation"
2006 Dec 30
3
wrapping mle()
Hi,
How can we set the environment for the minuslog function in mle()? The
call in this code fails because the "ll" function cannot find the object
'y'. Modifying from the example in ?mle:
library(stats4)
ll <- function(ymax=15, xhalf=6) {
-sum(stats::dpois(y, lambda=ymax/(1+x/xhalf), log=TRUE))
}
fit.mle <- function(FUN, x, y) {
loglik.fun <- match.fun(FUN)
2012 May 30
1
fractional seconds in POSIXct
Hi,
Using the following simple character vector representing a time series
with fractional seconds:
datetime <- c("20/09/2011 13:00:59.00", "20/09/2011 13:00:59.02",
"20/09/2011 13:00:59.04")
Conversion to POSIXct runs into problems; the second element is not
interpreted correctly:
---<--------------------cut
2011 May 25
1
L-BFGS-B and parscale in optim()
Hi,
When using method L-BFGS-B along with a parscale argument, should the
lower and upper bounds provided be on the scaled or unscaled values?
Thanks.
Cheers,
--
Seb
2007 Jun 27
1
error message from lmer
Hi,
I've begun to use the lme4 package, rather than nlme, for more flexibility
during modelling, and running the examples in lmer I receive this error
message:
---<---------------cut here---------------start-------------->---
R> (fm1 <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy))
Error in printMer(object) : no slot of name "status" for this object of class
2020 May 29
1
HTML help files missing for some packages
After a clean install of R 4.0.0 (R-base only) on Mint 19.3, the
directory /usr/lib/R/library/base/html is empty. However, the directory
/usr/lib/R/library/boot/html contains files 00Index.html and R.css.
Correspondingly, the command help(package="base", help_type="html")
produces the text "No package index found for package base". The same
occurs when clicking
2007 Apr 23
2
summary and min max
Hi,
I came across a case where there's a discrepancy between minimum and
maximum values reported by 'summary' and the 'min' and 'max' functions:
---<---------------cut here---------------start-------------->---
R> str(tt)
num [1:1397] 1952 1970 1976 1967 1946 ...
R> summary(tt)
Min. 1st Qu. Median Mean 3rd Qu. Max.
1920 1960 1970
2006 Sep 26
3
standardization of slot access
Hi,
I'm usually confused about when to use 'slot' or '@'. I've frequently
read that it's always preferable to use accessor functions, so I would
think the '@' operator should be avoided. However, ?slot contains the
following advise:
"Generally, the only reason to use the functional form rather than the
simpler operator is _because_ the slot name has to
2006 Sep 17
2
histogram frequency weighing
Fellow R-helpers,
Suppose we create a histogram as follows (although it could be any vector
with zeroes in it):
R> lenh <- hist(iris$Sepal.Length, br=seq(4, 8, 0.05))
R> lenh$counts
[1] 0 0 0 0 0 1 0 3 0 1 0 4 0 2 0 5 0 6 0 10 0 9 0 4 0
[26] 1 0 6 0 7 0 6 0 8 0 7 0 3 0 6 0 6 0 4 0 9 0 7 0 5
[51] 0 2 0 8 0 3 0 4 0 1 0 1 0 3
2010 Aug 18
2
'panel.smooth' error
Hi,
The following call:
xyplot(incidence ~ year, melanoma, panel=panel.smooth)
produces a blank plot region with an error message:
Error using packet 1
plot.new has not been called yet
> sessionInfo()
R version 2.11.1 (2010-05-31)
x86_64-pc-linux-gnu
locale:
[1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C LC_TIME=en_CA.UTF-8 LC_COLLATE=en_CA.UTF-8 LC_MONETARY=C
2006 Jul 07
2
dotplot (lattice) with panel.segments and groups
Hi,
The following produces almost exactly what I needed. The problems are
that the 'panel.dotplot' call (commented) generates the error 'Error in
NextMethod("[") : argument "subscripts" is missing, with no default'. The
other problem is that the colors alternate between the levels of the 'site'
variable, rather than 'year'.
barley$yield2
2010 May 25
2
segplot (latticeExtra)
Hi,
I'm having a bit of trouble with 'scales="free"' in the segplot()
function of latticeExtra. Say we need panels for each year, showing
only those counties that are represented in each one:
---<--------------------cut here---------------start------------------->---
library(latticeExtra)
data(USCancerRates)
uscr.w <- subset(USCancerRates, state ==
2010 Apr 23
1
segfault with format.POSIXct()
Hi,
I posted in R-devel, thinking it might be a general R problem, but Uwe
cannot reproduce it in his GNU/Linux distro, with the same R version.
So I'm posting here to ask whether Debian R users are having this
problem.
I'm getting a segmentation fault as follows:
---<--------------------cut here---------------start------------------->---
R> begt <-
2006 Sep 18
1
non linear modelling with nls: starting values
Hi,
I'm trying to fit the following model to data using 'nls':
y = alpha_1 * beta_1 * exp(-beta_1 * x) +
alpha_2 * beta_2 * exp(-beta_2 * x)
and the call I've been using is:
nls(y ~ alpha_1 * beta_1 * exp(-beta_1 * x) +
alpha_2 * beta_2 * exp(-beta_2 * x),
start=list(alpha_1=4, alpha_2=2, beta_1=3.5, beta_2=2.5),
trace=TRUE, control=nls.control(maxiter =
2008 Jan 23
1
crossbuilding packages with mingw32
Hi,
Does anybody have experience building windows packages in Debian? I
think the mingw32 package is the ticket for it. In the past, I've done
this using the procedure on the R News article (Building Microsoft
Windows versions of R and R packages under Intel Linux), but it seems it
should be possible with mingw32 directly. Any tips on what to read?
Thanks.
Cheers,
--
Seb
2006 Oct 27
2
POSIXct time zone and daylight savings issues
Hello,
Suppose we need a function that takes a POSIXct object and need to
calculate the time difference between it and GMT time:
gmtDiff <- function(time) {
time.gmt <- as.POSIXct(format(time, tz="GMT"))
time.plt <- as.POSIXlt(time)
dlstime <- ifelse(time.plt$isdst > 0, 1, 0)
timezone <- as.numeric(difftime(time, time.gmt, units="hours"))
2016 Feb 06
1
building R Devel --enable-R-shlib
On Fri, 5 Feb 2016 06:29:46 -0600,
Dirk Eddelbuettel <edd at debian.org> wrote:
> On 4 February 2016 at 22:56, Sebastian P. Luque wrote:
>> Hello,
>>
>> It has been a while since my last R Devel build, and now I'm running
>> into an issue I'm not sure how to isolate. After updating to the
>> latest SVN sources, and using:
>>
>>
2008 Apr 28
0
method dispatch conflict?
Hi,
I vaguely recall this was discussed in the past, but I cannot remember
the context. The code below shows the problem:
---<---------------cut here---------------start-------------->---
R> library(stats4)
R> library(lme4)
Loading required package: Matrix
Attaching package: 'Matrix'
The following object(s) are masked from package:stats :
xtabs
2012 Jul 30
1
confusion over S3/S4 importing
Can anyone help me figure out the right way to import a method that is
defined as S3 in one package and S4 in another?
Specifically:
profile() is defined as an S3 method in the stats package:
function (fitted, ...)
UseMethod("profile")
<bytecode: 0xa4cd6e8>
<environment: namespace:stats>
In stats4 it is defined as an S4 method:
stats4:::profile
standardGeneric for
2010 Apr 09
2
problems loading blas with R 2.11.0~20100402-1
Hi,
Since upgrading to version 2.11.0~20100402-1, starting R fails with:
/usr/lib64/R/bin/exec/R: error while loading shared libraries: libblas.so.3gf: cannot open shared object file: No such file or directory
Is this occurring to others on sid?
--
Seb
2006 Oct 11
2
pinning R packages to unstable?
Dear Debian R users,
This is more of an apt question rather than R. I have a testing Debian
system, but would like to use the unstable packages for R, *without* using
the -t flag in apt-get. I think this is done by using a 'pin' rule in
/etc/apt/apt.conf, but don't understand how this should be done. Can
somebody provide an example please?
Cheers,
--
Seb