`convert` does not seem to work with symbols. I get an error (same for 
String and UTF8String as well).
Test commands:
testdf = DataFrame(A = [1,2,3], B=[2,3,4])
string(names(testdf)[1]) # works
convert(String, names(testdf)[1]) # throws error
convert(ASCIIString, names(testdf)[1]) # throws error
convert(UTF8String, names(testdf)[1]) # throws error

Best Wishes.

On Sunday, February 1, 2015 at 1:49:50 PM UTC-5, Ivar Nesje wrote:
>
> And more generally, for all types that makes sense to convert between, you 
> can use the convert function
>
> convert(String, :blah)
>
> (or maybe better, to avoid type instability issues)
> convert(ASCIIString, :blah)
> convert(UTF8String, :blah)
>
> In 0.4 the default constructor for all types will fallback to convert, so 
> for your own types, you usually just need to add a convert definition.
>
> søndag 1. februar 2015 16.29.48 UTC+1 skrev Milan Bouchet-Valat følgende:
>>
>> Le dimanche 01 février 2015 à 07:18 -0800, Arshak Navruzyan a écrit : 
>> > Hello, 
>> > 
>> > A really basic question how do I turn a symbol into a string ? 
>> > 
>> > :blah -> "blah" 
>> julia> string(:blah) 
>> "blah" 
>>
>> Easy, isn't it? 
>>
>> Regards 
>>
>

Reply via email to