Re: [R] Reference factors inside split

2022-07-11 Thread Naresh Gurbuxani
This is what I was looking for. Thanks for your quick response and elegant solution. Naresh Sent from my iPhone > On Jul 11, 2022, at 10:00 AM, Ben Tupper wrote: > > Hi, > > The grouping variable is removed from the subgroups when you split. > Instead of iterating over the elements of the

Re: [R] Reference factors inside split

2022-07-11 Thread Ben Tupper
Hi, The grouping variable is removed from the subgroups when you split. Instead of iterating over the elements of the split list, you can iterate over the **names** of the elements. In your case the account name is the grouping variable. ##start library(lattice) mydf <- data.frame( date = re

Re: [R] Please guide

2022-07-11 Thread Richard O'Keefe
ARGH! Now I understand less than ever! Previously you said that you HAD a file and that you got an error message when you tried to read and process it. You showed us the line of code. You sent us what was supposed to be a copy of the file! Now you say that - is not your code - the person who di

Re: [R] Please guide

2022-07-11 Thread Muhammad Zubair Chishti
Dear Respected Sir, My exact question is how to develop "DY_Table.xlsx" for the following code: (While considering [,-1])*100) con = as.matrix(read_excel("DY_Table.xlsx")[,-1])*100 I asked that code writer about it, he just reply to write the table. So, I need to know how to write the table fo

Re: [R] Please guide

2022-07-11 Thread Richard O'Keefe
(1) Your sample code refers to a file DY_Table.xlsx but the file you attached to a later message is called Data_oil_agri.xlsx and I find it hard to believe that they are the same file. (2) gmail offered me two different ways to download the file, but neither of them worked. Fortun