matrix multiplication - multiply two non-na matrices in R, result is all-NA -


मेरे पास दो मैट्रिक्स हैं, ए और बी।

  sum (is.na (ए )) = 0 योग (is.na (B)) = 0  

लेकिन जब मैं उन्हें गुणा करता हूँ, परिणाम (एक 45x1 मैट्रिक्स) सभी एनए है

 < कोड> योग (is.na (A% *% B)) = 45  

कोई भी विचार? मैं अब डेटा अपलोड करने पर काम करूंगा, ताकि लोग रुचि ले सकें अगर लोग पुन: उत्पन्न कर सकें।


Comments

Popular posts from this blog

scala - Play Framework - how to bind form to a session field -

c++ - Why does Visual Studio Release build break on non-executing code line -

javascript - parsing json not working -