similar to: Loop removal possible?

Displaying 20 results from an estimated 600 matches similar to: "Loop removal possible?"

2001 Apr 27
1
creating expressions inside loop
Hello all, may be someone can give me a hint how to solve a little problem. I'm trying to create some expressions inside a for-loop which i want to evaluate AFTER this creation loop (but loop specific). To explain my problem here comes the code: y.mat <- t(matrix(rep(84:90,8) + as.numeric(gl(8,7)),nrow=7)) # > y.mat[1:2,] # [,1] [,2] [,3] [,4] [,5] [,6] [,7] # [1,] 85 86
2000 Aug 29
4
short way
i want to replace certain values of a matrix. i know how to replace them when the values are in a vector. i tried the same way for a matrix and got this answer: la[la==0]<-1 Error in [<-.data.frame(*tmp*, la == 0, value = 1) : matrix subscripts not allowed in replacement i found a way to do this with "for()", but i think this is the worst way to do it. So is there a
2000 Nov 09
3
maximum of nsize=20000k ??
Dear R-ers, somehow it is not possible to increase nsize to more than 20000k. When I specify e.g. > R --vsize=10M --nsize=21000K the result is: free total (Mb) Ncells 99658 350000 6.7 Vcells 1219173 1310720 10.0 Maybe I have overlooked s.th.... Marcus -- +------------------------------------------------------- | Marcus Eger | E-Mail: eger.m at gmx.de (NEW) |
2000 Oct 17
3
Cleaning things up?
Hi, I know it must be written somewhere but I can't find it. I'd like to remove all variables or objects that I've created but not the functions. I look at a few things without success. Is there a R way of doing this? There are to many to create a manual list. Thanks in advance. Yves Gauvreau -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help
2000 Oct 11
5
"Executing" a string
In Matlab or Octave I can evaluate (evalf) the content of a string. In R I have looked around in the docs, but have not found a way to do something equivalent (which is possible, I think). Can anybody give me a pointer? ============================================================================= Thomas Hoffmann, Institut fuer Halbleiter- und Mikrosystemtechnik, TU Dresden E-mail: hoffmann at
2000 Oct 23
3
behaviour of plot(...,type="l")
plot(rnorm(100000),type="l") plots only about 7e4 lines while the same without type="l" works fine. Is this a feature or a bug or is this configurable? R : Copyright 2000, The R Development Core Team Version 1.1.1 (August 15, 2000) SunOS 5.5.1 Generic_103640-29 sun4u sparc SUNW,Ultra-1 Thanks Adrian -- Adrian Trapletti, Olsen & Associates Ltd., See- feldstrasse
2001 Mar 07
2
help with dev.copy2eps
HI! I'm using the function dev.copy2eps to store a plot into a file. How can I change the default name of the file and the path where the file should be created ? Thanks -- Frank Gerrit Zoellner -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info",
2000 Dec 20
2
Names
I am trying to create a set of vectors which have similar names. They have a common part and an extra unique part. I am sure I have seen questions on this before but I have been unable to find it in the archive. There are examples of sets of names for columns of a data frame, but not for individual vectors. Suppose I want vectors named myvar.1 myvar.2 etc. I tried: >
2001 Mar 02
3
Post Hoc on repeated measures?
Hi all, I'm a potential new user of R and have to know this before I start using it: SPSS does not let you do a Post Hoc analysis on repeated measures data. This is a problem for me, since that is what I will have to do. Will R let me do this? /Fredrik -- ----------------------------------------------------------------- Fredrik Karlsson, Research Student Department of Philosophy and
2001 Mar 14
2
concatenating lists
Dear People, I have been trying to perform concatenation operations on lists without success. Consider the following example. > x <- runif(2) > y <- runif(2) > z <- runif(2) > xy <- list(x,y) > xyz <- list(x,y,z) I want to have a function foo such that foo(xy,z) is the same as xyz. This appears not to be as easy as I thought, though there must be a way. For example
2000 Nov 21
3
boxplot grouped by two variables.
Is there a quick way to make boxplots groups by two variables? By that I mean, that if x axes have values ("A","B","C"), than at each value there would be a few boxplots each for a value of second variable (say ("1","2","3")). Thank You. -- Vadim Kutsyy http://www.kutsyy.com vadim at kutsyy.com The University of
2000 Nov 21
3
boxplot grouped by two variables.
Is there a quick way to make boxplots groups by two variables? By that I mean, that if x axes have values ("A","B","C"), than at each value there would be a few boxplots each for a value of second variable (say ("1","2","3")). Thank You. -- Vadim Kutsyy http://www.kutsyy.com vadim at kutsyy.com The University of
2000 Dec 18
2
Segmentation fault with expression on linux
I have a problem, that the plot of mathematical formula sometimes crashes R on Linux (SuSE 6.2 and 7.0 on a Dual PIII/500 machine with 1GB RAM). The problem occurs for example in demo("graphics"), i.e. in the last part were the mathematical symbols are plotted. There are several circumstances to reproduce this segmentation fault, but the following is one of the most simple examples. The
2001 Feb 22
4
Setting elements in data frame
Hi all, I have a problem which I am biting my teeth into unsuccessfully: (x <- data.frame(S1=c("a","b","d","F"),N1=c(2,4,6,9),N2=c(6,NA,0,6))) S1 N1 N2 1 a 2 6 2 b 4 NA 3 d 6 0 4 F 9 6 > is.na(x) S1 N1 N2 1 FALSE FALSE FALSE 2 FALSE FALSE TRUE 3 FALSE FALSE FALSE 4 FALSE FALSE FALSE No I want to be able to do: 1) Setting
2004 Aug 30
1
While installing Hmisc...
Dear R-Gurus: This afternoon I was installing the "Hmisc" package. I use R in Linux (Fedora Core 1 (yarrow)) on a Compaq presario with 128 MB RAM laptop. Opening an R session as a root user (superuser), I issued install.packages("Hmisc") and waited. R downloaded the package, installation was going on, and on the standard output I could see that a list of
2005 Feb 11
2
pb with package mix
hello, We've got a problem with the mix package in order to impute the missing data. After importing the data, the prelim function does not work (only the stlouis data works). We have done : >library(mix) >Manq <- read.table("C:/.../file.txt") >attach(Manq) >save(Manq,file="C:/../R/rw2001/library/mix/data/Manq.rda") >data(Manq) >Manq V1 V2 V3 V4 1
2004 Aug 26
3
plot.new?
Hi all, I am just beginning to use R and encountered a problem in trying to draw a regression line using the command "abline(coef(var)" and similar ones but got the error "plot.new has not been called yet". Does anybody know how can I call plot.new? Is this an additional package to be found somewhere on the web? Is it a functionality that I just have to "activate"
2007 Nov 25
2
accessing the "address" of items in a recursive list
Dear useRs, I am working on a project involving the clustering of a large dataset. I need to extract specific sub-clusters from the parent dendrogram for further analysis. The data is too large for the use of convenient tools such as identify.clust (it selects the specific group of interest on a graph), so alternatively I have saved the plot as a large image file so that it can be printed or
2010 Sep 24
4
Object Browser
What's the best object browser? Dear all, I have tried all the popular R IDE or editors like Eclipse, Komodo, JGR, Revolution... They all have fancy fucntions like auto completion, syntax highlight.... BUT, I JUST WANT A OBJECT BROWSER! The easiest way to view objects in R console is fix(), but you have no global view of all the objects in the workspace. Revolution has the best object
2004 Mar 22
4
R commands formating for LaTeX
Dear R users, I have to include typical UNIX formated R commands and outputs into the article using LaTeX. What is the easiest way to include R prompt commands and text outputs (including messages) into LaTeX documents? Is there any template or library? So far I'm trying to produce R commands in LaTeX using LaTeX general format options. Thanks, Rado