I'm trying to create a data structure to store vectors. What I'm looking for is a 3x2 matrix with vectors of different lenght inside.
front side
Original c(dim=221) c(dim =200)
zscore c(dim=221) c(dim =200)
smoothed c(dim=221) c(dim =200)
I have tried doing:
dataset <- array(dim=c(3,2))
rownames(dataset) <- c("original","zscores","smoothed")
colnames(dataset) <- c("front", "side")
dataset["original", "side"] <- myNumericVectorOfLength221
dataset["original", "front"] <- myNumericVectorOfLength200
But it throws an error of "not the same size". A three dimensional array like: dataset <- array(dim=c(3,2,221))
didn't work because of the differences of length and if I create a matrix of vectors like (dataset["original", "side"] <- list(c(1,2,3)))
I lose the col/rownames.
Is there any solution that fits my idea? Thanks in advance.