My CSV consists of rows with unequal number of items. Eg.
Customer1, 01XX, 02XY, 05XYZ, 100XYZ, 03X23
Customer2, 02XX, 012X, 05XYZ
Customer3, 01XX, 02XY, 05XYZ, 012X, 005XZZ, 100XYZ
etc.
How to read such data from csv into an R object so that it could be referenced by the first item in CSV row, Customer_x, so that it can be used similar to df, be parametrised, something like:
myVector <- myCSVdata[CustomerID]
myVector
[1] 02XX, 012X, 05XYZ
EDIT: why minuses? How to correct? Maybe there is a more effective way than read csv when rows are unequal. Maybe a list of vectors? I am not sure.
EDIT2: I am trying at self-moderation: found a question worded differently for similar thing and an answer that generates a list of vectors, will experiment with that too: https://stackoverflow.com/a/18922750/3480717