By the way, I found another solution to this without setting the column
with Chinese characters to null, by ensuring the data is fed through as
characters rather than factors:

chn1 <- getData('GADM', country="CHN", level=1, stringsAsFactors=FALSE)


On Fri, Feb 7, 2014 at 4:36 PM, Miriam Lo <lazyhydra@gmail.com> wrote:

> Oh, that worked! Thanks to both Oscar and Robert.
>
> Kind regards
> Miriam
>
>
> On Fri, Feb 7, 2014 at 4:31 PM, Robert J. Hijmans <r.hijmans@gmail.com>wrote:
>
>> The chinese characters are in
>>
>> chn1$NL_NAME_1
>>
>> It is not a pretty solution, but the problem should go away if you
>> remove that field
>>
>> chn1$NL_NAME_1 <- NULL
>>
>> Robert
>>
>>
>>
>> On Fri, Feb 7, 2014 at 8:21 AM, Oscar Perpiñan <oscar.perpinan@upm.es>
>> wrote:
>> >> However, running on the original code I now get this slightly different
>> >> error as below.  Just out of interest are you running R on Windows?
>> >
>> > No, I run R on Linux.
>> >
>> > Sorry, I don't know how to solve your problem.
>> >
>> > Best,
>> >
>> > Oscar.
>> >
>> > _______________________________________________
>> > R-sig-Geo mailing list
>> > R-sig-Geo@r-project.org
>> > https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
>
>

	[[alternative HTML version deleted]]

