[R] [R-pkgs] QCA version 0.4-5

2007-09-09 Thread Adrian Dusa
minimization function, using a shortcut instead of the classical complete and exhaustive algorithm. This new function is faster and uses significantly less memory (50 MB compared to 1.5 GB for large datasets). It should appear soon on CRAN, feedback is welcome. -- Adrian Dusa Romanian Social Data

Re: [R] bars' values on barplot

2007-08-05 Thread Adrian Dusa
, wibble, pos=3) # always does what you want, whereas: text(x, 0.4+my.values, wibble) # doesn't look very nice HTH, 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

Re: [R] Looping through all possible combinations of cases

2007-07-31 Thread Adrian Dusa
(i.e., what elements were combined in it) and get the value of the sum for each combination. How should I do it? Thanks a lot! Dimitri -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest sector 5 Romania Tel./Fax: +40 21 3126618 \ +40 21 3120210

Re: [R] Levene Test with R

2007-07-06 Thread Adrian Dusa
test, and the recommended ones are: Ansari-Bradley for two groups (i.e. for t.test) Fligner-Killeen for three or more groups (i.e. for ANOVA) hth, Adrian -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest sector 5 Romania Tel./Fax: +40 21 3126618 \ +40

[R] pie initial angle

2007-05-29 Thread Adrian Dusa
-- 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 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Odp: Odp: pie initial angle

2007-05-29 Thread Adrian Dusa
the position of the slices the way they are. My geometry seems to be poor towards innexistent :) All the best, 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

[R] data in packages... a list?

2007-05-22 Thread Adrian Dusa
Dear all, Is it possible to add a list in the data folder when creating a new package? In other words, is data in packages restricted to data.frame only? Thank you, Adrian -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest sector 5 Romania Tel./Fax: +40 21

Re: [R] read.spss (package foreign) and SPSS 15.0 files

2007-04-14 Thread Adrian Dusa
Charilaos Skiadas skiadas at hanover.edu writes: [...] I save as csv format all the time, and it offers me a choice to use the labels instead of the corresponding numbers. So you shouldn't have to lose that labelling. This is interesting and I tried to do this as well; I don't have access

Re: [R] read.spss (package foreign) and SPSS 15.0 files

2007-04-14 Thread Adrian Dusa
rather an overkill. In the mean time, I use portable files or export in different formats using a comercial software like StatTransfer (this one is really good). Thanks, Adrian -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest sector 5 Romania Tel./Fax: +40 21

Re: [R] Sorting rows of a binary matrix

2007-02-22 Thread Adrian Dusa
[[alternative HTML version deleted]] -- 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 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch

Re: [R] Sorting rows of a binary matrix

2007-02-22 Thread Adrian Dusa
) # For 3 columns in base 3 myfunc(3, 3) hth, Adrian On Thursday 22 February 2007 15:00, Adrian Dusa wrote: Hello Serguei, Is this what you need? myfunc - function(x) { create - function(idx) { rep.int(c(rep.int(0,2^(idx-1)), rep.int(1,2^(idx-1))), 2^x/2^idx

Re: [R] jump in sequence

2007-01-30 Thread Adrian Dusa
On Tuesday 30 January 2007 16:38, Peter Dalgaard wrote: [...snip...] Is this it? as.vector(outer(0:2,seq(4,22,9),+)) [1] 4 5 6 13 14 15 22 23 24 Indeed it is :)) Thanks, Adrian -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest sector 5 Romania Tel

[R] [R-pkgs] version 0.3 of QCA

2007-01-24 Thread Adrian Dusa
. This approach openes the way for _exact_ multi-value minimizations, and an even better (and faster) approach is searched for the future versions. Best, Adrian -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest sector 5 Romania Tel./Fax: +40 21 3126618

Re: [R] comparing two matrices

2007-01-21 Thread Adrian Dusa
it does not use the sum: apply(mat2, 1, function(x) which(apply(mat1, 1, function(y) all(x == y)) == TRUE)) -Christos -- 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

Re: [R] comparing two matrices

2007-01-21 Thread Adrian Dusa
,] 49 50 51 52 [12,] 45 46 47 48 [13,]1234 [14,] 29 30 31 32 [15,] 37 38 39 40 which(apply(matrix(mat2 %in% mat1, dim(mat2)), 1, all)) [1] 1 2 4 8 13 HTH, Marc Schwartz -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd

