b = [@data([4]),a[1:end-1]] b = [@data([NA,4]),a[1:end-1]] work and return a DataArray.
But b = [@data([NA]),a[1:end-1]] says "ERROR: Type of literal data cannot be inferred" and I don't get why. Maybe you know how to fix the latter ? On Wednesday, 24 September 2014 03:11:20 UTC+2, Li Zhang wrote: > > > > a=@data([NA,3,5,7,NA,3,7]) > i want to do this: > b=[NA,a[1:end-1]] > > but julia says no convert methods. > > is there anyone know some other ways? >
