similar to: location of maximum

Displaying 20 results from an estimated 8000 matches similar to: "location of maximum"

2002 May 06
3
Viewing certain numbers without NA's
Dear R Community, We have recently installed R 1.5.0 on several workstations. Ever since, if I try to extract certain numbers or lines from a file (which contains many NA's), I don't only get my desired line but all other lines which contain NA's. In a file with 15000 rows and 7500 NA's this is not very practical. In the earlier R-Version this worked when I typed in the
2003 Jul 15
2
Keeping track of occurrence of warning message
Hi there, I am interested if there is anyway to keep track of the occurrence of warning message. I know that warnings will only be printed out at the end of the program if warn=0. However I am also interested at which particular set of data does the warnings occur too. This is because I am running 1000 data, so if there are 2 or 3 data that give warnings, I would like to know which are the ones
2002 Feb 28
3
Use of results in summary
Dear R Community, When making a summary with a vector, the result is "numeric" and I can recall its components (like median, mean, etc.) for further use. However, if I use summary with a matrix, the result is of mode "character" (like "Median : 1.2127") and I cannot extract the results for direct further use. Thanks for any hints, Patrick -------------- next part
2002 Jan 22
3
assigning NA's
I've had a question a few moments ago about how to create multiple objects from multiple files within a loop. Thanks for the quick answers, it worked with "assign", like this: for(i in seq(1,nfn,1)){ fin<-paste("/home/klimet/patrick/LAEGEREN/NEBEL/FOGEVENT2000/",fn[i],sep="") assign(paste("f", i, sep = ""),
2003 Mar 17
2
search function
Could any one tell me there is a search function for R-help Archives? Thanks
2003 Mar 13
2
memory limit
Hi, I get an error saying " Cannot allocate vector of size 71289kb". So I tried to increase memory by memory.limit(size=3000000000), I also tried other numbers. Each time I get the message NULL and then I still get the same error as above. I'm using Windows 2000. The system has 1G RAM, and 1.6GHz processor. I was only running R, and was trying to do use a BioConductor package. I
2002 Jun 15
1
plot.hclust with lots of objects
Dear all, the default plotting method for hclust trees looks just fine for few objects like in the example dataset. But when it comes to many objects (some 1000 - I'm trying to visualize clustered microarray data) it renders a tree, that one cannot inspect, because of overlapping text and lines. My question is, is there a way or a plotting parameter for plotting a tree which is wide enough
2003 Sep 24
1
heatmap and hclust
Hi all, The function heatmap uses the functions dist and hclust with default parameters. How to change these parameters? For example, i want to use the ward criterion for hierarchical clustering with binary distance. Best regards, Olivier.
2003 Mar 18
1
Building hdf5 for ms-windows
I am trying to build hdf5 for ms-windows. I downloaded the hdf5_1.4.7.tar.gz, gunzipped it and got a tar file. I extracted everything into a directory tree called hdf5. I also found a Makevars.win and libhdf5.def in the R help archives from March 2002. I put those two in hdf5 as well. I issued the command Rcmd build --binary hdf5 but got this message complaining it can''t find
2001 Sep 27
1
multiple versions
Can anyone suggest a good way to handle multiple versions of R and also other tools like gcc and perl (in Unix). I have been using soft links from my personal bin to the version I want to use, but this has some drawbacks. With this scheme it is difficult to run different versions of R in different windows, and use of gcc appears to be complicated in several respects when I try to change among
2002 May 02
2
a question
Hi, I have a program written in R which is good on the version 1.2, but for the fallowing versions of R, an error always is at the same place. That is at the level of the fallowing line: Sur<- getInitial(res2[m:M,2]~SSasymp(res2[m:M,1],Asymp,resp0,lrc),data=res2) Error in eval(expr,envir,enclos):numeric envir arg not of length one I don't know at all this langage for the instant.
2002 Sep 21
2
need help for eval()
Hello, I need help, after hours trying to do it myself, to do the following: I have an object, named, say, F1 from a class "fichier" that I buildt. this F1 has a slot named datas ,which is a vector, so I can access to : F1 at datas[1], F1 at datas[2], ... Now I have a string s="F1 at datas[1]" and need to retreive the real content of F1 at datas[1] using s.
2003 Mar 18
3
Package installation when $RHOME is not writable (win)
I'm using R in a student lab with machines running win XP. $RHOME is not writable by the students. How do I set this up so that they can install packages? Thanks, Robert. ---- Robert King, Statistics, School of Mathematical & Physical Sciences, University of Newcastle, Australia Room V133 ph +61 2 4921 5548 Robert.King at newcastle.edu.au
2002 Apr 24
2
Multiple frequencies
Hi! I'm having a small problem with an assignment I have to do. We want to do an anova on some values, given for four different types of medicine. The different sample numbers are not identical (eg for molecule A we have 8 values, for B we have 14, etc.). What would the most elegant way of getting this info into R to do an lm be? I usually try to use data.frames but R categorically
2002 Mar 17
3
apply problem
> data(iris) # iris3 is first 3 rows of iris > iris3 <- iris[1:3,] # z compares row 1 to each row of iris3 and is correctly computed > z <- c(F,F,F) > for(i in seq(z)) z[i] <- identical(iris3[1,],iris3[i,]) > z [1] TRUE FALSE FALSE # this should do the same but is incorrect > apply(iris3,1,function(x)identical(x,iris3[1,])) 1 2 3 FALSE FALSE FALSE
2002 May 25
2
Function objects as arguments of a function
Hello, R users. In C (or C++) language, a function can be used as an argument of another function as follows: // function used as an argument void foo(int x) { ... } // function using a function as an argument void bar(void (*func)(int ), int arg1, int arg2) { .... } // The function 'bar' will be called as follows int main() { .... bar(foo, arg4foo, other_arg);
2002 Oct 14
2
Vector of quantiles
I have a quick question which is very simple but I seem to have a mental block! I'm using the pchisq function to specify a Chi Squared distribution with 9 df which I'm then going to use in the Kolmogorov-Smirnov Test to test some simulated values. so simply: pchisq(q, df=9) I know that q is the vector of quantiles but could anybody tell me what exactly this vector needs to contain?
2003 Apr 22
3
lexical scope
Hi everyone another documented feature that was a bit unexpected for me: R> x <- 19 R> f <- function(t){t+x} R> f(100) [1] 119 --as expected: x is visible from within f() ..but... R> g <- function(a){x <- 1e99 ; return(f(a))} R> g(4) [1] 23 --the "x" that is visible from within g() is just 19, which is not the one I expected it to find. R> rm(x)
2002 Mar 20
4
A Very Trivial Question
Hi, This is a very trivial question, and I do not know why I cannot remember the answer at all! How does one get the entire system information (which OS, R version....etc) using an R command? Thanks, Kevin ------------------------------------------------------------------------------ Ko-Kang Kevin Wang Postgraduate PGDipSci Student Department of Statistics University of Auckland New Zealand
2002 May 15
3
Processing "vignette" files
Is there any way to process the "vignette" documantation files? I have been looking at the bioconductor packages and most of them have *.Rnw files in doc directories. They look like regular TeX but have sections showing R code that seem to choke TeX. Thanks, Andy __________________________________ Andy Jaworski Engineering Systems Technology Center 3M Center, 518-1-01 St. Paul, MN