[adegenet-forum] R code problem

AVIK RAY avik.ray.kol at gmail.com
Thu Nov 3 11:27:36 CET 2011


Hi all

trying to do DAPC and
trying to get this  .csv file read in R
the code goes like this

 > obj<-read.table('allindiv50.csv')
 > obj
.....

 > dat<-data.frame(obj, sep=",", ploidy=4)
 > dat
..
..
 > dat<-data.frame(obj)
 > dat

....
 > x=df2genind(dat, sep=",", ploidy=4)
 > x

it is 6 loci, tetraploid data but not read as that rather R is reading 
it single locus, with array of alleles, I can get from script it can not 
recognize the locus separator etc. but can not figure out how to do it
Thanks for any help
best
AVIK



-- 
AVIK RAY
Visiting Fellow
National Center for Biological Sciences
Tata Institute of Fundamental Research
GKVK Campus
Bellary Road
Bangalore-560065
India
Ph 91-80-23666340
Fax 91-80-2363 6662

-------------- next part --------------
A non-text attachment was scrubbed...
Name: allindiv50.csv
Type: application/vnd.ms-excel
Size: 6089 bytes
Desc: not available
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20111103/99b29ad3/attachment.xlb>


More information about the adegenet-forum mailing list