Hello,
I have a very large dataset (i.e., >10k rows) which contains two columns: the first column contains the variables of interest and the second the values corresponding to those variables. These variables are repeated several times over one column (rather than split up). To demonstrate, I have included a screenshot of a pseudo dataset in which we have several variables of interest (named as A to G) in the first column with their respective values in the second column.
What I am hoping to do is split the long two columns every time the variable "A" appears. I've seen suggestions in the forum where you split based on the number of rows (i.e., split every 15th row, for example). The reason I haven't applied this is because sometimes the column contains more than the initial variables of interest. For example, rather than having A to G, you might have A to M appear in some instances along the column. Therefore, ideally, I'd like to split the large column into smaller columns every time the variable "A" appears.
Any recommendations would be greatly appreciated. Thank you in advance!
I have a very large dataset (i.e., >10k rows) which contains two columns: the first column contains the variables of interest and the second the values corresponding to those variables. These variables are repeated several times over one column (rather than split up). To demonstrate, I have included a screenshot of a pseudo dataset in which we have several variables of interest (named as A to G) in the first column with their respective values in the second column.
What I am hoping to do is split the long two columns every time the variable "A" appears. I've seen suggestions in the forum where you split based on the number of rows (i.e., split every 15th row, for example). The reason I haven't applied this is because sometimes the column contains more than the initial variables of interest. For example, rather than having A to G, you might have A to M appear in some instances along the column. Therefore, ideally, I'd like to split the large column into smaller columns every time the variable "A" appears.
Any recommendations would be greatly appreciated. Thank you in advance!