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
ne row for each tape brand? Tables created in html and then sent to a plain text mailing list can be dramatically different from the original format. It is not clear that you cannot answer your questions from the data as presented here. Look at the results of unlist(split(Tape, Tape$Product)).

[R] Regroup and create new dataframe

2018-06-01 Thread nguy2952 University of Minnesota
Hello folks, I have a big project to work on and the dataset is classified so I am just going to use my own example so everyone can understand what I am targeting. Let's take Target as an example: We consider three brands of tape: Target brand, 3M and Avery. The original data frame has 4 columns: