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

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to