Displaying 20 results from an estimated 3000 matches similar to: "Help with manipulation of matrix object"
2010 Jul 09
3
apply is slower than for loop?
I thought the "apply" functions are faster than for loops, but my most
recent test shows that apply actually takes a significantly longer than a
for loop. Am I missing something?
It doesn't matter much if I do column wise calculations rather than row wise
## Example of how apply is SLOWER than for loop:
#rm(list=ls())
## DEFINE VARIABLES
mu=0.05 ; sigma=0.20 ; dt=.25 ; T=50 ;
2010 Oct 19
2
head.matrix() unintelligent
Hi Just a simple question really. I?ve got these large 2d matrices that I?d
like to inspect, but not from start to finish. The head() command is
convenient when columns are few. For large nxn matrices, however, head() and
head.matrix() are still cumbersome. Is there a simple way of viewing both
the columnwise and rowwise heads of a matrix?
cheers,
Bruce
--
View this message in context:
2006 Feb 16
2
Help to find correlation.
Respected Sir,
I am trying to import excel file into R, but I need to truncate some columns from the original file.
How to delete unwanted columns when I import data from excel file.
How to use cor.test for the data when I want the output rowwise.
How to do grouping and use cor.test on that data
I need some help regarding how to calculate the correlation.
I don't know whether you
2018 May 30
0
Evaluation failure of IAPWS95 functions in a rowwise manner (tidyverse style)
Hi Shawn,
I don't think it has anything to do with the tidyverse. If you keep
simplifying your example you'll get all the way down to
> DTp(T=c(279,294),p=c(0.46,0.46))
[1] 1000.12283
--Ista
On Wed, May 30, 2018 at 2:14 PM, Shawn Way <SWay at meco.com> wrote:
> I'm trying to use the IAPWS95 package with the tidyverse packages. For some reason, the function is not
2011 Sep 06
2
subsetting tables
Hi guys,
one of the questions where you need a real human instead of a search engine,
so it would be great if you could help.
I have a matrix of z-scores which I would like to filter, sometimes
columnwise, sometimes rowwise. Data looks like this:
Allstar hsa.let.7a hsa.let.7a.1 hsa.let.7a.2
2 0.87 0.79 -0.57 1.07
3 0.67 -1.14 -0.78 -0.95
4
2017 Nov 28
2
dplyr - add/expand rows
Or with the Bioconductor IRanges package:
df <- with(input, DataFrame(station, year=IRanges(from, to), record))
expand(df, "year")
DataFrame with 24 rows and 3 columns
station year record
<character> <integer> <character>
1 07EA001 1960 QMS
2 07EA001 1961 QMC
3 07EA001 1962 QMC
4
2018 May 30
2
Evaluation failure of IAPWS95 functions in a rowwise manner (tidyverse style)
I'm trying to use the IAPWS95 package with the tidyverse packages. For some reason, the function is not outputting the correct rho.
A minimal example with results is below. I've also included the definition of the DTp function from the IAPWS95 library.
====================================
library(IAPWS95)
library(tidyverse)
initial <- data.frame(T=c(279,294),p=c(0.46,0.46))
2010 Oct 26
3
Reading in a tab delimitated file
Hi all,
I have a total newbie question, but I could really use some help.
I need to read in this file:
SampleID Disease
E-CBIL-28-raw-cel-1435145228.cel 1
E-CBIL-28-raw-cel-1435145451.cel 2
E-CBIL-28-raw-cel-1435145479.cel 2
E-CBIL-28-raw-cel-1435145132.cel 3
E-CBIL-28-raw-cel-1435145417.cel 3
E-CBIL-28-raw-cel-1435145301.cel 2
E-CBIL-28-raw-cel-1435145558.cel 1
2017 Nov 27
2
dplyr - add/expand rows
try this:
##########################################
library(dplyr)
input <- tribble(
~station, ~from, ~to, ~record,
"07EA001" , 1960 , 1960 , "QMS",
"07EA001" , 1961 , 1970 , "QMC",
"07EA001" , 1971 , 1971 , "QMM",
"07EA001" , 1972 , 1976 , "QMC",
"07EA001" , 1977 ,
2020 Jul 22
1
module cel error with bridge events
On Wed, Jul 22, 2020 at 12:44 PM Administrator <admin at tootai.net> wrote:
> No one on this ?
>
> Le 10/07/2020 à 18:06, Administrator a écrit :
> > Hi,
> >
> > On Asterisk 16.11.1 when enabling cel I get error with BRIDGE_START
> > and BRIDGE_END events
> >
> > zone-s*CLI> module reload cel
> > The module 'cel' reported a
2020 Jul 10
2
module cel error with bridge events
Hi,
On Asterisk 16.11.1 when enabling cel I get error with BRIDGE_START and
BRIDGE_END events
zone-s*CLI> module reload cel
The module 'cel' reported a reload failure
-- Reloading module 'cel' (CEL Engine)
[2020-07-10 17:57:01] ERROR[16163]: cel.c:428 ast_cel_str_to_event_type:
Unknown event name 'BRIDGE_START'
[2020-07-10 17:57:01] ERROR[16163]:
2010 Jun 03
4
data-management: Rowwise NA
Dear R´ers..
In this mock dataset how can I generate a logical variable based on whether just tes or tes3 are NA in each row??
test<-sample(c("A",NA,"B"),100,replace=T)
test2<-sample(c("A",NA,"B"),100,replace=T)
test3<-sample(c("A",NA,"B"),100,replace=T)
tes<-cbind(test,test2,test3)
2020 Jul 22
0
module cel error with bridge events
No one on this ?
Le 10/07/2020 à 18:06, Administrator a écrit :
> Hi,
>
> On Asterisk 16.11.1 when enabling cel I get error with BRIDGE_START
> and BRIDGE_END events
>
> zone-s*CLI> module reload cel
> The module 'cel' reported a reload failure
> -- Reloading module 'cel' (CEL Engine)
> [2020-07-10 17:57:01] ERROR[16163]: cel.c:428
>
2012 Oct 07
1
BioConductor package: 'oligo'
Dear Help,
After loading the pd.Citrus library and checking the DataFrame, I ran
> the R code for:
>
> 1) 'oligo'
>
>
>
> {> library(pd.citrus)
> Loading required package: RSQLite
> Loading required package: DBI
> > data(pmSequence)
>
> > show(pmSequence)
> DataFrame with 341730 rows and 2 columns
> fid sequence
> <integer>
2005 Aug 31
1
Bioconductor and R-devel
Hi,
I have built R (current development version) and BioConductor 1.7
with portland group compiler on a AMD Opteron.
When I ran qc assessment on Affymetrix latin square data set, I got the
following output,
Loading required package: affy
Loading required package: Biobase
Loading required package: tools
Welcome to Bioconductor
Vignettes contain introductory material. To view,
2007 Apr 26
2
path autocompletion in 2.5.0
Hi,
R 2.5.0 isn't auto-completing paths properly as it used to. E.g.
suppose I have:
> dir("CEL/choe")
[1] "chipC-rep1.CEL" "chipC-rep2.CEL" "chipC-rep3.CEL" "chipS-rep1.CEL"
[5] "chipS-rep2.CEL" "chipS-rep3.CEL"
Now if I do:
ReadAffy("CEL/choe/ch<tab> # => ReadAffy("CEL/choe/chip
2009 Oct 26
2
help with linear model
Dear list,
I have been searching for a week to fit a simple linear model to my data. I
have looked into the previous posts but I haven't found anything relevant to
my problem. I guess it is something simple...I just cannot see it.
I have the following data frame, named "data", which is a subset of a
microarray experiment. The columns are the samples and the rows are the
probes. I
2010 Aug 15
3
Rows index/colProds
Hi,
Is there any function to replace colProds that finds column-wise products of
a matrix?
Or is there any other function that would give a better solution this
problem ?
I have a matrix and an array, example:
> a
GSM1.CEL GSM2.CEL GSM1.CEL
10000_at 1 3 1
10001_at 3 3 3
> b
10000_at
2017 Nov 29
2
dplyr - add/expand rows
On 11/29/2017 04:15 PM, T?th D?nes wrote:
> Hi,
>
> A benchmarking study with an additional (data.table-based) solution.
I don't think speed is the right benchmark (I do agree that correctness
is!).
For the R-help list, maybe something about least specialized R knowledge
required would be appropriate? I'd say there were some 'hard' solutions
-- Michael (deep
2006 Jul 21
1
table elemets testing
Hi everybody,
i'm dealing with some percentage tables, of which i should test rowwise if
the entries are sgnificantly equal or not. Namely, on row 1, test H0:
element 1= element2, H0: element 1= element3...H0: element 2= element3...H0:
element n-1= element n. The same on the other rows.
Anybody knows how this can be done in quick way? I don't have large
matrices, but it seems quite