You cannot load it directly. You should read it into dense vectors and then
call the `sparse` function. Do help(sparse) to see how it works.
-viral
On Sunday, July 27, 2014 9:03:23 PM UTC+5:30, paul analyst wrote:
>
> I have the data in a dense array with a million zeros (in csv). How to the
> data load to sparse array?
> Paul
>
> W dniu niedziela, 27 lipca 2014 13:59:47 UTC+2 użytkownik Viral Shah
> napisał:
>>
>> The simplest thing to do is to read the file and then create vectors that
>> you can pass to `sparse(I,J,V)`, where I is the vector of row indices, J of
>> column indices, and V of values.
>>
>> -viral
>>
>> On Friday, July 25, 2014 1:29:07 AM UTC+5:30, paul analyst wrote:
>>>
>>> how to read data from a file to a new sparse matrix? date = readcsv ("
>>> data.txt")
>>> Paul
>>>
>>>