Hello everybody, I'm new in this community and I'm a french student learning Rstudio for Ecological statistics.
I want to do a presence/absence analysis, so I just created a txt file with my datas. My file has a 1st column with the number of the site, a 2nd, 3rd, 4th, 5th and 6th with the name of the species, and in these column I just added "0" for absence and "1" for presence.
The problem is here :
When I enter the code I have an error and I totally don't understand what is wrong there.
Can someone help me please?
Thank you very much!
Code :
data<-read.table("pa_data.txt",h=T, dec=";")
Error :
Warning messages:
1: In read.table("pa_table.txt", h = T, dec = ";") :
line 1 appears to contain embedded nulls
2: In read.table("pa_table.txt", h = T, dec = ";") :
line 2 appears to contain embedded nulls
3: In read.table("pa_table.txt", h = T, dec = ";") :
line 3 appears to contain embedded nulls
4: In read.table("pa_table.txt", h = T, dec = ";") :
line 4 appears to contain embedded nulls
5: In read.table("pa_table.txt", h = T, dec = ";") :
line 5 appears to contain embedded nulls
6: In scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
embedded nul(s) found in input