similar to: My remark on libraries

Displaying 20 results from an estimated 1000 matches similar to: "My remark on libraries"

2002 Oct 02
4
Introduction of NA:s
Hello, I wonder if someone could help me with the following: I have generated 10 000 values from rnorm and now I want to randomly replace 500 of those with NA. The problem is that values indexed between 6-10,16-20,26-30.... only should be considered for replacement. Any suggestions? Patrik Waldmann -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing
2002 Dec 20
2
vectorizing test for equality
Dear R Help, I am trying to create a boolean vector that is TRUE whenever a particular value occurs in a numeric vector, and FALSE otherwise. For example, suppose that > y <- c(5, 2, 4, 3, 1) > y [1] 5 2 4 3 1 and suppose that I want to find where 3 occurs in y. Then, the following yields the solution: > y == 3 [1] FALSE FALSE FALSE TRUE FALSE My problem arises when the
2002 Aug 06
1
Using Tcl/Tk on Windows
Hello, I would like to try Tcl/Tk library on Windows. I installed ActiveTCL 8.3.4.3 and add the environment variable TCL_LIBRARY linking to the directory of installation. When I load the Tcl/Tk package, I have the following error: +--------------------------------------------------------------+ Error in firstlib(which.lib.loc, package) : Can't find a usable init.tcl in the
2002 Oct 17
0
RE: R2HTML package for R 1.6
Does this help on our backtest reporting? Regards, Gordon Morrison Global Head of Quantitative Research > * + 44 20 7653 7642 > Mob: + 44 7867 801951 > fax: + 44 20 7645 7442 > * mailto:gordon.morrison at commerzbankib.com > web: http://www.cbksec.com/research/quant > * Commerzbank Securities > 60 Gracechurch Street > London EC3V 0HR, U.K. >
2002 Oct 15
0
R2HTML package for R 1.6
Hello R communauty, I have submitted to CRAN the package R2HTML. The purpose of this package is twice: - provide base HTML exportation functions. Basically, you will use them exactly as a print function (or a cat(...file=)). Thus, making dynamic HTML reports is possible. - making live HTML output with frames and command, which is very usefull for teaching purpose, as the student can keep a
2003 Mar 28
0
the chi-square test for trend / Correction
Hi (again), Please find here a correction of the function I send previously --------------------------------------------------------- tableChisqMH=function(x) { n=sum(x) G2=(n-1)*(tablepearson(x)$estimate^2) dll=1 p.value=1-pchisq(G2,dll) out=list(estimate=G2,dll=dll,p.value=p.value,dim=dim(x),name="Mantel-Haenszel Chi-square") return(out) }
2003 Dec 01
3
search site for R (http://finzi.psych.upenn.edu)
My search site, http://finzi.psych.upenn.edu, has had several problems recently, all my fault, for which I apologize. But it now seems to be running reliably, on a new computer that is much faster than the old one. It uses htdig to permit search of the Rhelp mailing list, R documents, R functions, and various combinations of these. Search has several options, including Boolean search (with AND,
2003 Dec 18
3
Summaries
Hello UseRs: Excuses for my english. I have a dataset with 65000 records and I'd like to make a summary where I can view all the values (with the number of times that it repeats) that there are each column of my dataset. I tried with summary( ), str( ), but nothing gives me the result that I am loking for. Thank you very much.
2003 Apr 02
4
vectorize an expression
Dear listers, I'm having a bad R day. I just can't think of the vectorized equivalent of: for (ii in 1:n) aa[ii] = bb[ii,cc[ii]] Any suggestion received with embarrassment and gratitude Simon Gatehouse CSIRO Exploration and Mining, Newbigin Close off Julius Ave North Ryde, NSW Mail: PO Box 136, North Ryde NSW 1670, Australia
2004 Jan 16
2
reference to objects
Hi, is there a way to reference to a data object without copying it? For example I have a huge matrix called dist and I want two objects obj1 and obj2 to have a memeber dist that points to the matrix, but I don't want, for memory reasons, to copy the matrix twice. As far as I understand the following code will generate three copies of my data: dist <- some_code_that_generates_data
2003 Nov 12
4
column extraction by name ?
I have a data frame (df) with colums x, y and z. e.g. df <- data.frame(x = sample(4), y = sample(4), z = sample(4)) I can extract column z by: df$z or df[3] I can also extract columns x,y by: df[1:2] or by df[-3]. Is it possible to extract x,y columns in a "symbolic" fashion i.e. by equivalent of df[-z] (which is illegal) ??? Or alternativeley, is there an equivalent of
2003 Dec 04
6
get mean of several rows
Dear all! After hours of trying around, I gave up: I have a 2-dimensional array, and I know how to split it into its rows and how to get the mean for every row using 'sapply'. But what I want is to calculate the mean over the first n rows, and then the second n rows, etc., so that I get a vector like: v == mean1(row 1:5), mean2(row6:10),... (trivial, you might say. I find it rather
2003 Nov 10
5
Subsetting a list of vectors
Hi, I'm trying to subset a list which contains variable length vectors. What I want to do is extract (eg.) the 3rd item in each vector (with length >= 3). At the moment I'm using sapply(list.of.vectors, function(x) {x[3]}). The problem with this is that sapply returns a list of the same length of list.of.vectors so I end up with a whole lot of null entries from those vectors
2002 Jan 05
1
Meilleurs Voeux pour 2002 : ann?e de m?moire, de mobilisation, d'action, de justice et de s?r?nit? - Appel au soutien moral et financier
Meilleurs Voeux pour 2002 : année de mémoire, de mobilisation, d'action, de justice et de sérénité - Appel au soutien moral et financier ======================== M. Habib HAIBI, 7, Aguesseau St. 69007 LYON - France Tél. 00 33 4 72 73 19 08 - Fax 00 33 4 78 61 39 27 Email : haibi@free.fr http://haibi.free.fr Je suis qualifié pour exprimer mes voeux pour le Nouvel An à tous les survivants
2003 Dec 24
4
coding logic and syntax in R
Hello, I am a beginner in R programming and recently heard about this mailing list. Currently, I am trapped into a simple problem for which I just can't find a solution. I have a huge dataset (~81,000 observations) that has been analyzed and the final result is in the form of 0 and 1(one column). I need to write a code to process this column in a little complicated way. These 81,000
2004 Aug 06
1
Meilleurs Vœux pour 2002 : année de mémoire, de mobilisation, d'action, de justice et de sérénité - Appel au soutien moral et financier
Meilleurs Vœux pour 2002 : année de mémoire, de mobilisation, d'action, de justice et de sérénité - Appel au soutien moral et financier ======================== M. Habib HAIBI, 7, Aguesseau St. 69007 LYON - France Tél. 00 33 4 72 73 19 08 - Fax 00 33 4 78 61 39 27 Email : haibi@free.fr http://haibi.free.fr Je suis qualifié pour exprimer mes voeux pour le Nouvel An à tous les survivants
2007 Apr 14
7
=question sur wxruby2
Bonjour, je voulais savoir si wxruby2 est intégré à l''interpréteur ruby? Que veut dire $0 ? merci Sebastien _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2007 Jul 25
11
taskbaricon
Salut alex, j''ai un petit souci. quand j''utilise "demotaskbaricon" avec traducteur-wxruby, que j''ouvre mon application(donc l''icone apparaît dans la barre de lancement rapide) et que je ferme mon application, l''icone disparaît tout de suite. Mais quand je l''utilise avec l''exemple Wizard et que je ferme mon application
2007 Jul 20
8
Wx::StaticText
Salut alex. J''ai une question a propos de wx::statictext(wxruby2) est-il possible de mettre les accents pour la langue française?, car pour l''instant je ne peut pas mettre l''accentuation alors que ça marche bien avec "wxruby". merci Sebastien _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org
2007 Apr 12
9
taille de caractère
en fait je vous renvoi ce message car maintenant la taille de la police change au bout de 500 lignes environ, alors que j''avais reussi à garder la taille jusqu''à environ 5000 lignes. Je ne comprend pas. Est-ce que c''est instable? le bout de code que vous m''avez envoyer ne marche pas. merci Sebastien _______________________________________________ wxruby-users