Re: [R] Help with use RMarkdown and knitr in an rdm output to word.doc

2019-04-06 Thread Jeff Newmiller
Read the help files for the functions in each code block that are actually producing output that will be displayed. One of them is not compatible with docx file output. On April 6, 2019 2:44:55 PM PDT, Bill Poling wrote: >Thank you Jeff, I am so darn close, I solve one problem and another >emer

Re: [R] Help with use RMarkdown and knitr in an rdm output to word.doc

2019-04-06 Thread Jeff Newmiller
Read the help files for the functions in each code block that are actually producing output that will be displayed. One of them is not compatible with docx file output. On April 6, 2019 2:44:55 PM PDT, Bill Poling wrote: >Thank you Jeff, I am so darn close, I solve one problem and another >emer

Re: [R] Help with use RMarkdown and knitr in an rdm output to word.doc

2019-04-06 Thread Bill Poling
Thank you Jeff, I am so darn close, I solve one problem and another emerges! However, I realized that back in July when I made my first and, up until this weekend, only attempt at this I was following the original url that was reposted by R-Bloggers that I mentioned in my original post earlier.

Re: [R] Alternative to loops

2019-04-06 Thread Bert Gunter
I skipped pre-populating MyDF$C as unnecessary: > MyDF <- data.frame(A=c(1,2,3,4,5),B=c("aa ab ac","bb bc bd","cc cf","dd","ee"), + stringsAsFactors = FALSE) ## I think this does what you want: > choices<- sapply(MyDF$B, strsplit, split = " +") > nm <- names(MyList) > MyDF$C <- nm[sapply(choices

Re: [R] Help with use RMarkdown and knitr in an rdm output to word.doc

2019-04-06 Thread Jeff Newmiller
Maybe you need to format the data frame as markdown before it gets displayed. tmp %>% summary_factorlist(dependent, explanatory, p=TRUE, add_dependent_label=TRUE) %>% knitr::kable() You can also tune how the columns are formatted a bit with arguments to the kable function. On April 6, 2019

Re: [R] Help with use RMarkdown and knitr in an rdm output to word.doc

2019-04-06 Thread Bill Poling
Hello Jeff,as always, thank you for your response. Yes .Rmd, and here I thought I was being so thorough about providing as much detail as possible, my apologies. I have an open .Rmd file from the File ->New File menu in RStudio, so I think that part is correct. My code is this. --- title: "Aut

[R] Alternative to loops

2019-04-06 Thread Ek Esawi
Thank you. Sorry i forgot to turn off the html Below is a sample of my data. My original data frame has over 10,000 rows. I want to check each element on my data frame column B (MyDF$B) to see if it contains any element(s) of MYList. if os, change the value of MyDF$C to the name of the vector of t

Re: [R] Help with use RMarkdown and knitr in an rdm output to word.doc

2019-04-06 Thread Jeff Newmiller
No surprise, the attachments did not come through. There are a limited few MIME types that are allowed, but most email programs don't let you have direct control over that, making embedding your entire reproducible plain-text example in the main body of the email the most sure path to successful

[R] Help with use RMarkdown and knitr in an rdm output to word.doc

2019-04-06 Thread Bill Poling
Hello: #sessionInfo() #R version 3.5.3 (2019-03-11) #Platform: x86_64-w64-mingw32/x64 (64-bit) #Running under: Windows >= 8 x64 (build 9200) #I have been struggling with learning how to use RMarkdown and knitr in an rdm while following this tutorial using my own data. #I Tried many months ago to

Re: [R] Color-coding data points in complex dotplot (ggplot2)

2019-04-06 Thread John Kane
HI Michael Your code runs but we did not get any attached figure. You might want to try sending it as a .pdf file. They usually make it through the spam filters On Sat, 6 Apr 2019 at 08:09, Michael Eisenring wrote: > > Dear R-List members, > > I produced a dot plot (see attachment 1) on 6 differ

[R] Color-coding data points in complex dotplot (ggplot2)

2019-04-06 Thread Michael Eisenring
Dear R-List members, I produced a dot plot (see attachment 1) on 6 different treatments (trees under 6 different conditions; in column " Location.Treatment " in my raw data). For each of these " Location.treatment" categories, I calculated a mean value and the SE for a specific compound (%CT). I