# [R] Distance function

From: Birgit Lemcke <birgit.lemcke_at_systbot.uzh.ch>
Date: Thu, 21 Jun 2007 19:56:54 +0200

I am working on a PowerBook with Mac Os X and use R 2.5.0. I used the distance function from the analogue package to perform a similarity analysis using the Gowers Index and weighted Variables. My variables are bivariate data and measurements as well as interval data transformed into minimum and maximum variables. I used this Code:

(weighting<- c
(1/3,1/3,1/3,1/2,1/2,1/2,1/2,1/2,1/2,1/4,1/4,1/4,1/4,1/7,1/7,1/7,1/7,1/7
,

```1/7,1/7,1/3,1/3,1/3,1/5,1/5,1/5,1/5,1/5,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,
1/9,1/5,1/5,1/5,1/5,1/5,1/7,1/7,1/7,1/7,1/7,1/7,1/7,1/7,1/7,1/7,1/7,1/7,
1/7,1/7,1/5,1/5,1/5,1/5,1/5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
```
1,1))
It contains the weightings for the variables of the two data tables.

My data tables look like this:

Anth_cap1 8.0 NA NA 4.0 5.0 1 1 3.0 5.0 2.4 4.5 5 5 2 2 2 3 1 1 1 1
Anth_crin1 5.0 NA NA 3.5 11.0 1 1 3.0 10.0 2.0 4.5 3 4 2 2 3 3 1 1 2 3
Anth_eck1 7.0 NA NA 6.0 12.0 1 1 6.0 11.0 2.0 3.0 3 5 2 2 3 3 1 1 1 2

At the end of the analysis I get always this message:

1. \$ operator is deprecated for atomic vectors, returning NULL in: object\$na.action
2. \$ operator is deprecated for atomic vectors, returning NULL in: object\$weights

Can anybody explain me what this means?

Does anybody know if I have to standardize my measurements. As I understood this is included in Gowers Index. If not is there a function with different options of standardization more than rescaler from the reshape package provides?

Greetings

Birgit

[[alternative HTML version deleted]]

R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 21 Jun 2007 - 18:01:22 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 21 Jun 2007 - 19:32:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.