MixSIAR icon indicating copy to clipboard operation
MixSIAR copied to clipboard

Problem in load_mix_data

Open AlamKamar opened this issue 1 year ago • 0 comments

Dear Brian I am facing an "Error in read.table(file=file, header=header, sep=sep, quote=quote :" I have used these codes and the data file was saved in .csv format successfully.

  1. library (MixSIAR) : Rstudio can read MixSIAR
  2. data<-read.csv("C:\Users\Administrator\Documents\test\1stdata_consumer.csv") : I have used this code because replacing the system.file with the path address was not working
  3. mix.filename <- system.file("extdata", "data", Package="MixSIAR") : Rstudio successfully receive this code
  4. read.table(file= "C:\Users\Administrator\Documents\test\1stdata_consumer.csv", header = TRUE, sep=",", quote="") : Rstudio successfully receive this code
  5. Now, when I am running mix <- load_mix_data(filename=mix.filename, iso_names=c("d13C", "d15N"), factors=c("X8YR", "X11YR") fac_random=c(TRUE,TRUE), fac_nested=c(FALSE,TRUE), cont_effects=NULL) : it gives the error in read.table(file=file, header=header, sep=sep, quote=quote :"

How can I fix this issue? Please suggest me. I am waiting for your guide. Thanks in Advance Best Regards Alam Kamar

AlamKamar avatar Aug 13 '23 07:08 AlamKamar