<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Dear Kyle,</div><div><br></div><div>have you opened the file directly on your desktop? (with any text editor). How does it look like? What is the separator? </div><div><br></div><div>you should read the help file of read.csv to make sure you have all options correctly set up.</div><div><br></div><div>Otherwise, open your csv file with excel and save it as a txt file, tab separated (by default in excel). </div><div>then use</div><div>MyData = read.txt("my file", sep="\t")</div><div><br></div><div>add h=T if you have column labels. </div><div><br></div><div>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. </div><div><br></div><div>MyData = read.txt("<a href="C://MyDocuments/my">C://MyDocuments/my</a> file", sep="\t")</div><div><br></div><div>OR</div><div><br></div><div>setwd("<a href="C://MyDocuments/">C://MyDocuments/</a>") #### I am not a windows user so I do not exactly know how the complete path looks like, but should be close to this ### </div><div>MyData = read.txt("my file", sep="\t")</div><div><br></div><div>Wilfried</div><div><br></div><div><br></div><div><br></div><br><div><div>Le 13 févr. 2012 à 16:26, kyle mitcheison a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font: inherit;"><div id="yiv1738346656" style="font-family: arial; font-size: 10pt; "><table cellspacing="0" cellpadding="0" border="0" id="yiv1738346656bodyDrftID" class="yiv1738346656"><tbody><tr><td id="yiv1738346656drftMsgContent" style="font:inherit;font-family:arial;font-size:10pt;">Greetings, </td></tr></tbody></table> </div><div id="yiv1738346656" style="font-family: arial; font-size: 10pt; ">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.</div><div id="yiv1738346656" style="font-family: arial; font-size: 10pt; ">Apologies if this appears simplistic, I am an
undergraduate student with not much experience.</div><div id="yiv1738346656" style="font-family: arial; font-size: 10pt; "><br></div><div id="yiv1738346656" style="font-family: arial; font-size: 10pt; ">Many Thanks</div><div id="yiv1738346656" style="font-family: arial; font-size: 10pt; "><br></div><div id="yiv1738346656" style="font-family: arial; font-size: 10pt; ">Kyle</div><div id="yiv1738346656"><div id="yiv1738346656"><font face="arial" size="2"> </font><span style="font-family: arial; font-size: small; "> </span></div></div></td></tr></tbody></table>_______________________________________________<br>Biomod-commits mailing list<br><a href="mailto:Biomod-commits@lists.r-forge.r-project.org">Biomod-commits@lists.r-forge.r-project.org</a><br>https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/biomod-commits</blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-size: 12px; "><div>--------------------------</div><div>Dr. Wilfried Thuiller</div><div>Laboratoire d'Ecologie Alpine, UMR CNRS 5553</div><div>Université Joseph Fourier</div><div>BP53, 38041 Grenoble cedex 9, France</div><div>tel: +33 (0)4 76 51 44 97</div><div>fax: +33 (0)4 76 51 42 79</div><div><br></div><div>Email: <a href="mailto:wilfried.thuiller@ujf-grenoble.fr">wilfried.thuiller@ujf-grenoble.fr</a><br>Personal website: <a href="http://www.will.chez-alice.fr/">http://www.will.chez-alice.fr</a><br>Team website: <a href="http://www-leca.ujf-grenoble.fr/equipes/emabio.htm">http://www-leca.ujf-grenoble.fr/equipes/emabio.htm</a><br><br>ERC Starting Grant TEEMBIO project: <a href="http://www.will.chez-alice.fr/Research.html">http://www.will.chez-alice.fr/Research.html</a><br>FP6 European EcoChange project: <a href="http://www.ecochange-project.eu/">http://www.ecochange-project.eu</a></div><div><br></div></span></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></body></html>