[Biomod-commits] (no subject)
Wilfried Thuiller
wilfried.thuiller at ujf-grenoble.fr
Mon Feb 13 16:37:36 CET 2012
Dear Kyle,
have you opened the file directly on your desktop? (with any text editor). How does it look like? What is the separator?
you should read the help file of read.csv to make sure you have all options correctly set up.
Otherwise, open your csv file with excel and save it as a txt file, tab separated (by default in excel).
then use
MyData = read.txt("my file", sep="\t")
add h=T if you have column labels.
From a previous email you send, I deduce R doe not find your file. You need either to give the complete path to R OR set up the working directory where your file is located.
MyData = read.txt("C://MyDocuments/my file", sep="\t")
OR
setwd("C://MyDocuments/") #### I am not a windows user so I do not exactly know how the complete path looks like, but should be close to this ###
MyData = read.txt("my file", sep="\t")
Wilfried
Le 13 févr. 2012 à 16:26, kyle mitcheison a écrit :
>
> Greetings,
>
> I am having difficulty loading my species/environmental data. They are in one file in csv format, and the environmental variables are from UKCP09. I have been unable to add the data using read.csv, but managed to use data(MyData1) instead. However, when i use the head() function the data doesn't look right, most of the data is on just one line.
> Apologies if this appears simplistic, I am an undergraduate student with not much experience.
>
> Many Thanks
>
> Kyle
>
> _______________________________________________
> Biomod-commits mailing list
> Biomod-commits at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/biomod-commits
--------------------------
Dr. Wilfried Thuiller
Laboratoire d'Ecologie Alpine, UMR CNRS 5553
Université Joseph Fourier
BP53, 38041 Grenoble cedex 9, France
tel: +33 (0)4 76 51 44 97
fax: +33 (0)4 76 51 42 79
Email: wilfried.thuiller at ujf-grenoble.fr
Personal website: http://www.will.chez-alice.fr
Team website: http://www-leca.ujf-grenoble.fr/equipes/emabio.htm
ERC Starting Grant TEEMBIO project: http://www.will.chez-alice.fr/Research.html
FP6 European EcoChange project: http://www.ecochange-project.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/biomod-commits/attachments/20120213/205a301a/attachment-0001.html>
More information about the Biomod-commits
mailing list