search for: liakhovitski

Displaying 20 results from an estimated 200 matches for "liakhovitski".

Did you mean: liakhovetski
2017 Jul 27
2
na.rm = T treatment by ggplot2's geom_bar
...Dimitri. A letter T variable can easily arise in the problem domain when you are not thinking of logical values at all, at which point your cavalier use of T as a synonym for TRUE can suddenly become a bug. -- Sent from my phone. Please excuse my brevity. On July 27, 2017 8:18:03 AM PDT, Dimitri Liakhovitski <dimitri.liakhovitski at gmail.com> wrote: >Thank you, Bert! > >I do NOT have an object named "T" in scope (I checked - and besides, it >would never occur to me to use this name). >TRUE or T results in the same unexpected behavior: > >ggplot(data = md, mapping =...
2017 Jul 27
0
na.rm = T treatment by ggplot2's geom_bar
...e can easily arise in the problem domain when you are not thinking > of logical values at all, at which point your cavalier use of T as a > synonym for TRUE can suddenly become a bug. > -- > Sent from my phone. Please excuse my brevity. > > On July 27, 2017 8:18:03 AM PDT, Dimitri Liakhovitski < > dimitri.liakhovitski at gmail.com> wrote: > >Thank you, Bert! > > > >I do NOT have an object named "T" in scope (I checked - and besides, it > >would never occur to me to use this name). > >TRUE or T results in the same unexpected behavior: >...
2017 Jul 27
2
na.rm = T treatment by ggplot2's geom_bar
...have an object named "T" in scope? -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Thu, Jul 27, 2017 at 7:49 AM, Dimitri Liakhovitski <dimitri.liakhovitski at gmail.com> wrote: > To clarify: my question is not about "who could I exclude NAs from being > counted" - I know how to do that. > My question is: Why na.rm = T is not working for geom_bar in this case? > > On Thu, Jul 27, 2017 at 8:24 AM, Dim...
2008 Sep 08
7
Question about multiple regression
...es of up to N=700 but thousands and thousands of them. I am designing a simulation in R and running those regressions and R itself is way too slow. So, I am thinking of compiling the regression run itself in Fortran and Java and then calling it from R. Thank you very much for any advice! Dimitri Liakhovitski MarketTools, Inc. Dimitri.Liakhovitski at markettools.com
2013 Jun 08
1
splitting a string column into multiple columns faster
...And it's even slower because I have to do it step-by-step many times. Any way to do it by specifying all 3 delimiters at once ("aaa","_bbb","_ccc") and then split it in one swoop into a data frame with several columns? Thanks a lot for any pointers! -- Dimitri Liakhovitski [[alternative HTML version deleted]]
2017 Jul 27
0
na.rm = T treatment by ggplot2's geom_bar
To clarify: my question is not about "who could I exclude NAs from being counted" - I know how to do that. My question is: Why na.rm = T is not working for geom_bar in this case? On Thu, Jul 27, 2017 at 8:24 AM, Dimitri Liakhovitski < dimitri.liakhovitski at gmail.com> wrote: > Hello! > > I am trying to understand how ggplot2's geom_bar treats NAs. > The help file says: > > library(ggplot2) > ?geom_bar > na.rm: If FALSE, the default, missing values are removed with a warning. > If TRUE, mi...
2017 Jul 27
3
na.rm = T treatment by ggplot2's geom_bar
...without warnings and generates counts for each factor level AS WELL AS the NAs. Makes sense. Now, I don't want the NAs to be counted. So, I run: ggplot(data = md, mapping = aes(x = a)) + geom_bar(na.rm = T) But I still have NAs in the picture. Why? What am I missing? Thank you! -- Dimitri Liakhovitski [[alternative HTML version deleted]]
2017 Jul 27
0
na.rm = T treatment by ggplot2's geom_bar
...-- Bert > > > Bert Gunter > > "The trouble with having an open mind is that people keep coming along > and sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Thu, Jul 27, 2017 at 7:49 AM, Dimitri Liakhovitski > <dimitri.liakhovitski at gmail.com> wrote: > > To clarify: my question is not about "who could I exclude NAs from being > > counted" - I know how to do that. > > My question is: Why na.rm = T is not working for geom_bar in this case? > > > > On Thu...
2011 Feb 25
6
preventing repeat in "paste"
...t"; e<-"end" middle<-as.character(c(1,2,3)) I would like to get the following result: "start 123 end" or "start 1 2 3 end" or "start 1,2,3 end" How can I avoide this (undesired) result: paste(s,middle,e,sep=" ") Thank you! -- Dimitri Liakhovitski Ninah Consulting www.ninah.com
2009 Oct 13
4
replacing period with a space
...x=c("aa.bb","cc.dd.ee")) x$x<-as.character(x$x) x I am sorry for such a simple question - but how can I replace all periods in x$x with spaces? sub('.', ' ', x$x) - removes all letters to the left of each period... Thanks a lot for your advice! -- Dimitri Liakhovitski Ninah.com Dimitri.Liakhovitski at ninah.com
2017 Jul 27
1
na.rm = T treatment by ggplot2's geom_bar
I suspect this is by design. Questions about "why" should probably cc the contributed package maintainer(s). -- Sent from my phone. Please excuse my brevity. On July 27, 2017 7:49:47 AM PDT, Dimitri Liakhovitski <dimitri.liakhovitski at gmail.com> wrote: >To clarify: my question is not about "who could I exclude NAs from >being >counted" - I know how to do that. >My question is: Why na.rm = T is not working for geom_bar in this case? > >On Thu, Jul 27, 2017 at 8:24 AM, Dim...
2009 Apr 23
4
rbind data frames stored in a list
...(X) How can I most effectively transform X into a data frame with columns a, b, and c? I would love to find a generic solution, and not a specific solution like this one: frame<-rbind(X[[1]],X[[2]],X[[3]]) ...because in reality I have a lot of elements of X. Thank you very much! -- Dimitri Liakhovitski MarketTools, Inc. Dimitri.Liakhovitski at markettools.com
2009 Apr 28
4
Producing customized tickmarks when producing a graph using "curve"
...;turn off" the default tick marks and introduce those tick marks in specific locations. For example, currently in my X axis tick marks are (automatically) at 10, 11, 12, 13 but I want them to be in 5 specific locations, like 9.89, 10.34, etc. Any hint would be greatly appreciated! -- Dimitri Liakhovitski MarketTools, Inc. Dimitri.Liakhovitski at markettools.com
2010 Mar 04
4
Analogue to SPSS regression commands ENTER and REMOVE in R?
I am not sure if this question has been asked before - but is there a procedure in R (in lm or glm?) that is equivalent to ENTER and REMOVE regression commands in SPSS? Thanks a lot! -- Dimitri Liakhovitski Ninah.com Dimitri.Liakhovitski at ninah.com
2010 Oct 01
3
Suppressing printing in the function
Hello! I wrote a function that returns a data frame. Nowhere in the function do I say print(my.data.frame), but when I run the function - the data frame is printed on the console. Is there any way to suppress it? Thank you! -- Dimitri Liakhovitski Ninah Consulting www.ninah.com
2013 Mar 14
3
get the sign of a value
Hello! Can't figure it out - hope it's simple: # I have some value (can be anything), e.g.: x = 12 # I'd like it to become 1. # If the value is negative (again, it can be anything), e.g.: y = -12 # I'd like it to become -1. How could I do it? Thanks a lot! -- Dimitri Liakhovitski [[alternative HTML version deleted]]
2010 Oct 25
3
finding the year of a date
I know that I can use as.yearmon in the package "zoo" to find the year and the month of a date. I can use as. yearqtr to find the year and the quarter. But how can one find just the year of a date? Thanks a lot! -- Dimitri Liakhovitski Ninah Consulting www.ninah.com
2013 Jun 27
2
choicemodelr is misbehaving under R3.0
...him. It showed time left as 14 min in the beginning and then the time left started growing. Then, I asked a colleague who has R2.15 (on a 32-bit Windows machine) to run my code. It took him 12 minutes! So, something is going on with ChoiceModelR unde R3.0 Thanks for looking into it. -- Dimitri Liakhovitski [[alternative HTML version deleted]]
2010 Aug 04
6
applying strsplit to a whole column
...s=c("X..aba","X..abb","X..abc","X..abd")) x$names<-as.character(x$names) (x) str(x) Can't figure out how to apply strsplit in this situation - without using a loop. I hope it's possible to do it without a loop - is it? Thanks a lot! -- Dimitri Liakhovitski Ninah Consulting www.ninah.com
2009 Sep 23
2
Function to check if a vector contains a given value?
Dear R'rs, is there a function that checks if a given vector contains a certain value. E.g., x<-c(1,2,3,4). How can I get a TRUE or FALSE for whether x contains a 2? -- Dimitri Liakhovitski Ninah.com Dimitri.Liakhovitski at ninah.com