[R] digits in matrix
Duncan Murdoch
murdoch.duncan at gmail.com
Fri Jan 30 12:51:44 CET 2015
On 30/01/2015 6:31 AM, Knut Krueger wrote:
> Am 30.01.2015 um 11:50 schrieb PIKAL Petr:
>>
>> You cannot. Matrix is a vector with dimensions so basically it has to have the same mode and type of data.
>>
>> The only way I can think about is to split matrix to 3 matrices before making calculation an keep those 3 matrices separate.
>>
>> Cheers
>> Petr
>>
>
> but looking to data[,3] this column is not converted, and the matrix is
> mixed
>
You are mixing up formatting with storage. Floating point numbers will
be displayed without decimals if they are close enough to whole numbers.
Duncan Murdoch
More information about the R-help
mailing list