The archive Melipona.csv
is not located in the directory C:/Users/N1na3/Documents/R/win-library/3.4/dismo/ex/
. I listed the contents of this directory on my computer and there are only two . csv files, called acaule.csv
and bradypus.csv
.
$ ls /Library/Frameworks/R.framework/Versions/3.4/Resources/library/dismo/ex/
total 1696
-rw-rw-r-- 1 root admin 191K Apr 21 21:02 acaule.csv
-rw-rw-r-- 1 root admin 487B Apr 21 21:02 bio1.grd
-rw-rw-r-- 1 root admin 70K Apr 21 21:02 bio1.gri
-rw-rw-r-- 1 root admin 487B Apr 21 21:02 bio12.grd
-rw-rw-r-- 1 root admin 70K Apr 21 21:02 bio12.gri
-rw-rw-r-- 1 root admin 487B Apr 21 21:02 bio16.grd
-rw-rw-r-- 1 root admin 70K Apr 21 21:02 bio16.gri
-rw-rw-r-- 1 root admin 487B Apr 21 21:02 bio17.grd
-rw-rw-r-- 1 root admin 70K Apr 21 21:02 bio17.gri
-rw-rw-r-- 1 root admin 486B Apr 21 21:02 bio5.grd
-rw-rw-r-- 1 root admin 70K Apr 21 21:02 bio5.gri
-rw-rw-r-- 1 root admin 488B Apr 21 21:02 bio6.grd
-rw-rw-r-- 1 root admin 70K Apr 21 21:02 bio6.gri
-rw-rw-r-- 1 root admin 486B Apr 21 21:02 bio7.grd
-rw-rw-r-- 1 root admin 70K Apr 21 21:02 bio7.gri
-rw-rw-r-- 1 root admin 487B Apr 21 21:02 bio8.grd
-rw-rw-r-- 1 root admin 70K Apr 21 21:02 bio8.gri
-rw-rw-r-- 1 root admin 477B Apr 21 21:02 biome.grd
-rw-rw-r-- 1 root admin 35K Apr 21 21:02 biome.gri
-rw-rw-r-- 1 root admin 4.0K Apr 21 21:02 bradypus.csv
Since I don’t have access to your computer, I can only speculate on a possible solution to your problem. Do the following:
1) Copy the file Melipona.csv
somewhere known inside your computer. For example, a folder like Documents/Dissertation/Melipona/Analyze/
2) Inside Rstudio, go to the menu Session > Set Working Directory > Choose Directory . Navigate to the directory where the file Melipona.csv
is stored.
3) Turn the remote
melipona <- read.csv("Melipona.csv", header=TRUE, sep=";")
This should complete the reading of your file without major problems.
Confirmed in Windows 7. (The directory list above is Unix.) @Marcusnunes Also, in the command
read.csv
file name must be in quotes, please edit this, please.– Rui Barradas
Thanks for the help, Rui. I published the code without testing and reviewing, so this error appeared.
– Marcus Nunes