Displaying 20 results from an estimated 9000 matches similar to: "packages using UTF-8 encoding"
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
2006 Mar 15
3
concatenating factor from list
Hi,
I've run into a ridiculous problem I can't find any solutions for in the
archives or help pages:
data(barley)
cutYield <- with(barley, by(yield, variety, cut, breaks = c(0, 30, 60, 90)))
As in this example, I'm using 'by' to return a factor for each level of
another factor. The problem is that 'by' returns a list of the factors,
and I need all these factors
2005 Nov 30
3
setting R_LIBS
Hello,
I'm adding a private library tree in my home directory by adding this to
my ~/.Renviron:
R_LIBS="~/R/library:${R_LIBS}"
so that once in R:
R> cat(Sys.getenv("R_LIBS"), "\n")
~/R/library:/usr/local/lib/R/site-library:/usr/lib/R/site-library:/usr/lib/R/library
Is this the best way to proceed?
Cheers,
--
Sebastian P. Luque
2005 Sep 20
3
annotating an axis in bwplot (lattice)
Hi,
I'd like to add, say, the sample size for every group in a bwplot as a
parenthetical annotation to the axis. Here's a sketch:
--8<---------------cut here---------------start------------->8---
require(Hmisc)
age <- sample(1:100, 1000, replace = TRUE)
sex <- gl(2, 8, 1000, c("Male", "Female"))
grp <- gl(4, 6, 1000, letters[1:4])
bwplot(grp ~ age |
2006 Mar 26
2
Bug#355949: run-parts vs. find
The changelog for version 1.2.43 says the reason for switching to
'find' from 'run-parts':
* Use 'find' instead of 'run-parts' to list the contents of
directories since 'run-parts' cannot handle filenames with periods.
Update control to depend on findutils.
It seems like not processing rule files with dots in them would be a
feaure, not a bug.
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
2005 Oct 04
1
pdf plotting of splom
Hi,
The following code produces a plot on X11:
splom(~iris[1:4], groups = Species, data = iris,
panel = panel.superpose,
key = list(title = "Three Varieties of Iris",
columns = 3,
points = list(pch = super.sym$pch[1:3],
col = super.sym$col[1:3]),
text = list(c("Setosa", "Versicolor", "Virginica"))))
However,
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
2005 Aug 02
1
cut.Date functionality for chron date/time objects
Hello,
I've encountered the need to cut some chron objects of the form:
R> mychron <- chron(sort(runif(10, 0, 10)))
R> mychron
[1] (01/01/70 16:36:20) (01/02/70 00:08:46) (01/03/70 16:54:49)
[4] (01/04/70 06:45:00) (01/07/70 06:21:24) (01/07/70 18:28:44)
[7] (01/08/70 00:47:05) (01/08/70 05:11:44) (01/10/70 01:07:53)
[10] (01/10/70 17:46:53)
into arbitrary (e.g. a given number
2006 Feb 18
1
reshaping result of by()
Hello,
I'm trying to build a frequency table for a vector, broken down by the
combination of factors. For further analyses, I need to have the result
arranged in a new data frame, with the upper limit of the histogram's
breaks, the per bin count, and the factors identifying each record. My
problem is including the latter:
---<---------------cut
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
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 ==
2006 Feb 21
2
indexing within panels in xyplot
Dear R-helpers,
I need to show a linear fit through a subset of the data within each
combination of levels of two factors. So I prepared an xyplot with
different panels for each level of one of the factors, and different
symbols within each panel for the levels of the second factor. My problem
is selecting the subset of each combination through which the line should
be fit for subsequent
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
2004 Apr 08
1
plot help
Hie!
I do not manage to make several plots on a same graph ( for example two
densities on the same graph )
thanks for the answer
Pierre Clauss
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Ce message et toutes les pi佽ces jointes (ci - apres le \"message\" )
sont 侀tablis a l'attention exclusive de ses destinataires et sont
strictement confidentiels. Si vous n'侁tes
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)
2006 Jun 01
3
Image corrupted on upload
Hi, I''m using the below method to copy/upload a file. The outcome is an
image with the proper dimensions but looks garbled and pixelated. I''m
baffled as to what''s going on.
What''s even weirder is this same function with the same image works for
my colleague. He is using OS/10 and I am using Windows Media Center.
Any ideas?
#
# destination is the
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
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 <-