Re: [R] Knitr/Lattice/Lyx [was: Trellis Plots: translating lattice xyplot() to ggplot()]

2015-07-12 Thread Rich Shepard
On Sat, 11 Jul 2015, Yihui Xie wrote: There is a ')' missing in the end. When you see errors from parse(), that often means the code is not syntactically correct. Most sincere appologies for my not catching that each time I looked at the code. Will be more thorough and put the problem aside

Re: [R] Rmarkdown / knitr naming the output file

2015-07-12 Thread Rainer Hurling
Am 06.07.2015 um 14:24 schrieb AURORA GONZALEZ VIDAL: > Hello. > I have a question for Rmarkdown users. > > Is there any way to give a name to the output document inside the Rmd? > > For example, my rmd's name is "bb.Rmd" but when I knitr to pdf I want it to > name the pdf differently than "bb.pd

Re: [R] NaN produced from log() with positive input

2015-07-12 Thread Maram Salem
Dear Arne, Will do. Thanks for helping. Maram Sent from my iPhone > On Jul 12, 2015, at 8:23 AM, Arne Henningsen > wrote: > > Dear Maram > >> On 8 July 2015 at 17:52, Maram Salem wrote: >> Dear Arne, >> >> On a second thought, as per your mail "the warning messages occur each time, >> when

[R] merge: right set overwrite left set

2015-07-12 Thread aldi
Hi, I have two sets of data x.HHu and y.HHo, rows are IDs and columns are individuals. I do not know in advance indv or HHid, both of them will be captured from the data. As the y.HHo set updates, y.HHo set has better information then x.HHu set. Thus I want a merge where right set overwrites le

Re: [R] merge: right set overwrite left set

2015-07-12 Thread Ista Zahn
I think this does what you want: ## find idiv coloumns in x.HHu.map that don't exist in y.HHo.map x.HHu.map <- x.HHu.map[ c("HHid", "position", names(x.HHu.map)[ !names(x.HHu.map) %in% names(y.HHo.map)] )] ## merge, adding extra column from x.HHu

Re: [R] merge: right set overwrite left set

2015-07-12 Thread Jeff Newmiller
I get confused by your use of the position map table. If I follow your description toward your desired result, I take a different route that makes sense to me. Perhaps it will make sense to you as well. The key idea is to make individual comparisons of the values for each combination of HHid an

Re: [R] [FORGED] data$variable=factor(....)

2015-07-12 Thread Rolf Turner
(1) Please keep the discourse on list. (2) Moral of your story: Don't use Excel --- for *anything*!!! (3) Why didn't you follow my suggestion? (4) Naturally you get NAs! There are no levels of "1" or "2" in your data. The levels are "F" and "M", for crying out loud!!! Why *on earth* did

[R] Putting Zero in table using R

2015-07-12 Thread sreenath
I have exel table having 39 coloumns ,and some cells are balnk.How can i put zero in these empty cells using R -- View this message in context: http://r.789695.n4.nabble.com/Putting-Zero-in-table-using-R-tp4709807.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] Putting Zero in table using R

2015-07-12 Thread David Winsemius
On Jul 12, 2015, at 9:27 PM, sreenath wrote: > I have exel table having 39 coloumns ,and some cells are balnk.How can i put > zero in these empty cells using R > If you export with tab or comma as the separator, it will get imported as an NA and you can change the NA's to 0. > > -- > View th