Displaying 20 results from an estimated 20000 matches similar to: "'merge' function: behavior w.r.t. NAs in the key column"
2008 Apr 06
0
manual 'Writing R Extensions': bug in example
Hi,
I would like to report a small bug in one of the code examples given in
the 'Writing R extensions' manual. Section 5.9.2 ("Calling .External")
defines the function "showArgs" in order to demonstrate how to access in
C the pair-listed arguments passed by .External. The function aims at
printing echoing all passed arguments to the screen but only prints
every
2008 Mar 31
1
(PR#11054) "Writing R Extensions": bad example with CAR
Dear Prof Ripley,
Prof Brian Ripley wrote:
> But it is not taken 'verbatim from src/main/print.c' (at least not in
> that version of R), and the code is not run with USE_RINTERNALS defined
> when write-barrier checking is enabled.
>
> The example has been updated to match the current code in 2.7.0 alpha.
I just assumed that it is copied verbatim without checking because
2009 Apr 06
1
Possible bug: How does libR.so find RHOME?
Hi
While installing RPy2, I had curious problems which, if I traced them
back correctly, have their root in the way that libR.so find the R
installation directory. I wonder if this might be a subtle bug that only
causes problems when one has several versions of R on one system but
then can be very annoying and cause very strange behaviour.
It seems to me that libR.so asks the Unix shell to
2008 Apr 06
1
dots and substitute
Hi,
is there an elegant way to use 'substitute' with '...' arguments?
My first try was this:
> f1 <- function(...) substitute(...)
> f1( 2+7, "foo", 3+5 )
2 + 7
As you can see, substitute acts only on the first argument. So I tried
> f2 <- function(...) substitute(list(...))
> f2( 2+7, "foo", 3+5 )
list(2 + 7, "foo", 3 + 5)
2008 Jul 17
2
fastICA
Hi everyone
It looks like repeated runs of fastICA produce quite significantly different
mixing matrices (not only in terms of sign and row order). I'm not a
specialist, so would appreciate any advice on whether this should really be
the case:
> res3 =
> fastICA(af[,2:20],4,alg.typ="parallel",fun="logcosh",alpha=1,method="C",row.norm=TRUE)
colstandard
>
2009 Jun 02
0
allEffects() with lm
Dear John Fox and everyone,
I have been using the effects library with glms and have found it very
useful.
Now I'm trying it with lms and I'm not sure if the results of the
allEffects() are as expected.
I've got a model that looks like this:
mymodel = lm(formula = A ~ B + C + D + B:D + C:D)
Residuals:
Min 1Q Median 3Q Max
-3.80156 -0.73486 -0.09792
2004 Oct 20
0
heatmap.2 ordering & color key
HI All
sorry if this question has already been asked but I couldn't find
anything that answered my question
I have 24 columns of data that I'm trying to plot in heatmap.2
(gregmisc) and I'm having difficulty ordering them except in numerical
sequence:
I have transposed my matrix so it will appear with the dendrogram I want
appearing at the top of the heatmap
If I use either of
2010 May 18
2
how to select rows per subset in a data frame that are max. w.r.t. a column
Hi,
I'd like to select one row in a data frame per subset which is maximal for a
particular value. I'm pretty close to the solution in the sense that I can
easily select the maximal values per subset using "aggregate", but I can't
really figure out how to select the rows in the original data frame that are
associated with these maximal values.
library(stats)
# this
2010 Sep 23
1
Behavior of R CMD build and library() w.r.t. setGeneric-like functions
Hello developeRs,
Apologies in advance for a rather long email, but to describe the
problem, I need to step through many details. I have been working on a
new dispatching system (futile.paradigm on CRAN) based on functional
programming concepts that is an alternative to S3 and S4 dispatching. I
use a declarative syntax using guard statements to control the
dispatching between function variants. I
2004 May 27
2
Stats package
Hi
The cor function in the stats package calculates the correlation between
columns of data, does anyone know if it is at all possible to calculate
the correlation between rows instead ?
Or is there an appropriate package or function that is more appropriate
I'd like to calculate spearman & pearson correlations between rows.
Many thanks
Jason
--
--------------------------------
2016 Apr 23
2
Data Frame Column Name Attribute
I am attempting to add a calculated column to a data frame. Basically,
adding a column called "newcol2" which are the stock closing prices from 1
day to the next.
The one little hang up is the name of the column. There seems to be an
additional data column name included in the attributes (dimnames?). So
when i run HEAD(DATAFRAMENAME) i get the column name = "Open". but
2006 Apr 06
0
Table w/ 2 columns feat. the same foreign key (accessing?)
I have a database table named trips which has two columns (in addition
to others) which both have foreign keys to the locations table. The
columns are for a start location and an end location. The problem arises
in the trip model in trying to access each location.
belongs_to :location, :foreign_key => ''start_location_id'' gives me
access to one of the locations but how can
2024 Feb 05
1
Challenges with Replicated Gluster volume after stopping Gluster on any node.
Hello Everyone,
We have a replicated Gluster volume with three nodes, and we face a strange issue whenever we need to restart one of the nodes in this cluster.
As per my understanding, if we shut down one node, the Gluster mount should smoothly connect to another remaining Gluster server and shouldn't create any issues.
In our setup, when we stop Gluster on any of the nodes, we mostly get
2020 Aug 26
1
NAs and rle
Hi All,
A twitter user, Mike fc (@coolbutuseless) mentioned today that he was
surprised that repeated NAs weren't treated as a run by the rle function.
Now I know why they are not. NAs represent values which could be the same
or different from eachother if they were known, so from a purely conceptual
standpoint there is no way to tell whether they are the same and thus
constitute a run or
2010 Aug 15
1
Paired t-tests
Hello List,
I'm trying to do a paired t-test, and I'm wondering if it's consistent
with equations. I have a dataset that has a response and two
treatments (here's an example):
ID trt order resp
17 1 0 1 0.0037513592
18 2 0 1 0.0118723051
19 4 0 1 0.0002610251
20 5 0 1 -0.0077951450
21 6 0 1 0.0022339952
22 7 0 2
2015 Dec 11
0
Samba-4 DNS issue
Its should not be needed to drop and recreate.
Try the following.
Delete the created records in the "wrong" zone(s)
Try to delete the "wrong" zone. ( ignore the error)
Restart bind
Restart samba.
Pray and check again.
Are the "empty zones gone and are your dns records there again?
Greetz,
Louis
> -----Oorspronkelijk bericht-----
> Van: samba
2011 Feb 25
1
combining two columns into one column despite NAs
I am trying to combine two columns in a data frame into one column. Some
values in either column are missing, but not in the same row for the two
different columns. Additionally, when both columns in a row contain data,
the data are identical. I want a new column with the identical data or the
data from the column with observed data. For example:
I have
>data
id x y
2006 May 22
1
Changing the generic of as.data.frame
I have changed the generic to as.data.frame in R-devel by adding a '...'
argument. This means that any methods which do not have a '...' argument
(quite a few do) will generate a warning in R CMD check: the fix is very
simple (and backwards compatible): just add a '...' argument to the
method.
We already had a problem with as.data.frame.table which had an extra
2012 Feb 28
1
Unexpected behaviour for RowSideColors in function heatmap
Hello,
I have come across some unexpected behaviour of the function heatmap in the stats package. This looks like a bug to me, but I might have misunderstood something.
When calling the function in symmetric mode, the ColSideColors are plotted correctly, but RowSideColors appear in reverse order. This code (modified from the example on the help page) demonstrates the problem:
cU <-
2012 Apr 13
3
A little exercise in R!
Greetings all!
A recent news item got me thinking that a problem stated
therein could provide a teasing little exercise in R
programming.
http://www.bbc.co.uk/news/uk-england-cambridgeshire-17680326
Cambridge University hosts first European 'maths Olympiad'
for girls
The first European girls-only "mathematical Olympiad"
competition is being hosted by Cambridge