I have multiple arrays in R. Each array has following structure:
a. The dimension names are characters.
b.The values in array are frequency of each character.
c k j a d l n s
5 5 3 1 1 1 1 1
d j o a h i k q z r
4 4 4 3 2 2 2 1 1 1
I want to combine these arrays into one such that frequency of each letter is retained.
Desired output:
c k j a d l n s o h i k q z r
[1] 5 5 3 1 1 1 1 1 0 0 0 0 0 0 0
[2] 0 0 4 3 4 0 0 0 4 2 2 2 1 1 1
How can this be done?
Try
Or
data