Re: [R] Regroup and create new dataframe

2018-06-01 Thread David L Carlson
No html!, Copy the list using Reply-All. The data frame group_PrivateLabel does not contain variables called Product_Name or Region. David C From: nguy2952 University of Minnesota Sent: Friday, June 1, 2018 2:13 PM To: David L Carlson Subject: Re: [R] Regroup and create new dataframe Hi

Re: [R] Regroup and create new dataframe

2018-06-01 Thread David L Carlson
sent reasonably close? What should it look like after it is transformed? David C From: nguy2952 University of Minnesota Sent: Friday, June 1, 2018 1:57 PM To: David L Carlson Subject: Re: [R] Regroup and create new dataframe Hi, This is not an assignment for school. This is a project at WORK

Re: [R] Regroup and create new dataframe

2018-06-01 Thread Rui Barradas
Hello, I don't understand why you are splitting data1 and then unlisting the result. if you want to apply a modeling function to each of the subdf's, split by Product name, you can follow more or less these steps: 0. Create a dataset set.seed(9376)    # Make the results reproducible n <-

Re: [R] Regroup and create new dataframe

2018-06-01 Thread David L Carlson
Your question raises several issues. First, we do not do homework here, so if this is an assignment, you will not get much help. Second, you need to send your emails as plain text, not html. Third, you need to provide a reproducible example and send your data using dput() so that we can follow w