Displaying 20 results from an estimated 9000 matches similar to: "Shallow copies"
2014 Dec 06
1
R CMD check --as-cran and (a)spell checking
Does anyone know if it is possible to add a dictionary file of known
words that becomes part of the *built* package to tell 'R CMD check
--as-cran' not to report these words as misspelled. I want this
dictionary to come with the *.tar.gz such that it will be available
regardless where the package is checked. For instance, currently I
get:
* using log directory
2017 Nov 29
2
SAMseq errors
Hi, I am trying to using SAMseq() to analyze my RNA-seq experiment (20000 genes x 550 samples) with survival endpoint. It quickly give the following error:
> library(samr)Loading required package: imputeLoading required package: matrixStats
Attaching package: ?matrixStats?
The following objects are masked from ?package:Biobase?:
? ? anyMissing, rowMedians
Warning messages:1: package ?samr? was
2017 Nov 29
0
SAMseq errors
Sorry forgot to use plain text format, hope this time it works:
Hi, I am trying to using SAMseq() to analyze my RNA-seq experiment (20000 genes x 550 samples) with survival endpoint. It quickly give the following error:
> library(samr)
Loading required package: impute
Loading required package: matrixStats
Attaching package: ?matrixStats?
The following objects are masked from
2018 Feb 20
0
Take the maximum of every 12 columns
It looks like OP uses a data.frame, so in order to use matrixStats
(I'm the author) one would have to pay the price to coerce to a matrix
before using matrixStats::rowMaxs(). However, if it is that the
original data could equally well live in a matrix, then matrixStats
should be computational efficient for this task. (I've seen cases
where an original matrix was turned into a data.frame
2018 Feb 20
2
Take the maximum of every 12 columns
On Tue, Feb 20, 2018 at 11:58 AM, Bert Gunter <bgunter.4567 at gmail.com>
wrote:
> Ista, et. al: efficiency?
> (Note: I needed to correct my previous post: do.call() is required for
> pmax() over the data frame)
>
> > x <- data.frame(matrix(runif(12e6), ncol=12))
>
> > system.time(r1 <- do.call(pmax,x))
> user system elapsed
> 0.049 0.000
2012 May 22
2
Median computation
Hi,
I have a 250,000 by 300 matrix. I am trying to calculate the median of
those columns (by row) with column names that are identical. I would like
this to be efficient since apply(x,1,median) where x is created by choosing
only those columns with same column name and looping on this is taking a
really long time. Is there an efficient way to do this?
Thanks!
[[alternative HTML version
2011 May 10
1
Reference Classes copy(shallow=FALSE) unexpected behavior.
Dear all,
I''ve just discovered the ''Reference Classes''.
In a previous attempt ---a year ago--- to re-implement in a Object Oriented
fashion the AMORE package using S4 classes I strongly felt the need of such
capability. It''s great to have the Reference Classes now available. Along
with the discovery of the Rcpp package, this new programming paradigm has
boosted
2008 Jun 13
1
shallow over http or ftp not supported
I am trying to install a custom plugin in my Rails app:
script/plugin install http://git.eyequeue.net/plugins/mt_capistrano.git
Instead of installing the plugin, I get the following error:
shallow over http or ftp not supported
Any ideas on how to fix this? Is it OK to do a git clone in my vendor/
plugins directory?
--~--~---------~--~----~------------~-------~--~----~
You received
2008 May 01
2
Error while making R package
Hi All,
I am trying to make R package using R 2.6.2
And I am getting following error.
When I give R CMD check t1\
---------- Making package t1 ------------
adding build stamp to DESCRIPTION
making DLL ...
making CGHseg_rewrite.d from CGHseg_rewrite.c
making rowMedians.d from rowMedians.c
making runavg.d from runavg.c
gcc-sjlj -std=gnu99 -Ic:/R/R-2.6.2/include -O3 -Wall -c
2007 May 14
1
Native implementation of rowMedians()
Hi,
I've got a version of rowMedians(x, na.rm=FALSE) for matrices that
handles missing values implemented in C. It has been optimized for
memory and speed. To avoid coercing integers to doubles, and hence
allocate an additional 200% memory, there is one C function for
integers and one for doubles.
The rowMedians() implementation is currently sitting in my non-CRAN
package R.native
2020 Jun 25
2
R 4.0.0 rebuild status
On Thu, 25 Jun 2020 at 19:01, Jos? Ab?lio Matos <jamatos at fc.up.pt> wrote:
>
> On Wednesday, 24 June 2020 10.42.10 WEST I?aki Ucar wrote:
> > Thanks, Jos? and Elliott. I can help with reviews.
> >
> > I attach here a list of batches of CRAN packages to be rebuilt in
> > order (batches separated by a blank line), and the script that
> > generates it. Hope
2006 Feb 13
1
MinGW and the ld bug
Hi.
I noticed that Brian Ripley found and corrected a bug in MinGW's
ld.exe, see http://www.murdoch-sutherland.com/Rtools/. Thanks for
this. I wonder if this is the same bug that cause my problems. I
have tiny toy package with C code that installs perfectly on R Version
2.2.1 beta (2005-12-18 r36792) [this version was mislabelled "beta"
the first few hours on CRAN when the stable
2011 Aug 23
1
[LLVMdev] git Status
greened at obbligato.org (David A. Greene) writes:
> Updating LLVM - no local changes
> --------------------------------
>
> To update your clone to the latest LLVM sources, use git pull:
>
> git pull llvm-upstream
That should probably be either
git pull
or
git pull llvm-upstream master
since the first is shorter and works if llvm-upstream is the upstream
for the
2020 Jun 26
2
R 4.0.0 rebuild status
On Friday, 26 June 2020 10.47.13 WEST I?aki Ucar wrote:
> I used bcond locally and wrongly assumed that fedpkg build would
> support --with BCOND and --without BCOND. Instead, the way to activate
> it is to change to "%bcond_with check" and then revert to
> "%bcond_without check". The only difference with bootstrap is that
> "bootstrap" is recognized
2007 Sep 13
1
trouble with installing Biobase package
Hi Everybody,
I am having a problem with loading Biobase package. I typed
2 lines below at R prompt
> source ("http://boconductor.org/biocLite.R")
> biocLite (lib="/usr/local/lib/R/library")
which attempted to install a bunch of packages with varying
degree of success. Out of 29, 13 failed. Biobase is one of
them. As a matter of fact, when I looked at logs, most
2023 Mar 14
2
Resultado operación entre dataframes
Buen día estimados,
Tengo el siguiente código:
df_1 <- data.frame(ana = c(15, 20, 30), maria = c(15,20,30), jose = c(15,
20, 30))
df_2 <- data.frame(nombre = c("jose", "ana", "maria"), valor = c(1,2,3))
# Find the corresponding columns in df_1 based on the values in df_2$nombre
cols <- match(df_2$nombre, names(df_1))
# Subtract the values of df_2$valor
2015 Mar 05
3
Performance issue in stats:::weighted.mean.default method
Hi,
I'm using this mailing list for the first time and I hope this is the
right one. I don't think that the following is a bug but it can be a
performance issue.
By my opinion, there is no need to filter by [w != 0] in last sum of
weighted.mean.default method defined in
src/library/stats/R/weighted.mean.R. There is no need to do it because
you can always sum zero numbers and
2010 Mar 29
1
Suggestion: Adding quick rowMin and rowMax functions to base package
Hi,
I wonder whether similarly to the very quick rowSums and colSums
functions in the base package, one could add quick functions that
calculate the min or max over rows / cols in a matrix. While
apply(x,1,min) works, I found out by profiling a program of mine that it
is rather slow for matrices with a very large number of rows. A quick
functionality seems to be already there in the
2018 Jan 25
2
sum() returns NA on a long *logical* vector when nb of TRUE values exceeds 2^31
Just following up on this old thread since matrixStats 0.53.0 is now
out, which supports this use case:
> x <- rep(TRUE, times = 2^31)
> y <- sum(x)
> y
[1] NA
Warning message:
In sum(x) : integer overflow - use sum(as.numeric(.))
> y <- matrixStats::sum2(x, mode = "double")
> y
[1] 2147483648
> str(y)
num 2.15e+09
No coercion is taking place, so the
2010 Mar 24
0
form_for with nested shallow route
Let''s say I have:
map.resources :teams do |team|
team.resources :squads, :shallow => true
end
When I want to generate a form_for a squad, I need both the team and
squad for new/create, but only the squad for edit.
This means I need:
edit:
form_for(squad)
new:
form_for([team, squad])
This seems not very dry. Is there a more idiomatic way of doing this?
Right now,