Re: [R] comparing two matrices

2007-01-21 Thread Adrian Dusa
= /) match(ind2, ind1) Oh yes, I thought about that too. It works fast enough for small matrices, but I deal with very large ones. Using paste() on such matrices decreases the speed dramatically. Thanks again, Adrian -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd 050025

[R] multiple bases to decimal (was: comparing two matrices)

2007-01-21 Thread Adrian Dusa
, 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 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] multiple bases to decimal (was: comparing two matrices)

2007-01-21 Thread Adrian Dusa
you so much Jim, this made my day :)) 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 __ R-help@stat.math.ethz.ch mailing list

[R] comparing two matrices

2007-01-20 Thread Adrian Dusa
(apply(mat1, 1, function(y) { sum(x == y) }) == ncol(mat1)) }) The code is vectorized, but I wonder if there is a simpler (hence faster) matrix computation that I miss. Thank you, Adrian -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest sector

Re: [R] a question of substitute

2007-01-11 Thread Adrian Dusa
that the code in glmmPQL was general enough to be applicable). -- 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 __ R-help@stat.math.ethz.ch

Re: [R] a question of substitute

2007-01-10 Thread Adrian Dusa
the workarounds I posted: fun.2(values ~ group) Brilliant :) Super fast change, this is why I love R. Cheers, 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

[R] a question of substitute

2007-01-09 Thread Adrian Dusa
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

Re: [R] a question of substitute

2007-01-09 Thread Adrian Dusa
- function(formula) { mc - match.call() mc[[1]] - as.name(oneway.test) eval.parent(mc) } fun.3(values ~ group) fun.4 - function(formula) { do.call(oneway.test, list(formula)) } fun.4(values ~ group) On 1/9/07, Adrian Dusa [EMAIL PROTECTED] wrote: Hi all, I want

Re: [R] a question of substitute

2007-01-09 Thread Adrian Dusa
, but they do like having it all-in-one. Best regards, 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 __ R-help@stat.math.ethz.ch

[R] dashed lines and SVG files devSVG(/folderul/unde/salvez/myplot.svg, width=10, height=10) plot(1:10, 1:10) dev.off()

2007-01-04 Thread Adrian DUSA
Dear helpers, I have a question about the SVG device. It works fine, the SVG file is indeed produced, only the graphic differs from the R window. In the SVG file the dashed line is just a regular plain one. My toy example is: library(RSvgDevice) devSVG(myplot.svg, width=10, height=10) plot(1:10)

[R] dashed lines and SVG files

2007-01-04 Thread Adrian DUSA
Sorry for duplicating the message, the previous had an unintended subject line... Dear helpers, I have a question about the SVG device. It works fine, the SVG file is indeed produced, only the graphic differs from the R window. In the SVG file the dashed line is just a regular plain one. My toy

Re: [R] how to replace some objects?

2006-12-21 Thread Adrian Dusa
- c('a', 'b', 'a', 'c', 'b', 'b', 'a', 'a', 'c') library(car) num - recode(let, 'a' = 1; 'b' = 2; else = 3 ) Or, since the initial vector has letters only: as.numeric(factor(let)) [1] 1 2 1 3 2 2 1 1 3 Hth, Adrian -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd 050025

Re: [R] Count cases by indicator

2006-12-09 Thread Adrian DUSA
,...{{dropped}} -- Adrian DUSA Arhiva Romana de Date Sociale Bd. Schitu Magureanu nr.1 050025 Bucuresti sectorul 5 Romania Tel./Fax: +40 21 3126618 \ +40 21 3120210 / int.101 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo

[R] weight cases?

2006-10-14 Thread Adrian Dusa
should yield a value of 2 for the eB combination: table(my.data$var1, my.data$var2) A B C D E a 1 0 0 0 0 b 0 0 0 1 0 c 0 0 0 0 1 d 0 0 1 0 0 e 0 2 0 0 0 Thanks in advance, Adrian -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest sector 5

Re: [R] weight cases?

2006-10-14 Thread Adrian Dusa
question: how would the weight variable be applied to correlate two numerical variables? Best, Adrian On Saturday 14 October 2006 16:00, Gabor Grothendieck wrote: Try this: table(lapply(my.data, rep, my.data$weight)[1:2]) On 10/14/06, Adrian Dusa [EMAIL PROTECTED] wrote: Dear all

Re: [R] weight cases?

