I want to use R to create relationship matrix from the list of known relationships. For example, with the following dataset:
John Green Mary Blue Mary Red John Blue I have to:
Green Blue Red John 1 0 Mary 1 1 I could not find how it happened. Thanks in advance for any suggestions.
You can use table .
Comments
Post a Comment