Displaying 20 results from an estimated 100 matches similar to: "How to execute R code"
2008 Jan 25
3
Help
Hi,
I got command to execute R code from Mark.
but it was showing error..
Error in library(hopach) : there is no package called 'hopach'
Does it mean this library hopach is not installed. But I have
installed complete Bioconductor package.
I am confused.
can you help me in this
thanks
Regards,
--
Prateek Singh
Final year Bioinformatics(BTech)
Vellore Institute Of Technology
2008 Feb 22
0
How to get MSS value for individual clusters.
Hi there,
I am working on clustering genomic data. I am using HOPACH method for
clustering.
I have a query here. How can i get SS (split silhouette) value for
individual clusters. What I am getting as MSS value, is Mean of all SS value
of individual cluster. Hence I am getting single value for a gene set. But I
would be very helpful for me if I get silhouette value for individual
clusters.
2011 Aug 08
3
Distance between a vector and matrix rows
I am trying to find the distance between a vector and each row of a
dataframe. I am using the function "distancevector" in the package "hopach"
as follows:
mydata<-as.data.frame(matrix(c(1,1,1,1,0,1,1,1,1,0),nrow=2))
V1 V2 V3 V4 V5
1 1 1 0 1 1
2 1 1 1 1 0
vec <- c(1,1,1,1,1)
d2<-distancevector(mydata,vec,d="euclid")
The Euclidean distance
2006 Nov 30
3
newbie: new_data_frame <- selected set of rows
Hello,
this is probably trivial but I failed to find this
particular snippet of code.
What I got:
my_dataframe (contains say a 40k rows and 4 columns)
distances (vector with euclidean distances between a
query vector and each of the rows of my_dataframe)
What I do:
after scaling data my_dataframe I calculate distances.
order them then extract top five hits
my_dataframe <-
2005 Nov 05
2
problem with the assignment function
Hello,
I run into the most weird problem I have ever met. I wrote a function
"rhopair", which calls a .C function. I cannot assign its value to a
variable using either "=" nor "<-". After I did the assignment,
"rhopair" cannot reproduce the same result as before with the same
argument. Here is the code and results:
>
2007 Jul 23
2
persp and greek symbols in the axes labels
Hello,
I am plotting a 3D function using persp and I would like to use greek
symbols in the axes labels.
I have found examples like this one on the web:
plot(0,0,xlab=expression(kappa[lambda]),ylab=substitute(paste(phi,"=",true,sigma),list(true=5)))
this works well with plot but not with persp:
with the command
persp(M,theta = -20,phi =
2007 Jul 06
1
loading package in LINUX
I am comfortable with windows based R. But recently I had shifted to
LINUX(Red Hat Linux Enterprise Guide 4)
1) I want to load J K Lindsey's repeated library in R. How to install the
packge?
2) How to create the shared library if I ve the fortran codes(I haven't done
creation of shared library in windows also).
I had run the command Rcmd in bin directory but an error message "bash:
2007 Jun 16
0
Help in HMM commands
Respected Sir,
I am working on Hidden Markov Models for count data. My data
consist of number of new infectives
in a ward per month. I have data for about 50 months. How can I fit a Hidden
Markon Model to my data.
I am using 'repeated' package('hidden' and 'chidden' arguments). I would
like to know how can I estimate
the initial values of the parameters(mu and
2007 Jul 14
1
Installation of a Package
Hi All,
I want to upload J K Lindsey's "repeated" in a LINUX OS..
I had tried the command..
[root@localhost Desktop] # R CMD INSTALL repeated.gz
" WARNING: invalid package 'repeated' "
*Installing to library
'/usr/local/lib/R/library'
ERROR: No packages
2006 Mar 17
0
(no subject)
Hi there,
I notice that some of the clustering methods in R are not appropriate to
deal with large data set. Here is the list I make to see which are
appropriate or which are not appropriate for large dataset. Could you
please take a look and check if it is right or not? I need this
information to decide which methods I should choose.
Thank you!
P.S.: List:
Appropriate for large
2006 Feb 27
1
about clustering method
Hi there,
I'm doing some clustering analysis and try to find all the algorithms
related to clustering in R. Here is the list of the algorithms I found.
But I'm not sure if
It's the complete list. Could you please check it and see if there're
other ones?
Thank you very much!
P.S.: List of the algorithms related to clustering:
(1) Hierarchical methods
hclust
2006 Nov 30
0
new_data_frame <- selected set of rows
Hello,
this is probably trivial but I failed to find this particular snippet of code.
What I got:
my_dataframe (contains say a 40k rows and 4 columns)
distances (vector with euclidean distances between a query vector and each of the rows of my_dataframe)
What I do:
after scaling data my_dataframe I calculate distances. order them then extract top five hits
my_dataframe <-
2008 Feb 19
1
rJava and matrices
Hi list,
I'm wanting to use a matrix as input to some java code, but I seem to be
unable to do this (See code below). When searching online for a solution I
found that rJava 0.5-2 (the version under development not yet in CRAN) is
adding "direct support for raw vectors as method parameters". Is this
related?
I also tried to use .jarray / .jcast in various combinations to no avail.
2011 Sep 25
4
Trouble creating and adjacency matrix
Hello all,
I'm having trouble creating an adjacency matrix.
Basically, I need to turn the following distance matrix into an adjacency
matrix based on whether values are >1.5 or not. If they are >1.5, then the
returned value should be 0. If they are =<1.5, then the returned value
should be 1.
DistanceMatrix:
A B C D E
[1,]
2011 Jan 20
1
Problems with ecodist
Dear Dr.Goslee and anyone may intrested in matrix manipulate,
I am using your ecodist to do mantel and partial mantel test, I have
locality data and shape variation data, and the two distance matrixs are
given as belowings. When I run the analysis, it is always report that the
matrix is not square, but I didn't know what's wrong with my data. Would you
please help me on this. I am quite
2011 Sep 14
6
Norton Dayplan no longer working
I have recently moved from Ubuntu 10.04 to Mint 11 Katya and installed Wine 1.2.2 using software manager. I have the original dayplan.exe files and dll files from the Norton Desktop program that was designed to run without an installer from Win 3.1 .
For me this program has worked in all versions of Windows including XP and when running Wine in Ubuntu 10.04 it also worked. Now when I double
2011 Sep 26
3
Nearest neighbour in a matrix
Hello all,
I am brand new to R and doing an exercise for a class. I need to find the
nearest neighbour for points in the following matrix:
> DistanceMatrix
x1 x2 x3 x4 x5
[1,] 0.000000 2.828427 1.581139 2.236068 2.000000
[2,] 2.828427 0.000000 1.581139 4.123106 2.000000
[3,] 1.581139 1.581139 0.000000 2.549510 2.121320
[4,] 2.236068 4.123106 2.549510
2010 Aug 25
1
Documenting S4 Methods
I'm in the process of converting some S3 methods to S4 methods.
I have this function :
setGeneric("enrichmentCalc", function(rs, organism, seqLen, ...){standardGeneric("enrichmentCalc")})
setMethod("enrichmentCalc", c("GenomeDataList", "BSgenome"), function(rs, organism, seqLen, ...) {
... ... ...
})
2010 May 31
0
[LLVMdev] Finding Merge nodes in CFG (ambika@cse.iitb.ac.in)
hi ambika,
I am not sure about this solution as i just started working in this field.
How about taking analogy of a problem which ask us to find nearest common
parent of two nodes in a tree.
Let me know if I can be corrected.
- Anubhav
intern IIT M
B. Tech 4th year CSE
VIT University, Vellore.
On 31 May 2010 22:30, <llvmdev-request at cs.uiuc.edu> wrote:
> Send LLVMdev mailing list
2007 Oct 30
6
trouble installing building packages from source using R 2.6.0 on Ubuntu Gutsy AMD64
I have recently upgraded to Ubuntu Gutsy and, for the first time, am
using a 64-bit installation. After failing miserably to install R from
source, not a problem for me in the past with a 32-bit install, I went
the route of using the Debian Etch build. This went smoothly, but I am
unable to update my numerous R and BioConductor packages, getting
non-zero exit status errors on each package. Is