Displaying 20 results from an estimated 2000 matches similar to: "rbind.data.frame reacts on levels without factor (PR#9578)"
2007 Mar 29
0
(PR#9578) rbind.data.frame reacts on levels without
In your data frames, 'y' is a category and the following comment in the
code makes clear this is deliberate.
if( !is.null(levels(xj)) ) {
all.levs[[j]] <- levels(xj)
facCol[j] <- TRUE # turn categories into factors
} else facCol[j] <- is.factor(xj)
The behaviour is compatible with S apart from the comment in the R help
2006 May 18
1
R CMD check: checking examples: how to (not) pause execution
Hello all,
trying to prepare my first package for submission to CRAN
I am stumbling over the "checking examples" step
of R CMD check.
I have some examples that produce more than one plot.
I currently separate those plot calls by
readline("Press <Return> for a plot including a density plot")
or some such to have R wait before producing the next plot.
This works OK
2004 Mar 16
3
Terminology and canonical statistical user literature
Brian Ripley wrote (to somebody asking about "effect sizes"):
> ...
> Given that, I wonder if you are used to standard terminology.
Good point. But I think for many of us there is more behind that.
I personally belong to an (apparently fairly large) group of
R users who may be enthusiastic, but are statistical laymen
due to a lack of formal education in the area.
The
2006 May 18
1
R CMD check: "T used instead of TRUE"
Hello everybody,
I am just trying to put together my first own CRAN-able package.
I have completed the programming and my code works OK.
But now when I perform
R CMD check agsemisc_1.0-2.tar.gz
and R gets to the step
* checking examples ...
I receive the following error message:
> print(bwplot(Species~Sepal.Length, data=iris, panel=panel.bwstrip))
Error in rep(T, length(x)) : T used
2004 Aug 31
7
blockwise sums
I am looking for a function like
my.blockwisesum(vector, n)
that computes sums of disjoint subsequences of length n from vector
and can work with vector lengths that are not a multiple of n.
It should give me for instance
my.blockwisesum(1:10, 3) == c(6, 15, 24, 10)
Is there a builtin function that can do this?
One could do it by coercing the vector into a matrix of width n,
and then use
2006 Apr 21
1
plot.default 'ylim' error message is wrong (PR#8784)
Full_Name: Lutz Prechelt
Version: 2.2.1
OS: WinXP SP2
Submission from: (NULL) (130.133.8.114)
This command
plot(0, 0, xlim=c(3, 5), ylim=c(0, 10, 17))
should complain about 'ylim' (because it has three elements).
However, it does in fact (in my german error message at least)
complain about 'xlim' instead:
Fehler in plot.window(xlim, ylim, log, asp, ...) :
ung?ltiger
2006 May 18
1
Trellis equivalent of par(ask=TRUE)?
(was: AW: [Rd] R CMD check: checking examples: how to (not) pause
execution)
Paul, Brian,
> > I think the more usual way to solve this is to have the user set
> > par(ask=TRUE) is they want to be prompted.
thank you.
Looking back, 'par' would have been a likely candidate for looking.
One reason I did NOT look there is that I need the functionality
for print.trellis in
2004 Apr 28
1
Extracting numbers from somewhere within strings
Hello everybody,
I have a bunch of strings like this:
"IBM POWER4+ 1.9GHz"
"IBM RS64-III 500MHz"
"IBM RS64-IV 600 MHz"
"IBM RS64 IV 750MHz"
"Intel Itanium 2 Processor 6M 1.5GHz"
"Intel Itanium2 1 Ghz"
"Intel Itanium2 1.5GHz"
"Intel
2007 May 14
0
(PR#9666) 'aggregate' should preserve level ordering of
On Tue, 8 May 2007, prechelt at inf.fu-berlin.de wrote:
> Full_Name: Lutz Prechelt
> Version: 2.4.1
> OS: Windows XP
> Submission from: (NULL) (160.45.111.67)
>
>
> aggregate (from package stats) should preserve the
> ordering of levels of factors it works on and also their
> 'ordered' attribute if present.
> But it does not.
In fact it treats all grouping
2004 May 03
2
Lattice: finding out xlim within panel function
Dear Lattice bit-meddlers,
while within a panel function for xyplot, how can I
find out the values of (effectively) xlim and
ylim -- no matter whether they have been set
explicitly or chosen by Lattice itself?
I have just tried for an hour to find out,
with no success whatsoever.
I looked in Grid for something that would
return such data, but got lost.
I looked at tracebacks of panel calls,
2007 Mar 29
0
(PR#9589) 'union' does not handle factors while 'intersect'
This is not a bug, nor is the subject line true: both do accept
factors but what they do with factors is undocumented. From the help
(not 'man') page
Performs *set* union, intersection, (asymmetric!) difference,
equality and membership on two vectors.
^^^^^^^
so it is not said to work on factors. I disagree that what intersect()
for
2007 May 08
0
'aggregate' should preserve level ordering of factors (PR#9666)
Full_Name: Lutz Prechelt
Version: 2.4.1
OS: Windows XP
Submission from: (NULL) (160.45.111.67)
aggregate (from package stats) should preserve the
ordering of levels of factors it works on and also their
'ordered' attribute if present.
But it does not.
Here is an example:
ff =
1999 Aug 23
1
Strange 'Unimplemented feature in rep' error (PR#254)
I have a large computation that performs various bootstrap resampling
loops over pairs of samples using lapply().
After a few seconds it stops like this
> do.summarize.effects(compute.power=T)
...
Error: Unimplemented feature in rep
> .Traceback
[[1]]
[1] "rep(no, length = length(ans))"
[[2]]
[1] "ifelse(t.howto == \"n\", boot.result, l.meanboot.test(onew.x,
2007 Jan 15
1
Flickr.rb - displaying tags
Maybe I''m having a "slow day" but I can''t for the life of me figure out
how to print a photo''s tags using the flickr gem (flickr.rb). Consider
this:
<% @photos.each do |photo| %>
Tags: <%= debug(photo.tags) %>
<% end %>
...Gives the following output:
tag:
- authorname: gmacgregor
author: 62682519@N00
id: 4181224-280985155-130
2007 Jan 12
0
Minor logical bug in rbind.data.frame ?
When attempting to merge 3 data frames, one of which has fewer columns
than the others, rbind.data.frame correctly refuses to perform the bind.
However, the error message given is a bit obscure due to a logical
bug in the match.names() internal function to rbind.data.frame.
Illustration:
## Three data frames with same column variable names:
> foo <- data.frame(v1 = c('a',
2006 Feb 13
1
autocomplete input field name
Hi All,
I''m new to ruby on rails and I struggle with a problem in my first
application. I searched the forum (and ofcourse google) but I think it
is just an easy thing that nobody boughters to write down :)
I am building a kind of library application for (fysical) books and
e-books and later I want to add other functions like knowledge
management.
The problem: in the book show page
2006 Jun 09
2
Noob with Overwhelming Deployment Woes...
I''m doing some searching for deployment options, and I feel like I''m
getting buried in a lot of new technology and assumptions that I know
all that it''s dependent on. In the past I''ve done small things with PHP
where I just dump the app in a folder and everything works out of the
box.
I found that everyone is using Capistrano, which relies on Subversion
2004 Mar 31
11
Zero Index Origin?
I'm very new to R and utterly blown away by not only the
language but the unbelievable set of packages and the
documentation and the documentation standards and...
I was an early APL user and never lost my love for it and in
R I find most of the essential things I loved about APL
except for one thing. At this early stage of my learning I
can't yet determine if there is a way to
2019 Mar 01
0
Bug: as.matrix.data.frame() treats numeric vectors with "levels" attribute as factors
Hello,
I think I've found a bug in as.matrix.data.frame().? The function's
documentation says: "The method for data frames will return a character
matrix if there is only atomic columns and any
non-(numeric/logical/complex) column, applying as.vector to factors and
format to other non-character columns. Otherwise, the usual coercion
hierarchy (logical < integer < double
2007 Feb 07
2
manage R function and data dependencies like 'make'
Dear R-devels,
I am looking for a package (or some other infrastructure) for the
following situation:
I am doing a larger data evaluation.
I have several dozen data files and do not want to keep the persistent
data in the R workspace (for robustness reasons).
I have several dozen R files, some for reading and preprocessing data
files, others for doing plots or analyses.
I will make frequent