Re: [R] Help with a third ggplot error

2019-06-18 Thread Richard O'Keefe
Nobody else has asked the obvious question: why are the data squashed together like that in the first place? why not modify the process that generates the data so that it does not do that? Jamming things together like that is not common practice with CSV files, so what does the CSV file look lik

Re: [R] Help with a third ggplot error

2019-06-18 Thread Sam Charya via R-help
Thanks a lot Boris, I tried out your worked out solution and it works just perfectly fine. No doubt I need a lot of practice with regexr and the pattern  stated by you - I will do that now. Thanks a lot for pointing me in the right direction. Appreciate it a lot. Sam.  On Monday, 17 June 2

Re: [R] Help with a third ggplot error

2019-06-17 Thread Upton, Stephen (Steve) (CIV)
And slightly differently with strcapture (using Jim Lemon's reprex): mydf <- strcapture("([a-zA-Z ]+)([0-9]+\\.[0-9]+)",scdf$V1,data.frame(Channel="none",Price=0)) change the regex as needed, following Boris' advice. steve On 6/17/19, 5:09 AM, "R-help on behalf of Boris Steipe" wrote:

Re: [R] Help with a third ggplot error

2019-06-17 Thread Boris Steipe
(Technically you are now thread-hijacking. But here goes:) mydf <- data.frame(V11 = c("DD Pack0.002", "FTA English News0.003", "FTA Complimentary0.004"), stringsAsFactors = FALSE) # regex matching start-of-string(letters or

Re: [R] Help with a third ggplot error

2019-06-16 Thread Sam Charya via R-help
Hello All, I need help with splitting a string. My data frame is in the following format:                       V11            DD Pack0.002   FTA English News0.003  FTA Complimentary0.004                 WB1.185               WION1.186         Al Jazeera0.007      Animal Planet2.368    Asianet M

Re: [R] Help with a third ggplot error

2019-06-15 Thread Bill Poling
= test_tbl Oh my gosh! Thank you all so much! Please enjoy the rest of your weekend! WHP From: Roy Mendelssohn - NOAA Federal Sent: Saturday, June 15, 2019 3:49 PM To: Bill Poling Cc: Richard M. Heiberger ; r-help (r-help@r-project.org) Subject: Re: [R] Help with a third ggplot error If I were a

Re: [R] Help with a third ggplot error

2019-06-15 Thread Bill Poling
Thank you Roy, great suggestion, reviewing the link and trying steps now. WHP From: Roy Mendelssohn - NOAA Federal Sent: Saturday, June 15, 2019 3:49 PM To: Bill Poling Cc: Richard M. Heiberger ; r-help (r-help@r-project.org) Subject: Re: [R] Help with a third ggplot error If I were a

Re: [R] Help with a third ggplot error

2019-06-15 Thread Bill Poling
now, UGH! WHP From: Rui Barradas Sent: Saturday, June 15, 2019 3:51 PM To: Bill Poling ; Richard M. Heiberger Cc: r-help (r-help@r-project.org) Subject: Re: [R] Help with a third ggplot error Hello, Inline. Às 20:29 de 15/06/19, Bill Poling escreveu: > Hello Richard, thank you for your resp

Re: [R] Help with a third ggplot error

2019-06-15 Thread Rui Barradas
, col_lengths(x)) 14. tibble:::check_valid_cols(x) From: Richard M. Heiberger Sent: Saturday, June 15, 2019 3:17 PM To: Bill Poling Cc: r-help (r-help@r-project.org) Subject: Re: [R] Help with a third ggplot error you did something like this: mydf <- data.frame(y=1:16, + AA=rep(factor(lette

Re: [R] Help with a third ggplot error

2019-06-15 Thread Roy Mendelssohn - NOAA Federal via R-help
me_repair, col_lengths(x)) > 14. tibble:::check_valid_cols(x) > > From: Richard M. Heiberger > Sent: Saturday, June 15, 2019 3:17 PM > To: Bill Poling > Cc: r-help (r-help@r-project.org) > Subject: Re: [R] Help with a third ggplot error > > you did something like this:

Re: [R] Help with a third ggplot error

2019-06-15 Thread Bill Poling
o_tibble(x, .rows, .name_repair, col_lengths(x)) 14. tibble:::check_valid_cols(x) From: Richard M. Heiberger Sent: Saturday, June 15, 2019 3:17 PM To: Bill Poling Cc: r-help (r-help@r-project.org) Subject: Re: [R] Help with a third ggplot error you did something like this: > mydf <- data

Re: [R] Help with a third ggplot error

2019-06-15 Thread Eric Berger
looking for split to be 3 months from the end of current time > period. etc depends on our date period > > train_tbl <- dftmp %>% > filter(Date2 < ymd(train_test_split_date)) > > test_tbl <- dftmp %>% > filter(Date2 >= ymd(train_test_split_date)) > &g

Re: [R] Help with a third ggplot error

2019-06-15 Thread Bill Poling
%>% filter(Date2 >= ymd(train_test_split_date)) From: Eric Berger Sent: Saturday, June 15, 2019 2:54 PM To: Bill Poling Cc: r-help (r-help@r-project.org) Subject: Re: [R] Help with a third ggplot error Is this supposed to be a reprex? I don't see where train_tbl is defined. On Fri,

Re: [R] Help with a third ggplot error

2019-06-15 Thread Richard M. Heiberger
you did something like this: > mydf <- data.frame(y=1:16, +AA=rep(factor(letters[1:8]), 2), +BB=rep(factor(LETTERS[12:13]), each=8), +CC=rep(factor(rep(LETTERS[9:11], times=c(3,1,4))), 2)) > ggplot(mydf, aes(ls, y)) Don't know how to auto

Re: [R] Help with a third ggplot error

2019-06-15 Thread Eric Berger
Is this supposed to be a reprex? I don't see where train_tbl is defined. On Fri, Jun 14, 2019 at 10:30 PM Bill Poling wrote: > #RStudio Version 1.2.1335 > sessionInfo() > #R version 3.5.3 (2019-03-11) > #Platform: x86_64-w64-mingw32/x64 (64-bit) > #Running under: Windows >= 8 x64 (build 9200) >

[R] Help with a third ggplot error

2019-06-14 Thread Bill Poling
#RStudio Version 1.2.1335 sessionInfo() #R version 3.5.3 (2019-03-11) #Platform: x86_64-w64-mingw32/x64 (64-bit) #Running under: Windows >= 8 x64 (build 9200) Hello I am fitting an Arima model and all appears to go well until I get to the ggplot, (again, lots of laughs). Deja Vu all over again! (