I just tried to use the new dot syntax for vectorising function calls in
order to convert an array of strings into an array of Int64. For example, if
this would work, it would be very, very handy:

 

x = ["1", "2", "3"]

parse.(Int64, x)

 

Right now I get an error, but I wonder whether this could be enabled somehow
in this new framework? If this would work for all sorts of parsing, type
conversions etc. it would just be fantastic. Especially when working
DataFrames and one is in the first phase of cleaning up data types of
columns etc. this would make for a very nice and short notation.

 

Thanks,

David 

 

--

David Anthoff

University of California, Berkeley

 

http://www.david-anthoff.com

 

Reply via email to