> gsub fails on this file due to a particular value "Cte d'Ivoire"
> which is present in the file. This is when my locale is set to
> en_US.utf8 but when I set locale to C it (gsub) works.
Have a look at ?file, especially the section on Encoding.
cu
Philipp
--
Dr. Philipp Pagel
Lehrstuhl für Genomorientierte Bioinformatik
Technische Universität München
Wissenschaftszentrum Weihenstephan
85350 Freising, Germany
http://mips.gsf.de/staff/pagel
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.