in reply to Memory issue with cancer data (analogy)

So you want to translate a dataset

X H 1 3 3 1 3 4 2 8 1 1 3 1 etc...

into

X\H 1 2 3 4 5 6 7 8 etc... 1 1 0 1 0 0 0 0 0 2 0 0 0 0 0 0 0 1 3 2 0 0 1 0 0 0 0 etc...

? Just like an Excel pivot table?

Replies are listed 'Best First'.
Re^: Memory issue with cancer data (analogy)
by mtmcc (Hermit) on Jul 25, 2013 at 15:30 UTC
    I think it depends on whether your hooks and hangers and ties etc. have 'names', or whether you could reliably track the data by index alone. Could you post a small sample of the real data you're trying to manipulate?

    EDIT: Sorry hdb, was aiming for OP.

      Only the closets need names - these are the genes, the next to levels are the amino acid positions in each gene of length L (hangers), and the number of mutations at each amino acid position (number of ties on hanger ). I think for the last two index would be sufficient?