2006-10-14 Thread Adrian Dusa
On Saturday 14 October 2006 16:52, Gabor Grothendieck wrote: Try this (and round the result to make to it comparable to your calculation): xtabs(weight ~ var1 + var2, my.data) Oh yes... :) It was so simple. Thanks for the cov.wt() as well. Regards, Adrian -- Adrian Dusa Romanian Social

Re: [R] How to repeat vectors ?

2006-09-30 Thread Adrian DUSA
a11 a12 a21 a22 a21 a22 Thanks a lot for any help. best -- Adrian DUSA Arhiva Romana de Date Sociale Bd. Schitu

Re: [R] delete a entire vector of a dataframe

2006-09-22 Thread Adrian DUSA
-- Adrian DUSA Arhiva Romana de Date Sociale Bd. Schitu Magureanu nr.1 050025 Bucuresti sectorul 5 Romania Tel./Fax: +40 21 3126618 \ +40 21 3120210 / int.101 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

[R] test the tcltk package

2006-08-21 Thread Adrian Dusa
2.3.1, tcl and tk version 8.4 (dev packages installed as well). 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

Re: [R] R Site Search directly from Firefox's address bar

2006-08-18 Thread Adrian Dusa
On Friday 18 August 2006 10:08, Romain Francois wrote: Le 17.08.2006 20:56, Adrian Dusa a écrit : [...] It breaks also every usage of the google feeling lucky default behaviour which is really useful I think. There are R related firefox search plugins on mycroft. Find more info

[R] R Site Search directly from Firefox's address bar

2006-08-17 Thread Adrian Dusa
=Rhelp02aquery=; From now on, every keyword(s) you type in the address bar will take you directly to the first page of hits at http://finzi.psych.upenn.edu I found this very helpful. Best, Adrian -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest sector 5 Romania Tel./Fax

Re: [R] R Site Search directly from Firefox's address bar

2006-08-17 Thread Adrian Dusa
in the address bar it takes me to www.r-project.org :) -- 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 __ R-help@stat.math.ethz.ch mailing list https

Re: [R] RE : tcltk library on linux

2006-08-12 Thread Adrian Dusa
/ Then: $ sudo apt-get update $ sudo apt-get install r-cran-rcmdr (as Dirk Eddelbuettel advised). It _should_ work flawlessly. HTH, 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

[R] missing documentation entries

2006-08-09 Thread Adrian Dusa
questions: - is it mandatory to document _all_ functions (will the source package be rejected by CRAN if otherwise)? - if not, is there a way to tell R which are the functions that I don't want to document? Thanks, Adrian -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd 050025

Re: [R] missing documentation entries

