Re: [R] Combine lists into a data frame or append them to a text file

2018-12-16 Thread Ek Esawi
Hi Jim, Thanks again. Actually i changed my code where the lists are not nested. Your code works, as you said for the example, but still is not working for my lists (30). My lists have different columns and rows and several are NULL; plus there are many blank space which i suppose don't make much

Re: [R] error = FALSE causes knit2wp to throw duplicate label error

2018-12-16 Thread Jeff Newmiller
This seems a bit deep into knitr for R-help... you might have better luck on StackExchange. I also suggest that posting an incomplete example is usually the kiss of death for getting constructive assistance online. FWIW my guess is that executing knitr from within an Rmarkdown document is a bad

Re: [R] error = FALSE causes knit2wp to throw duplicate label error

2018-12-16 Thread Duncan Murdoch
On 16/12/2018 2:48 PM, Nathan Parsons wrote: Goal: post from R to Wordpress installation on server. Problem: R keeps returning the error “Error in parse_block(g[-1], g[1], params.src) : duplicate label 'setup’” if error = FALSE in the knitr options or in an r chunk. It works fine if error = TRUE

[R] error = FALSE causes knit2wp to throw duplicate label error

2018-12-16 Thread Nathan Parsons
Goal: post from R to Wordpress installation on server. Problem: R keeps returning the error “Error in parse_block(g[-1], g[1], params.src) : duplicate label 'setup’” if error = FALSE in the knitr options or in an r chunk. It works fine if error = TRUE. I could just go through each post each time a

Re: [R] Combine lists into a data frame or append them to a text file

2018-12-16 Thread Ek Esawi
I tried Jim's function and it works. But here is an example just in case. AA <- list(a=c(1,2,3,4),b = c("a","b","c")) BB <- list(c=c(1,2,3,4,5),d=c("a","b","c","d","e")) mylist <- (list(AA,BB)) lapply(mylist,function(x) write.table(x,file = test.txt)) Show Traceback Error in (function (..., ro

Re: [R] [R studio] Plotting of line chart for each columns at 1 page

2018-12-16 Thread Jim Lemon
Hi Subhamitra, As I said, the code I sent is an approximation to get your year labels in about the correct places. You are welcome to improve the calculations. 182 days is about half a year, so that the first "tick" will fall around the end of June (i.e. the middle of the year). If you specify the

Re: [R] [R studio] Plotting of line chart for each columns at 1 page

2018-12-16 Thread Subhamitra Patra
Hello Sir, I have three queries regarding your suggested code. *1. *In my last email, I mentioned why there are missing observations in my data series. In the line, *year_mids<-seq(182,5655,by=229), * *A. what 182 indicates and what is the logic behind the consideration of 229 increments, althou