search for: dusa

Displaying 20 results from an estimated 173 matches for "dusa".

Did you mean: dsa
2007 Jan 09
5
a question of substitute
...ble ### I also tried binding the two vectors in a data.frame, with no avail. I did find a hack, creating two new vectors inside the function and creating a fresh formula, so I presume this has something to do with environments. Could anybody give me a hint on this? Thank you, Adrian -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest sector 5 Romania Tel./Fax: +40 21 3126618 \ +40 21 3120210 / int.101
2020 Apr 13
3
detect ->
Using => and <= instead of -> and <- would make things easier, although the precedence would be different. Bill Dunlap TIBCO Software wdunlap tibco.com On Mon, Apr 13, 2020 at 1:43 AM Adrian Du?a <dusa.adrian at gmail.com> wrote: > Thank you for your replies, this actually has little to do with the > regular R code but more to signal what in my package QCA is referred to as > a necessity relation A <- B (A is necessary for B) and sufficiency A -> B > (A is sufficient for B)....
2015 Oct 06
1
authorship and citation
On Tue, Oct 6, 2015 at 2:52 PM, Adrian Du?a <dusa.adrian at unibuc.ro> wrote: > Dear Gabriel, > > On Wed, Oct 7, 2015 at 12:39 AM, Gabriel Becker <gmbecker at ucdavis.edu> > wrote: > >> [...] >> >>> >>> I apologize for pushing this topic to the limit, but I haven't got an >>> answ...
2007 Jan 30
6
jump in sequence
..., F), rep(3, 3)), 3) Then see which are TRUE: which(myvec) [1] 4 5 6 13 14 15 22 23 24 I'd like to avoid creating the whole vector if possible; for very large ones it can be time consuming. There should be a way to only create the proper indexes... Thanks for any hint, Adrian -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest sector 5 Romania Tel./Fax: +40 21 3126618 \ +40 21 3120210 / int.101
2016 Apr 13
2
formula argument evaluation
...anyways (which is parsed by other functions). On Tue, Apr 12, 2016 at 6:20 PM, Richard M. Heiberger <rmh at temple.edu> wrote: > Would making it regular function %=>%, using "%" instead of quotes, > work for you? > > On Tue, Apr 12, 2016 at 11:09 AM, Adrian Du?a <dusa.adrian at unibuc.ro> > wrote: > > On Tue, Apr 12, 2016 at 2:08 PM, Duncan Murdoch < > murdoch.duncan at gmail.com> > > wrote: > >> [...] > >> > >> It never gets to evaluating it. It is not a legal R statement, so the > > parser signals an...
2016 Apr 05
3
Problem with <= (less than or equal): not giving the expected result
Thanks Adrian and Thierry (from the previous answer). I was aware of the all.equal function, but there is nothing similar for <= (e.g. all.smallerEqual)? cheers, jo On 05 Apr 2016, at 14:31, Adrian Du?a <dusa.adrian at unibuc.ro<mailto:dusa.adrian at unibuc.ro>> wrote: Yes, that does have to do with floating point representation. I use this function for these types of comparisons (works with values as well as with vectors): check.equal <- function(x, y) { check.vector <- as.logical(...
2007 Oct 06
3
list matching
...it should return "e" (or NA if none of the letters are common). I have a solution to apply %in% multiple times (here two times, first between the first two and then between the result and the third) but... perhaps there is a better and quicker way. Thanks in advance, Adrian -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest sector 5 Romania Tel./Fax: +40 21 3126618 \ +40 21 3120210 / int.101
2004 May 27
4
extract columns using their names
...- data1[, c(1,3,9)] And I am looking for something like data2 <- data1[, c("XX","YY","ZZ")] I use the same dataframe for many purposes, and I run codes that change the order of the columns every time. Many thanks, Adrian ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Adrian Dusa (adi at roda.ro) Romanian Social Data Archive (www.roda.ro) 1, Schitu Magureanu Bd. 050025 Bucharest sector 5 Romania Tel./Fax: +40 (21) 312.66.18\ +40 (21) 312.02.10/ int.101
2006 Aug 09
3
objects and environments
...missing: fun1 <- function() { e2 <- new.env() assign("bb", 4, e2) fun2() } fun2 <- function(idx) { get("bb", e2) } > fun1() Error in get("bb", e2) : object "e2" not found Any hint would be highly appreciated, Adrian -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest sector 5 Romania Tel./Fax: +40 21 3126618 \ +40 21 3120210 / int.101
2020 Apr 15
1
detect ->
You are right. >= is not as evocative as =>. Perhaps > and < would do? %=>% and %<=% would work. Bill Dunlap TIBCO Software wdunlap tibco.com On Wed, Apr 15, 2020 at 12:41 AM Adrian Du?a <dusa.adrian at gmail.com> wrote: > Dear Bill, > > I already tried this, and it would have been great as (currently) the > sufficiency relation is precisely "=>"... but: > > foo <- function(x) return(substitute(x)) > foo(A => B) > Error: unexpected '>...
2016 Apr 12
2
formula argument evaluation
...on of A and B is sufficient for C" in set theoretic language. The "=>" operator means sufficiency, while "<=" means necessity. Quoting the expression is good enough, I was just curious if the quotes could be made redundant, somehow. Thank you both, Adrian -- Adrian Dusa University of Bucharest Romanian Social Data Archive Soseaua Panduri nr.90 050663 Bucharest sector 5 Romania [[alternative HTML version deleted]]
2020 Apr 13
3
detect ->
...ts generally meaningful to detect in most cases. Best, ~G On Mon, Apr 13, 2020 at 12:52 AM G?bor Cs?rdi <csardi.gabor at gmail.com> wrote: > That parser already flips -> to <- before creating the parse tree. > > Gabor > > On Mon, Apr 13, 2020 at 8:39 AM Adrian Du?a <dusa.adrian at gmail.com> wrote: > > > > I searched and tried for hours, to no avail although it looks simple. > > > > (function(x) substitute(x))(A <- B) > > #A <- B > > > > (function(x) substitute(x))(A -> B) > > # B <- A > > > &g...
2015 Oct 06
2
authorship and citation
Adrian, Responses inline On Tue, Oct 6, 2015 at 1:58 PM, Adrian Du?a <dusa.adrian at unibuc.ro> wrote: > Hi Gabriel, > > On Tue, Oct 6, 2015 at 10:59 PM, Gabriel Becker <gmbecker at ucdavis.edu> > wrote: > >> [...] >> >> At the very least, this is seems to be a flagrant violation of the >> *spirit* of the CRAN policy, which...
2005 Jul 13
3
texture in barplots?
...ss neither search.r-project.org, nor http://finzi.psych.upenn.edu/ so I cannot search the archives for a possible answer (I Googled for this but didn't find anything). Is it possible to draw barplots using a texture instead of colors, for a black and white printer? TIA, Adrian -- Adrian Dusa Arhiva Romana de Date Sociale Bd. Schitu Magureanu nr.1 Tel./Fax: +40 21 3126618 \ +40 21 3120210 / int.101 -- This message was scanned for spam and viruses by BitDefender. For more information please visit http://linux.bitdefender.com/
2008 Aug 30
4
remove levels from a factor
Hi,   how to remove levels that have less than a specific number such as 2. i.e..   > f<-as.factor(c("a","b","a")) > f [1] a b a Levels: a b I want to remove level b because level b has less than 2. > f [1] a a Levels: a   [[alternative HTML version deleted]]
2016 Apr 13
0
formula argument evaluation
...name = names[i]) } } a$names <- NULL if (length(a) > 0) { str.language(a, level = level + 1, name = paste("Attributes of", abbr(name))) } } Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, Apr 12, 2016 at 11:59 PM, Adrian Du?a <dusa.adrian at unibuc.ro> wrote: > I suppose it would work, although "=>" is rather a descriptive symbol and > less a function. > But choosing between quoting: > "A + B => C" > and a regular function: > A + B %=>% C > probably quoting is the most str...
2004 Jan 07
2
segments in 3d space
...lot? I'm interested to draw the errors from an observed value to the regression plane, for a textbook example in an Intro Stats handbook for multiple regression. I used the scatterplot3d package to draw the regression plane. Many thanks, Adrian ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Adrian Dusa (adi@roda.ro) Romanian Social Data Archive (www.roda.ro) 1, Schitu Magureanu Bd. 76625 Bucharest sector 5 Romania Tel./Fax: +40 (21) 312.66.18\ +40 (21) 312.02.10/ int.101 [[alternative HTML version deleted]]
2016 Apr 05
1
Problem with <= (less than or equal): not giving the expected result
...annes <Johannes.Rainer at eurac.edu<mailto:Johannes.Rainer at eurac.edu>>: Thanks Adrian and Thierry (from the previous answer). I was aware of the all.equal function, but there is nothing similar for <= (e.g. all.smallerEqual)? cheers, jo On 05 Apr 2016, at 14:31, Adrian Du?a <dusa.adrian at unibuc.ro<mailto:dusa.adrian at unibuc.ro><mailto:dusa.adrian at unibuc.ro<mailto:dusa.adrian at unibuc.ro>>> wrote: Yes, that does have to do with floating point representation. I use this function for these types of comparisons (works with values as well as with ve...
2016 Apr 05
0
Problem with <= (less than or equal): not giving the expected result
...r Johannes <Johannes.Rainer at eurac.edu>: > Thanks Adrian and Thierry (from the previous answer). > > I was aware of the all.equal function, but there is nothing similar for <= > (e.g. all.smallerEqual)? > > cheers, jo > > On 05 Apr 2016, at 14:31, Adrian Du?a <dusa.adrian at unibuc.ro<mailto: > dusa.adrian at unibuc.ro>> wrote: > > Yes, that does have to do with floating point representation. > I use this function for these types of comparisons (works with values as > well as with vectors): > > check.equal <- function(x, y) {...
2004 Oct 13
3
one more Rcmdr problem
...UI front-end has encountered a problem and needs to close" Did anyone have the same problem? I don't think it's my system, as it happened to reinstall my Windows just a few days ago, and the same problem occurred in the former one. Regards, Adrian ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Adrian Dusa Romanian Social Data Archive 1 Schitu Magureanu Bd. 050025 Bucharest sector 5 Tel. +40 21 3126618\ +40 21 3153122/ int.101 -- This message was scanned for spam and viruses by BitDefender For more information please visit http://linux.bitdefender.com/