Re: [R] hist from a list

2021-03-08 Thread David Winsemius
On 8/3/20 11:48 AM, Pedro páramo wrote: Hi Rasmus, Josh and Rui, First of all many thanks in advance about your help. The first thig is sometimes you say " you are posting in HTML and that makes the post unreadable as this is a plain text list" how can I put the code in the correct way, not ht

Re: [R] hist from a list

2020-08-04 Thread Pedro páramo
Hi Rasmus, Josh and Rui, First of all many thanks in advance about your help. The first thig is sometimes you say " you are posting in HTML and that makes the post unreadable as this is a plain text list" how can I put the code in the correct way, not html (attaching in txt?) The second about th

Re: [R] hist from a list

2020-08-03 Thread Rui Barradas
Hello, Thanks for the data in dput format. If you run str(bwchist) you will see that what you have is a data.frame, yes, but, with columns of class "list", not vectors. So the first step is to make them vectors, to unlist the lists. I will do it applying function unlist() to each of the column

Re: [R] hist from a list

2020-07-31 Thread Rasmus Liland
On 2020-07-31 10:07 -0500, Joshua Ulrich wrote: | On Fri, Jul 31, 2020 at 9:55 AM Rui Barradas wrote: | | Às 15:44 de 31/07/2020, Michael Dewey escreveu: | | | Dear Pedro | | | | | | Some comments in-line | | | | | | On 30/07/2020 21:16, Pedro páramo wrote: | | | | Hi all, | | | | | | | | I attach

Re: [R] hist from a list

2020-07-31 Thread Joshua Ulrich
Hi Pedro, Another 'best practice' and polite thing to do is link to other places you may have cross-posted. That will give people the opportunity to see if your questions has been answered in another forum. I saw your post on R-SIG-Finance (https://stat.ethz.ch/pipermail/r-sig-finance/2020q3/014

Re: [R] hist from a list

2020-07-31 Thread Rui Barradas
Hello, I second Michael's opinion. When the post's code is very long, there is a tendency to have less answers. Please post the output of dput(head(bwchist, 30)) It's much shorter code and it recreates the data so we will be able to see what's wrong and try to find a solution. Hope this

Re: [R] hist from a list

2020-07-31 Thread Michael Dewey
Dear Pedro Some comments in-line On 30/07/2020 21:16, Pedro páramo wrote: Hi all, I attach my code, the think is I want to make a bar plot the last variable called "bwchist" so the X axis are "Accion" and the y axis are "reval" values. I have prove class(bwchist) and says dataframe but its

[R] hist from a list

2020-07-31 Thread Pedro páramo
Hi all, I attach my code, the think is I want to make a bar plot the last variable called "bwchist" so the X axis are "Accion" and the y axis are "reval" values. I have prove class(bwchist) and says dataframe but its still a list because it says me I have prove to unlist, but it doesnt work