No problem. On Thu, Dec 18, 2014 at 2:11 PM, Min-Woong Sohn <mws...@gmail.com> wrote:
> Thank you so much. It works beautifully. > > On Thursday, December 18, 2014 1:51:21 PM UTC-5, Stefan Karpinski wrote: >> >> Try lowercase(string(v)). >> >> On Thu, Dec 18, 2014 at 1:47 PM, Min-Woong Sohn <mws...@gmail.com> wrote: >> >>> Trying again. Here's the code that generated an error: >>> >>> vars = names(df) >>> >>> for (x, v) in enumerate(vars) >>> println("$x, $v", lowercase(v)) >>> end >>> >>> The error comes from the lowercase() function, saying that it does not >>> know how to handle Symbol type. >>> >>> On Thursday, December 18, 2014 1:15:49 PM UTC-5, Stefan Karpinski wrote: >>>> >>>> The variable seems to be named x not v? >>>> >>>> On Thu, Dec 18, 2014 at 12:55 PM, Min-Woong Sohn <mws...@gmail.com> >>>> wrote: >>>> >>>>> vars = names(df) where df is a DataFrame object and vars is an array >>>>> of Symbols. How do I change the elements in vars to lower case? When I did >>>>> >>>>> for x in vars >>>>> println("$v") >>>>> end >>>>> >>>>> it gives me an error. >>>>> >>>>> >>>>> Thanks a bunch. >>>>> >>>> >>>> >>