Displaying 20 results from an estimated 100 matches similar to: "Compare columns"
2009 Dec 29
2
pass functions and arguments to function
Hi,
I wonder how to pass several functions and their arguments as arguments to
a function. For example, the main function is
f = function(X ) {
process1(X)
...
process2(X)
}
I have a few functions that operate on X, e.g. g1(X, par1), g2(X, par2),
g3(X, par3). par1, par2 and par3 are parameters and of different types. I
would like to pass g1, g2, g3 and their arguments to f and g1,
2008 Mar 18
3
Partition data into clusters
Greetings R-users,
I have been using the fpc package in R to cluster my data. Speficically I am
using kmeansruns clustering.
I would like to know how I use R to partition data into clusters. What I am
doing is as follows.
# Use csv file as input
#####################
wholeset = read.csv("Spellman800genesImputed.csv")
# exclude first col (gene names)
##########################
2012 Feb 15
2
[newbie] separating plot output from debug output
I'm attempting to refactor an R script that does a lot of plotting,
among other things. Ideally I'd like to do something like
setup # does pdf(...)
for each part of input {
plot(process(part))
}
cleanup # does dev.off()
but have problems:
1 I'm plotting to PDF, so everytime I dev.off() creates a new file,
and I want everything in one file (as does my boss :-)
2 I'm
2006 Jan 30
5
Multiple ajax calls
This is slightly OT for which I apologise in advance, but I was
wondering if anyone here has had any problems when making multiple
ajax calls at the same time. I''m working on a large Intranet
application which makes heavy use of ajax calls and the bugs are
flying in from the testers that if they repeatedly click on a link
that makes an ajax call then Internet Explorer can fall
2008 Apr 17
0
A problem with jointprior (Deal package)
Greetings all,
I am trying to use Deal to learn a Bayesian Network for discrete data. I
came across the following problem with jointprior function.
>library(deal)
> a <- read.csv("prepared.cluster1.csv")
> fit <- network(a)
> fit.prior <- jointprior(fit)
Error in array(1, Dim) : 'dim' specifies too large an array
I have tried debugging array and still
2008 Feb 01
1
package could not be loaded
Hi,
I am an R newbie. I am running R2.5.1 on WinXP. I am trying to run a pacakge
(BNArray1.0) that depends on deal 1.2-26 and dynamicGraph 0.2.0.1 . These
are available on http://www.cls.zju.edu.cn/binfo/BNArray/#OLE9 .
I have installed the 3 packages (using local files). When I try to run
BNArray, I reveicd this error message
> local({pkg <- select.list(sort(.packages(all.available =
2010 Mar 11
1
Failed to init inotify
Hi,
I'm going through my messages log and I've noticed a large amount of the
following error going on.
What affect would this have on the smb client that is connected to those
pid's?
Mar 11 11:35:24 process1 smbd[25349]: [2010/03/11 11:35:24, 0]
smbd/notify_inotify.c:293(inotify_setup)
Mar 11 11:35:24 process1 smbd[25349]: Failed to init inotify - Too
many open files
2012 May 07
3
Problem with Median
Hello.
I'm trying to compute median for a filtered column based on other column but there was something wrong. I'll show how I did step by step.
Here's the data:
a b c class
1 12 0 90 A-B2 3 97 11 A-B3 78 NA 123 A-C4 NA NA 12 A-C5 8 33 2 A-B6 12 NA 0 A-D
On the command I typed:
1) data =
2012 May 07
3
Problem in executing R-script
Hello. I'm a newbie here.
In my script (I name it readData.R), I wrote the followings:
readData <-function(){ med = read.csv("medicalData.csv");}
Then I tested the script by 'Source R Code' then on the command I typed 'readData()' then I typed 'med' to check if the variable contains the medical data but it returned 'Object med is not found'. What
2010 Feb 11
0
Intermittent Samba Problem
Hi,
I'm having a strange problem where users get permission denied on folder
in public shares.
On the windows xp machine you can see the folder when browsing the smb
share except that it has no attribute information. If I double click on
the folder it says Access is Denied.
On the samba server "process1" I can list the directory and also the
contents of the folder and it
2008 Apr 17
0
Fwd: A problem with jointprior
Greetings all,
I am trying to use Deal to learn a Bayesian Network for discrete data. I
came across the following problem with jointprior function.
>library(deal)
> a <- read.csv("prepared.cluster1.csv")
> fit <- network(a)
> fit.prior <- jointprior(fit)
Error in array(1, Dim) : 'dim' specifies too large an array
I have tried debugging array and still
2009 Apr 30
1
How to replace values?
Hello all,
I have a list of genes as follows (A)
Number? GeneName
0???????????? YAR003W
1???????????? YAR007C
2???????????? YAR008W
3???????????? YBL035C
4???????????? YBL111C
5???????????? YBL112C
And I have a list of gene interactions as follows (B)
0 -> 1
1 -> 5
3 -> 4
2 -> 3
I want to replace the values in (B) with the corresponding values in
(A) ie, I want to achieve the
2006 Mar 06
1
maximum likelihood estimate
Hi!
Recently I try to find the method maximum
likelihood for gamma,weibull,Pearson type III,Kappa Distribution,
mixed exponential distribution, skew distribution.
I have tried function ms() for gamma two parameters and weibull two
parameters.It works but not for Pearson type III. I have problem to find
the likelihood function for mixed exponential distribution and kappa
distribution.
So can
2014 Dec 09
1
[RFC PATCH v2] armv7: celt_pitch_xcorr: Introduce ARM neon intrinsics
Viswanath Puttagunta wrote:
> + SUMM = vdupq_n_f32(0);
It kills me that there's no intrinsic for VMOV.F32 d0, #0 (or at least I
couldn't find one), so this takes two instructions instead of one.
> + /* Consume 4 elements in x vector and 8 elements in y
> + * vector. However, the 8'th element in y never really gets
> + * touched in this loop. So, if len == 4,
2008 Apr 09
1
Replace values according to conditions
Greetings R-users,
I have the following data called mydata in a data.frame
Col1 Col2 Col3 Col4 Col5
1 2 4 6 7
8 8 7 3 5
4 4 5 6 7
I want to replace the data according to the following conditions
Condition 1 if data <= 3, replace with -1
Condition 2 if data >=6, replace with 1
Condition 3 if data = 4 or data =5, replace with 0
2007 Mar 13
2
mime types
I''m trying to use the ajax.Updater function to send a message to the
server and display an error message. Ok so far. However if the server
detects no error with the data sent I want to open a PDF file in a new
window. When I try to do this (using fpdf) the returned PDF is opened
as text in the error div.
Can anyone point me in the right direction.
rgds
gmcb
2008 Feb 11
0
Testing for differecnes between groups, need help to find the right test in R. (Kes Knave)
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On Behalf Of r-help-request at r-project.org
Sent: Monday, February 11, 2008 12:00 PM
To: r-help at r-project.org
Subject: R-help Digest, Vol 60, Issue 11
Send R-help mailing list submissions to
r-help at r-project.org
To subscribe or unsubscribe via the World Wide Web, visit
2003 Apr 03
0
Call for papers
"CALL FOR PAPERS"
THE ISLAMIC SOCIETY IN SOUTH EAST ASIA CONFERENCE ON
STATISTICAL AND MATHEMATICAL SCIENCES
BANDUNG, 25 - 26 APRIL 2003
Fakultas Matematika dan Ilmu Pengetahuan Alam
Universitas Islam Bandung
Jalan Tamansari No. 1, Bandung 40116
Telepon +62 22 4203368 Ext. 136 or 135
Facsimile +62 22 4263895
E-mail: - fmipa_unisba at yahoo.com
- wanda at
2014 Dec 07
2
[RFC PATCH v2] cover: armv7: celt_pitch_xcorr: Introduce ARM neon intrinsics
Hi,
Optimizes celt_pitch_xcorr for floating point.
Changes from RFCv1:
- Rebased on top of commit
aad281878: Fix celt_pitch_xcorr_c signature.
which got rid of ugly code around CELT_PITCH_XCORR_IMPL
passing of "arch" parameter.
- Unified with --enable-intrinsics used by x86
- Modified algorithm to be more in-line with algorithm in
celt_pitch_xcorr_arm.s
Viswanath Puttagunta
2008 Feb 11
1
Help with write.csv
Dear all,
I am new to R. I am using the impute package with data contained in csv
file.
I have followed the example in the impute package as follows:
> mydata = read.csv("sample_impute.csv", header = TRUE)
> mydata.expr <- mydata[-1,-(1:2)]
> mydata.imputed <- impute.knn(as.matrix(mydata.expr))
The impute is succesful.
Then I try to write the imputation results