I am trying to work out the following example:
--
Lines 14 and 29 are exactly the same but the first one works fine and the second one gives an error: LoadError: MethodError: `convert` has no method matching convert(::Type{Float64}, ::DataArrays.NAtype) Does anyone know what's happening here? You received this message because you are subscribed to the Google Groups "julia-stats" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
The problem is that data4[:Y] is an Array, not a DataArray... so you can't add NA values to it. I think it works if you add the following command right before the last line: data4[:Y] = convert(DataArray,data4[:Y]) On Wed, Dec 30, 2015 at 1:39 PM, Min-Woong Sohn <[hidden email]> wrote:
You received this message because you are subscribed to the Google Groups "julia-stats" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Thanks a bunch. It works now.
-- On Wednesday, December 30, 2015 at 2:42:54 PM UTC-5, Alex Williams wrote:
You received this message because you are subscribed to the Google Groups "julia-stats" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Free forum by Nabble | Edit this page |