On Oct 15, 2009, at 11:34 AM, Maxime Pauwels wrote:

Dear,

I have a data frame object (FSTc) which is in fact a matrix of class data.frame

Not sure that is possible (in R terminology anyway.). Dataframes are lists.

but created from a txt file using the command
FSTc<-read.table("FSTcmatrix.txt", header=T)

I would like to transform it in a distance matrix of class dist to use it with the ade4 package.

I'm quite sure this is a simple operation but i just don't have the commands.

?dist

#which points to

?as.dist      # which is a coercion function

--

David Winsemius, MD
Heritage Laboratories
West Hartford, CT

______________________________________________
R-help@r-project.org 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.

Reply via email to