definelty l used to work with R. l don't care by NA , l did that beauce m[1,2]= m[2,1] and so on
On Fri, Aug 19, 2016 at 2:56 PM, Jeffrey Sarnoff <[email protected]> wrote: > I'm guessing you have worked with R, because the example you give uses NA > as if it were an integer. Julia does not have NA that way (there is > special class of Nullable types that either are valued with e.g. an Int or > else isnull .. probably you do not need that right now). > Would using floating point values and using the floating point NaN > (not-a-number, a special floating point value) where you have NA work, or > is this NA more like 'dont care', where replacing them with 0s would work? > > > > On Friday, August 19, 2016 at 8:31:21 AM UTC-4, Ahmed Mazari wrote: >> >> Hello, >> >> l have the number of columns equals the number of rows . and the the >> diagonal is esqual to zero . How can l build this matrix ? >> #mat >> # [,1] [,2] [,3] [,4] >> #[1,] 0 NA NA NA >> #[2,] 1 0 NA NA >> #[3,] 2 4 0 NA >> #[4,] 3 5 6 0 >> >> >> thank you >> >
