Displaying 20 results from an estimated 1300 matches similar to: "Vector Manipulation"
2018 Mar 15
3
stats 'dist' euclidean distance calculation
Hello,
I am working with a matrix of multilocus genotypes for ~180 individual snail samples, with substantial missing data. I am trying to calculate the pairwise genetic distance between individuals using the stats package 'dist' function, using euclidean distance. I took a subset of this dataset (3 samples x 3 loci) to test how euclidean distance is calculated:
3x3 subset used
2008 Mar 15
2
Please find the error in my code
hello everybody
I use the following code for my programming & it runs with the error as specified below.Any help that would disolve the error will be highly appreciated.
Thanks in advance
my code looks like this
#### R programme for simulating the power of the two sample t test vs various
#### non-parametric alternatives
sim.size <- 200
sample.size <- 10
set.seed(231)
mu1 <- 0
delta
2002 Sep 28
1
Getting .Python to Work Under Windows
Hi all,
I'm trying to call a function in a Python module (v2.2) from within R
(Windows, v1.5.0) but am not having any luck. I've installed
RSPython_0.4-0.zip and the following lines of code cause R to crash:
# R code
library(RSPython)
out <- .Python("samp1", .module="Sample")
# Python file: Sample.py
def samp1() :
return 1
Obviously this is not the actual Python
2010 Jul 06
2
Help With ANOVA
Hi I needed some help with ANOVA
I have a problem with My ANOVA
analysis. I have a dataset with a known ANOVA p-value, however I can
not seem to re-create it in R.
I have created a list (zzzanova) which contains
1)Intensity Values
2)Group Number (6 Different Groups)
3)Sample Number (54 different samples)
this is created by the script in Appendix 1
I then conduct ANOVA with the command
>
2018 Mar 15
0
stats 'dist' euclidean distance calculation
> 3x3 subset used
> Locus1 Locus2 Locus3
> Samp1 GG <NA> GG
> Samp2 AG CA GA
> Samp3 AG CA GG
>
> The euclidean distance function is defined as: sqrt(sum((x_i - y_i)^2)) My
> assumption was that the difference between
2003 Mar 14
2
R "FinMetrics" Package Available?
Hello List,
I've done some cursory searching but (so far) have struck out. Does
anyone know if the R version of the S+ FinMetrics package is available?
Best,
Bill Vedder
2001 Nov 11
2
3D Plots
Good Evening,
I'm using R1.2.1. Is 3D plotting available? The only reference I find
is to "plot.locfit.3d {locfit}" and the documentation says the function
is not currently available in R.
Any help is appreciated.
Best Regards,
Bill Vedder
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2003 Mar 18
3
References of R in use
Dear R-users and expeRts,
can anyone provide me (and others as well, of course) with reference of
companies, scientific labs and/or schools where R is being used?
Or does some (even unofficial) list of comanies etc. where R is being used
exist?
I tried to find such an information on R's homepage and on a FAQ page, but
unsuccesfully.
(Of course, searching through this r-help conference one
2010 May 23
2
Subsetting with a list of vectors
Hi,
I have a dataset that looks like the one below.
data
plot plantno. species
H 31 ABC
D 2 DEF
Y 54 GFE
E 12 ERF
Y 98 FVD
H 4 JKU
J 7 JFG
A 55 EGD
. . .
. . .
.
2002 Jan 03
2
Different behaviour of data()
Dear List,
I frequently use the
data()
function to load csv files (with separator ";") into R session,
typically
data(myfile)
loads myfile.csv from my working/data directory into R.
Now, in 1.4.0 version, everything works as expected, but with one
difference:
The values readed in older versions in "num" mode are now readed as "int"
mode,
converting the values
2001 Aug 28
1
Help with Clustering Techniques in R
Greetings RListers,
I have a data set containing two types of outcomes; success and failure.
Associated with each outcome are 12 different measurements. I'm trying
to find out, for example, if some of the 12 measures are associated more
with success or failure or, if there's any relationship at all between
the measures and the outcomes (success or failure).
I don't have (as yet)
2004 Jul 30
3
Counting question
Hi All,
Here is something that sounds simple, but I'm having trouble getting it. I
have a data frame with two columns, the first is date and the second is
employee ID. I'd like to plot date on the horizontal axis, employee ID on
the vertical axis, and the number of times the employee appears for the
given date as a color. I've kluged something where I make a table
(table(date, id))
2003 Apr 04
3
Sampling from a Data Frame
Hi,
I've been looking through the documentation for sample(), but can only get
it to work with vectors. Is it possible to sample from a dataframe?
--
Cheers,
Kevin
------------------------------------------------------------------------------
/* Time is the greatest teacher, unfortunately it kills its students */
--
Ko-Kang Kevin Wang
Master of Science (MSc) Student
SLC Tutor and Lab
2001 May 30
3
Transformation of dissimilarity or distance matrix
Dear List,
is there an elegant (or even not elegant) way how to transform
dissimilarity or distance matrix A
(or, in general, arbitrary symmetrical matrix) by transposition of rows and
columns into a form
closest to "block diagonal" matrix B?
The matrix A is adjusted the following way
A[A<epsilon] <-0 #(epsilon is given "small" number)
B: (in its ideal form)
2001 Jul 24
2
segmentation fault
I'm experiencing segmentation faults from time to time
that abruptely end my R sesion. In such cases, is there
any way to recover the work done? (i.e., is there
any temporal file that I could use?)
Thanks
Agus
Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo at ija.csic.es
2009 Oct 14
2
Getting indeices of intersecting elements.
Hi,
Is there a command to get the indices of intersecting elements of two
vectors as intersect() will give the elements and not its indices.
Thanks in advance.
Praveen Surendran
School of Medicine and Medical Sciences
University College Dublin
Belfield, Dublin 4
Ireland.
[[alternative HTML version deleted]]
2003 Mar 10
2
cannot write/delete as root
Hello all...
I have RH7.2, with ext3 filesystem.
My problem is:
It is not possible to write or delete and change owner or permission in
/usr/share/locale/ga/LC_MESSAGES
Also, I canĀ“t write/delete files in this directory, and also in ../locale/ga/
Therefore I cannot upgrade to RH8.0, because installer needs to write to this directory,
but he cannot.
Owner of ../ga/LC_MESSAGES is root, group
2001 Nov 08
1
Generalized Lambda
Anyone know of a package for numerically estimating lambda(3) and lambda(4)
using location, position, skew and kurtosis estimates. I have a distribution
and would like to use the gld package to do some simulations of the
distribution, but need the lambda estimates to feed into gld.
I have a program in Maple, which I may convert to C code for use in R, but
before moving down that road I
2003 Apr 08
3
density ranges for uniform law
Hello,
I would have some details and explanations about the results I get.
In fact, I start with a uniform sample between -1 and 1, and then plot its
density.
My problem is that the density ranges are much more longer than I expected :
samp <- runif(10000,-1,1)
plot(density(samp))
Instead of varying between -1 and 1, the density varies between approximaly
-1.5 and 1.5
Could someone explain
2010 Mar 09
3
Help with ANOVA in R
Hi
I am attempting Anova analysis to compare results from four groups
(Samp1-4) which are lists of intensities from the experiment. I am
doing this by first creating a structured list of the data and then
conducting the ANOVA (Script provided below). Im an R beginner so am
not sure if I am using this correctly. Two major questions I have are:
1)
Is using the code (zzz.aov <- aov(Intensity ~