2006-08-09 Thread Adrian Dusa
the posting guide. `R-devel is intended for questions and discussion about code development in R.' Thank you very much for your reply, I'll post to R-devel from now on. It seems to me that name spaces are the solution for my problem. Adrian -- Adrian Dusa Romanian Social Data Archive 1

[R] objects and environments

2006-08-09 Thread Adrian Dusa
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 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] objects and environments

2006-08-09 Thread Adrian Dusa
was out of energy after several hours of struggling with this. Best, 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 __ R-help

Re: [R] objects and environments

2006-08-09 Thread Adrian Dusa
might reconsider whether its ok for you to just pass bb. Aah-aaa!! :) So that's the way to do it... I don't know how many times I read the help from apply and I missed it every time. Well, I learned many things today, I feel much better now :) Thank you, Adrian -- Adrian Dusa Romanian

Re: [R] Tcltk package

2006-08-03 Thread Adrian DUSA
/ dapper/ This repository has lots of other packages compiled for Ubuntu, feel free to take a look. HTH, 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

Re: [R] Extracting from a matrix w/o for-loop

2006-07-29 Thread Adrian DUSA
]) is simpler but just for the sake of it, since we're dealing with matrices it is not a case of sapply but of _apply_: apply(M2, 1, function(x) M1[x[1], x[2]]) My 2c, Adrian -- Adrian DUSA Arhiva Romana de Date Sociale Bd. Schitu Magureanu nr.1 050025 Bucuresti sectorul 5 Romania Tel./Fax: +40

Re: [R] Getting rid of for loops

2006-07-17 Thread Adrian DUSA
am new to analysis of all-categorical data). Thanks in advance! Kevin -- -- Kevin Emerson Center for Ecology and Evolutionary Biology 1210 University of Oregon Eugene, OR 97403 USA [EMAIL PROTECTED] -- Adrian DUSA

Re: [R] Getting rid of for loops

2006-07-17 Thread Adrian DUSA
])     } p.interaction - apply(all.pairs, 1, myfun) Actually, you don't need as.matrix there, just cbind all your vectors to obtain the final dataframe: finally - as.data.frame(cbind(marker1, marker2, p.interaction)) Adrian On Monday 17 July 2006 18:40, Adrian DUSA wrote: Hi Kevin, Regarding your first

[R] [R-pkgs] new package QCAGUI

2006-06-05 Thread Adrian DUSA
. Regards, 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 ___ R-packages mailing list [EMAIL PROTECTED] https://stat.ethz.ch/mailman

Re: [R] checking package dependencies

2006-05-23 Thread Adrian DUSA
haven't done anything in particular). When it didn't work, I remember I checked the permissions and everything was OK. Really have no idea what went wrong, but now it works. Best, Adrian -- Adrian DUSA Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest sector 5 Romania Tel./Fax

[R] checking package dependencies

2006-05-17 Thread Adrian DUSA
the path to the installed packages (and all depending packages are installed): R_LIBS=${R_LIBS-'/home/adi/Installed/R/site-library:/usr/local/lib/R/site-library:/usr/local/lib/R/library'} Is there something changed about defining R_LIBS? Thank you in advance, Adrian -- Adrian DUSA Romanian Social

[R] choosing a particular object

2006-03-31 Thread Adrian DUSA
(temp[, var.name]) } This should perfom the same thing as: table(bb$q2) Is this possible? TIA, 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

Re: [R] choosing a particular object

2006-03-31 Thread Adrian DUSA
Thanks, it's exactly what I want. Adrian On Friday 31 March 2006 12:59, Adaikalavan Ramasamy wrote: Try test.fn - function(obj.name, var.name=q2){ stopifnot( is.character(obj.name) is.character(var.name) ) x - subset( get(obj), select=var.name ) table(x) } -- Adrian DUSA

[R] ifelse problem

2006-03-10 Thread Adrian DUSA
get the correct result... if (any(nchar(aa) 3)) { aa[-which(nchar(aa) 3)] } else { aa } [1] test name Thanks in advance, Adrian -- Adrian DUSA Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest sector 5 Romania Tel./Fax: +40 21 3126618

Re: [R] ifelse problem

2006-03-10 Thread Adrian DUSA
On Friday 10 March 2006 16:31, Uwe Ligges wrote: [...] aa[!(nchar(aa) 3)] Thanks very much, I got it now. All the best, 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

Re: [R] QCA adn Fuzzy

2006-03-07 Thread Adrian DUSA
welcome. I hope this helps 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 __ R-help@stat.math.ethz.ch mailing list https

[R] [R-pkgs] new package QCA

2006-02-07 Thread Adrian DUSA
). Future versions of this package will have more functions to address the fuzzy-set minimization problems, as well. Big thanks to the r-help list members, supportive as ever, especially to Gabor Grothendieck and Martin Maechler for excellent ideas in the key parts of the algorithm. -- Adrian DUSA

Re: [R] yet another vectorization question

2006-01-31 Thread Adrian DUSA
function system.time(all.expr(LETTERS[1:12])) [1] 6.12 0.39 6.54 0.00 0.00 system.time(all.expr2(LETTERS[1:12])) [1] 8.62 0.27 8.91 0.00 0.00 If anyone interested, I uploaded both functions here: http://www.roda.ro/all.expr.R Thank you, Adrian -- Adrian DUSA Arhiva Romana de Date Sociale Bd

[R] yet another vectorization question

2006-01-30 Thread Adrian DUSA
[start.row:end.row, idk[ , k]] - tt start.row - end.row + 1 } ## How can one modify return.matrix using apply on idk? } return.matrix[is.na(return.matrix)] - return.matrix } } Thank you in advance, Adrian -- Adrian DUSA Romanian Social Data Archive 1

Re: [R] yet another vectorization question

2006-01-30 Thread Adrian DUSA
Adrian DUSA adi at roda.ro writes: I'm trying to develop a function [...snip...] Sorry for the traffic, I forgot to say that I'm using library(combinat) for the combn function... Thank you, Adrian __ R-help@stat.math.ethz.ch mailing list https

Re: [R] yet another vectorization question

2006-01-30 Thread Adrian Dusa
is: ## ... for (k in 1:ncol(idk)) { end.row - start.row + nrow(tt) - 1 return.matrix[start.row:end.row, idk[ , k]] - tt start.row - end.row + 1 } ## ... I'd like to use apply on the idk matrix (to get rid of the for loop) and write the contents of tt in the result.matrix... Best, Adrian -- Adrian

Re: [R] yet another vectorization question

2006-01-30 Thread Adrian Dusa
, function(x) c(0, 1, NA))) Best, 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 __ R-help@stat.math.ethz.ch mailing list https

Re: [R] yet another vectorization question

2006-01-30 Thread Adrian Dusa
possibility to vectorize this for loop? (sometimes I have hundreds of columns in the aa matrix) Many big 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

Re: [R] R newbie example code question

2006-01-14 Thread Adrian DUSA
Ted.Harding at nessie.mcc.ac.uk writes: [...] The solution I finally opted for, and still use, is based (in a Linux environment) on including the following code in your .Rprofile file: .xthelp - function() { tdir - tempdir() pgr - paste(tdir, /pgr, sep=) con - file(pgr, w)

Re: [R] R newbie example code question

2006-01-14 Thread Adrian DUSA
source). R.Version() $platform [1] i686-pc-linux-gnu $arch [1] i686 $os [1] linux-gnu $system [1] i686, linux-gnu $status [1] $major [1] 2 $minor [1] 2.1 $year [1] 2005 $month [1] 12 $day [1] 20 $svn rev [1] 36812 $language [1] R Thank you, Adrian -- Adrian DUSA Romanian Social Data Archive 1

[R] more on the daisy function

2006-01-05 Thread Adrian DUSA
) that the first and third rows differ on. I could try to do that myself, but I don't know where to find the Fortran code daisy uses. 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

Re: [R] millions of comparisons, speed wanted

2005-12-17 Thread Adrian DUSA
The daisy function is _very_ good! I have been able to use it for nominal variables as well, simply by: daisy(input)*ncol(input) Now, for very large number of rows (say 5000), daisy works for about 3 minutes using the swap space. I probably need more RAM (only 512 on my computer). But at least I

[R] millions of comparisons, speed wanted

2005-12-15 Thread Adrian DUSA
[!logical.result] - x minimized[unique(as.vector(to.be.compared[compare.minimized, ]))] - TRUE if (sum(minimized) 0) { input - rbind(input[!minimized, ], unique(t(result))) } } ## code end Any suggestion is welcomed, thank you very much in advance. Adrian -- Adrian DUSA Romanian Social Data

Re: [R] Help on a matrix task

2005-12-08 Thread Adrian DUSA
} colnames(input_mat) = NULL A little late, but wouldn't be more simple to create input_mat with: N - 4 input_mat - matrix(NA, ncol=N, nrow=2^N) for (i in 1:N) input_mat[,i] - c(rep(0, 2^(N - i)), rep(1, 2^(N - i))) HTH, Adrian -- Adrian DUSA Romanian Social Data Archive 1, Schitu Magureanu Bd

[R] attributes of a data.frame

2005-11-21 Thread Adrian DUSA
-- 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 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] attributes of a data.frame

2005-11-21 Thread Adrian DUSA
certainly use it. 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 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch

Re: [R] attributes of a data.frame

2005-11-21 Thread Adrian DUSA
to be, you can just go find and install that contributed package! Duncan Murdoch I got it, it's logic. Well, one could always use Hmisc which does very well these things. Thank you again, Adrian -- Adrian DUSA Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest sector 5 Romania Tel

[R] help with apply, please

2005-11-19 Thread Adrian DUSA
and column dominance, but (as I am not a computer scientist), I am unable to apply it. If you have a better solution for this, I would be gratefull if you'd share it. Thank you in advance, Adrian -- Adrian DUSA Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest sector 5 Romania Tel

Re: [R] help with apply, please

2005-11-19 Thread Adrian Dusa
]] [1] 0 1 1 Also, thanks to Duncan and yes, I do very much care finding the smallest possible solutions (if I correctly understand your question). It seems that lp function is very promising, but can I use it to find _all_ minimum solutions? Adrian -- Adrian DUSA Arhiva Romana de Date

Re: [R] help with apply, please

2005-11-19 Thread Adrian DUSA
efficient way to loop over all possible columns (using perhaps the apply family). Thanks again, 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

Re: [R] help with apply, please

2005-11-19 Thread Adrian DUSA
than the number of columns, and applying the two above principles will make the matrix even more simple. There are algorithms written in other languages (like Java) freely available on the Internet, but I have no idea how to adapt them to R. Best, Adrian -- Adrian DUSA Romanian Social Data

Re: [R] help with apply, please

2005-11-19 Thread Adrian DUSA
/329/webslides/Topic5-QuineMcCluskey/sld079.htm Best wishes, 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 __ R-help

Re: [R] help with apply, please

2005-11-19 Thread Adrian DUSA
: [,1] [,2] [1,]13 [2,]23 which says that rows 1 and 3 of mtrx form one solution and rows 2 and 3 of mtrx form another solution. I'm speechless. It is exactly what I needed. A billion of thanks! Adrian -- Adrian DUSA Romanian Social Data Archive 1, Schitu Magureanu Bd 050025

[R] returning a modified fix()-ed dataframe

2005-10-07 Thread Adrian DUSA
modified Responent's gender into Respondent's gender (the previous missed a d). The trouble I'm having is to return the modified object, with the modified labels. It should be easy, I feel it, but I just can't get it. Thank you in advance, Adrian -- Adrian DUSA Romanian Social Data Archive 1

Re: [R] returning a modified fix()-ed dataframe

2005-10-07 Thread Adrian DUSA
On Friday 07 October 2005 20:55, Sundar Dorai-Raj wrote: Adrian DUSA wrote: [...snip...] Hi, Adrian, You need to assign fix(dataf) to something: my.data - data.frame(age=c(24,35,28), gender=c(Male, Female, Male)) require(Hmisc) label(my.data$age) - Respondent's age label(my.data$gender

Re: [R] returning a modified fix()-ed dataframe

2005-10-07 Thread Adrian DUSA
specified I run R under Linux (Kubuntu 5.04, KDE). And I also knew that the Linux interface is not as developed as the Windows one, so it's probably not possible yet. Thanks for everything, Adrian -- Adrian DUSA Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest sector 5 Romania Tel

[R] measurement unit

2005-09-09 Thread Adrian DUSA
of a certain width and height: X11(width=10, height=5) and I would like these to be centimeters, rather than inches. Thank you, Adrian -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest Romania Tel./Fax: +40 21 3126618 \ +40 21 3120210 / int.101

Re: [R] measurement unit

2005-09-09 Thread Adrian DUSA
also thought about transforming, but I was curious if there's an already built in argument. Best, Adrian -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest Romania Tel./Fax: +40 21 3126618 \ +40 21 3120210 / int.101

Re: [R] producing SVG files

2005-09-03 Thread Adrian DUSA
Adrian DUSA dusa.adrian at gmail.com writes: I am trying to use the RSvgDevice package to produce some SVG graphs which I want to edit with Inkscape 0.42. [...snip...] Argh, a minute after posting a find out the solution here: http://www.stat.auckland.ac.nz/~paul/Talks/gridSVG/slide8.html

[R] producing SVG files

2005-09-03 Thread Adrian DUSA
, fg = black, onefile=TRUE, xmlHeader=TRUE) with the same result. Could you please point me to the right direction, please? Thank you in advance, Adrian -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest Romania Tel./Fax: +40 21 3126618 \ +40 21

Re: [R] texture in barplots?

2005-07-14 Thread Adrian Dusa
On Thursday 14 July 2005 00:51, Peter Dalgaard wrote: Adrian Dusa [EMAIL PROTECTED] writes: ...snip... This comes up every now and then, and while it seems that everyone thinks fill patterns would be nice to have, I suspect that every attempt to actually implement it have gotten killed

[R] texture in barplots?

2005-07-13 Thread Adrian Dusa
, 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

Re: [R] texture in barplots?

2005-07-13 Thread Adrian Dusa
On Wednesday 13 July 2005 17:36, Knut Krueger wrote: Adrian Dusa schrieb: Is it possible to draw barplots using a texture instead of colors, for a black and white printer? barplot(height,.,density=c(4,6,8,10) ...) for each bar one number - this example is for a barplot with 4 bars

[R] not supressing leading zeros when reading a table?

2005-07-10 Thread Adrian Dusa
Dear R list, I have a dataset with a column which should be read as character, like this: name surname answer 1 xx yyy 00100 2 rrr hhh 01 When reading this dataset with read.table, I get 1 xx yyy 100 2 rrr hhh 1 The string column consists in answers to multiple choice

Re: [R] not supressing leading zeros when reading a table?

2005-07-10 Thread Adrian Dusa
On 7/10/05, alejandro munoz [EMAIL PROTECTED] wrote: Adrian, To prevent coercion to numeric, try: mydata - read.table(myfile, colClasses=character) HTH. alejandro On 7/10/05, Adrian Dusa [EMAIL PROTECTED] wrote: Dear R list, [...snip...] Thank you all, I got it. This is my

[R] [spam] t.test confidence interval

2005-04-15 Thread Adrian Dusa
-- Adrian Dusa Romanian Social Data Archive 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

Re: [R] [spam] t.test confidence interval

2005-04-15 Thread Adrian Dusa
On 15 Apr 2005 13:53:32 +0200, Peter Dalgaard [EMAIL PROTECTED] wrote: Adrian Dusa [EMAIL PROTECTED] writes: Hi, I'm using R for some undergraduate lectures, reaching the t tests. No matter what conf.level one specifies in the syntax, the output always shows the 95 percent

[R] z and p

2005-03-15 Thread Adrian Dusa
if there is an already built function. Regards, Adrian -- Adrian Dusa Romanian Social Data Archive 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

Re: [R] Graphics

2005-02-25 Thread Adrian Dusa
John Dougherty jwd at surewest.net writes: On Thursday 24 February 2005 04:13, Adrian Dusa wrote: ... You need to check your font installation. Be sure the X-11 fonts are installed. XFree86-fonts-75dpi-4.3.99.902-30 XFree86-fonts-100dpi-4.3.99.902-30 Should both be on your

Re: [R] Graphics

2005-02-24 Thread Adrian Dusa
Prof Brian Ripley ripley at stats.ox.ac.uk writes: On Tue, 22 Feb 2005 Cedric.Ginestet at tvu.ac.uk wrote: The R platform that I installed on my Windows XP crashes everytime that I try to run some sophisticated graphics (e.g. Demo Graphics). Is that to do with the configuration? Shall

[R] file 'attributes'

2005-02-06 Thread Adrian Dusa
in manually) Is it possible to read a CD/structure of folders in such a way? Thank you for any suggestion, Adrian -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd. Bucharest sector 5 Romania Tel./Fax: +40 21 3126618 \ +40 21 3120210 / int.101

[R] further issues with install.packages

2005-02-06 Thread Adrian Dusa
os linux-gnu system i686, linux-gnu status major2 minor0.1 year 2004 month11 day 15 language R Could you please advice? Thank you, Adrian -- Adrian Dusa Arhiva Romana de Date Sociale Bd. Schitu Magureanu nr.1 Tel./Fax: +40 21 3126618 \ +40 21 3120210

Re: [R] file 'attributes'

2005-02-06 Thread Adrian Dusa
Liaw, Andy andy_liaw at merck.com writes: file.info() should help with some of those items. Andy From: Adrian Dusa Dear R-list, I have many files on many CDs (probably same as many of you) and I would like to create a database containing only a few columns

RE: [R] Tuning string matching

2005-01-06 Thread Adrian DUSA
- guide.html ~~ Adrian Dusa ([EMAIL PROTECTED]) Romanian Social Data Archive (www.roda.ro) 1, Schitu Magureanu Bd. 010181 Bucharest sector 5 Romania Tel./Fax: +40 (21) 312.66.1 __ R-help@stat.math.ethz.ch mailing list

RE: [R] console under Mandrake

2004-10-22 Thread Adrian Dusa
octombrie 2004 19:11 To: Adrian Dusa; [EMAIL PROTECTED] Subject: Re: [R] console under Mandrake Prof Brian Ripley [EMAIL PROTECTED] writes: On Fri, 22 Oct 2004, Adrian Dusa wrote: I recently compiled R 2.0.0 under Mandrake 9, but it won't run unless in a terminal; is there a way to run

RE: [R] one more Rcmdr problem

2004-10-15 Thread Adrian Dusa
2004 18:27 To: Adrian Dusa Cc: [EMAIL PROTECTED] Subject: Re: [R] one more Rcmdr problem I did experience the same problem. After installing R 2.0.0 patched and downloading the source for Rcmdr_0.99-12 from John Fox's Web page http://socserv.socsci.mcmaster.ca/jfox/Misc/Rcmdr/ and recompiling

  1   2   >