similar to: Excluding rows from a matrix

Displaying 20 results from an estimated 10000 matches similar to: "Excluding rows from a matrix"

2000 Aug 04
3
How to use complicated FUN in apply ?
Hi everyone I'm trying to use sigma2.mat<-apply(ri.mat,2,'-n/2*log(sum(ri.mat^2)/n)') but it's not working. Is it wrong to use that kind of FUN in apply ? or am I doing something wrong ?! Thank's ernesto -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send
2001 Jun 01
4
multiple lattice-pages (development package!)...
One Question: if I make a lattice-plot (beware: under development!) with a special layout e.g. c(2,2,4): p1 <- xyplot(y~x|id,data=data,layout=c(2,2,3)) is there a way to print.trellis e.g. the second page of the trellis object "p1"? print.trellis(p1,page=2) #!wrong! I want this to automatically dev.print the pages (no, I don't want multiple postscript pages). If this
2001 Jul 06
9
a < b < c is alway TRUE
One of our students did something like: x[a < b < c] instead of x[a < b & b < c] But why is 3 < 2 < 1 # [1] TRUE ??? Is there any reason? Or wouldn't it be better to get a warning / error? Uwe Ligges -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
2001 Aug 15
2
RegExp Question
I have to admit that I'm a bit ignorant about regular expressions...I have a problem with "gsub": under unix I can : > cat tmp.txt F.123 F.123 F123 F123 sed 's/F\./d/g' tmp.txt d123 d123 F123 F123 that is: replacing "F.", however under R: gsub("F\.","d",c("F123","F.123"),extended=F) [1] "d23"
2001 Jun 06
1
lattice (!under development!) font curiosity
Perhaps this might be a font problem, it might be that my font dirs are broken (but I don't think so, it is a standard potato inst.): > xyplot(rnorm(10) ~ rnorm(10) ,main=list("???dsa",cex=2)) ...displays German special characters false (as greek letters). Curiously these work o.k.: > xyplot(rnorm(10) ~ rnorm(10) ,main="?dsa") > xyplot(rnorm(10) ~ rnorm(10)
2001 Jun 06
1
lattice (!under development!) font curiosity
Perhaps this might be a font problem, it might be that my font dirs are broken (but I don't think so, it is a standard potato inst.): > xyplot(rnorm(10) ~ rnorm(10) ,main=list("???dsa",cex=2)) ...displays German special characters false (as greek letters). Curiously these work o.k.: > xyplot(rnorm(10) ~ rnorm(10) ,main="?dsa") > xyplot(rnorm(10) ~ rnorm(10)
2001 May 30
1
non-R hevea question
Dear People: Here is a non-R question, please: Does anyone use hevea for Windows to translate LaTex to HTML? If so, how do you get \bar, \sqrt, and \ne, please? I get an error message of unknown macro. Thanks in advance for any help! Sincerely, Erin M. Hodgess, Ph.D. Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown One Main Street
2003 Jan 23
2
Exporting graphics window
Hi I'm working on a remote computer with R (SuSE 8.1) and I want to do some ploting. Does anyone knows if it is possible to export the graphics window in to my display and how I can do it ? Thanks EJ -- Ernesto Jardim <ernesto at ipimar.pt> Marine Biologist Research Institute for Agriculture and Fisheries Lisboa, Portugal Tel: +351 213 027 000 Fax: +351 213 015 948
2003 Apr 14
6
Charts to M$Word - what's the best format
Hi I'm exporting some graphs from R to M$Word. I used png, jpeg and bmp and the quality is poor when comparing with the postscript. What is the best way to export a chart to be included in a M$Word file ? Thanks EJ
2004 Mar 12
5
grep
Hi, I want to use the first digit of the elements of a vector. I've tried grep but didn't work. Any help is welcome. Thanks EJ > grep("^[0-9]",as.character(runif(100,0,2))) [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 [19] 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 [37] 37 38 39 40 41 42 43 44 45
2003 Jan 24
4
memory problems
Hi I'm computing a bca interval using bca.ci from the boot package. When I try to use this I get an error > library(boot) > boot(logglm.data,boot.fishpower,2500,coef.vec=coeflm.vec)->blm8901 > bca.ci(blm8901,index=29) Error: cannot allocate vector of size 456729 Kb However my machine has 2GB of memory and without R running I only have 112M of memory used. Is there something
2001 Apr 17
3
instaling R
I have not been able to install R on my computer. I am using a Linux Mandrake 7.2. What is the archive I have to download? where is it located? How can I install it after downloaded? Thank you Antonio -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help",
2000 Aug 30
1
How can I start R
I am not good in English, so excuse me. I have just install R. I put the package in the file OPT. ./configure make make install But i dont now how to run this application. Can you help me. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or
2000 Sep 14
1
Pl. provide and Input for Kmeans
Sir, Would like to know what sort of input matrix are taken by the kmeans function defined in mva library of R application. As per the documentation for the Kmeans it takes the following 2 data sets: 1) data 2) centers The commands to be executed in R are as follows: library(mva) data <- read.table('file1',header=TRUE,sep="\t") centers <-
2001 Jun 06
3
HLM-like analysis in R
Greetings- I have some data on which I need to do something like a Hierarchical Linear Model (please bear with me, I'm only learning the technique so I don't know yet if my language is correct). Essentially I'm analyzing data at two levels simultaneously; data are about individuals an organizations of which they are members. Can someone point me toward an appropriate package in R?
2000 Oct 02
2
R function for "interp"
Hi How can I do the same has interp in s+ with R ? I've looked to "approxfun" but didn't figured out how to do it. Thanks EJ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body",
2001 Aug 28
2
using by to plot
Hello, I would like to use by to create a series of plots, but I'm not sure how to design the function. Here's what I've got: 1. A data frame of observations of measured value 2 measured vlaues and a pch code. V1 V2 pchCode .0045 123 1 .0034 145 2 .0045 123 1 .0046 167 3 ... So what I want to do is create a single scatterplot of the multiple conditions (specified by
2000 Dec 06
1
Landscape problems with ps2pdf [summary]
Since I sent my original question last week, this is one of two suggestions that worked. Using Adobe Acrobat, as suggested by Professor Ripley, was very satisfactory, but required that I use multiple platforms to make the conversion to PDF (from Linux to Windows). The solution by Peter Adorjan (included below), also worked very well, and can be carried out on any platform using tools available
2002 Dec 20
5
Getting graphs into LaTeX
Hello ALL: I ran with success the following commands in R getting a file saved ------------------------------------------------------------------------------------ postscript() postscript('~/data/st202/2003/lecture00/lecture00-graph-01.eps', horizontal = FALSE, height = 6, pointsize = 10) hist(trial.outcome.5, breaks = 5, main = '1000 Replications of 5 Trials of a
2001 Jun 29
2
Re: ESS and R ver 1.3.0/ graph menu/ save PDF
"SM" == S McClatchie <S.McClatchie> writes: > > SM> I notice that the new option under R ver. 1.3.0 to save a > SM> graph as a pdf file from the graph window menu (file/ save as/ SM> > PDF) works differently (extremely slowly) under ESS, whereas SM> it is > almost instant from the R- gui. > > SM> Does the feature not work