Displaying 20 results from an estimated 900 matches similar to: "set choose.files directory?"
2009 Aug 31
3
Two way joining vs heatmap
Hi
STATISTICA has a function called "Two-way joining" (see
http://www.statsoft.com/TEXTBOOK/stcluan.html#twotwo) and the
reference material states that this is based on the method as
published by Hartigan (found this paper:
http://www.jstor.org/pss/2284710 through wikipedia).
What is the relationship (if any) between the "heatmap" function in R
and this technique? Is there an
2012 May 04
1
Absolute cumulative curve with ecdf/stepfun?
Hi,
I have two variables ranging both from 0 to 1 (n=500 each).
Now I am interested in plotting them both in one plot (using ggplot2).
So far I used ecdf() (from an example I found with google) to get
values for the cumulatice distribution function which gives a relative
curve. I also want to do the same plot but using absolute cumulative
values instead of relative. Can that be done with ecdf or
2009 Sep 14
3
Question about Factors
Hi all,
I am new to R and I have got a question in regards to factors.
Say I have a simple dataset like the following:
Name Time Value
a 1:00 1.25
a 2:00 1.26
b 1:00 1.29
b 2:00 1.28
c 1:00 1.21
c 1:30 1.20
c 2:00 1.23
I want to write a script that automatically plot value against time for a, b
and c.
2006 Oct 08
3
Tellabs and a PRI
Another question,
Is anybody using the Tellabs 2572 EC with a PRI. When we moved from our
analog lines to a PRI, I thought it would be simple stuff moving the EC
to the PRI. Changed signaling, made sure that channel 24 wasn't being
ECd and everything came up. But, I was getting complaints of random echo
on the PRI. Local echo. Also, we weren?t able to do any kind of modem
dial-outs (Adit
2009 Apr 27
2
Problem with R 2.9.0 vs. R2.8.1 with either "survival" package or "predict" function
Just wanted to alert everyone regarding a problem that I only
experience with R2.9.0 and not with R2.8.1 when I run both using
exactly the same script and the same data.
Here is what I do with my data "MyData", 2 predictors (V1 and V2) and
my survival DV "Depvar":
library(survival)
2009 Nov 30
4
incompatibilidad de tinnR y R
Tengo instalado el R2.9.0 y el TinnR 1.17.2.4 y cuando abro Tinn R no me
detecta q el R este abierto por lo cual no me permite correr ningun
programa, alguien sabe q puede estar pasando?
Saludos
--
José
"... hoy el cambio cualitativo la liberacion, implica, cambios organicos, de
instinto y biologicos, AL MISMO TIEMPO q cambios politicos y sociales" H. M.
[[alternative HTML version
2009 Apr 28
1
help with Rtools and Rgraphviz
Hi all,
I want to install the package Rgraphviz on R2.9.0 (after installing Graphviz 2.22). I have not been successful in installing from the binary on a win XP pc. After looking up previous posts on the R and bioconductor lists, I installed the Rtools29. I have checked that the paths are correctly listed on the environmental variables window.
I would now like to know how I can install with
2009 Sep 09
1
Combining simulated data
R helpers
Please help me combine the simulated data to a form of table where: Hypermarket have 10 rows, supermarket have 15 rows,......., spazashops with 35 rows.
Hypermarket <- rnorm(10, mean=20000, sd=7000)
Supermarket <- rnorm(15, mean=12000, sd=4000)
Minimarket <- rnorm(20, mean=10000, sd=4000)
Cornershop <- rnorm(20, mean= 8000, sd=3000)
Spazashop <- rnorm(35, mean=
2009 Sep 13
2
(no subject)
How would I make a histogram using R from a table in excel that has 4
variables, but I only want to use 2 of the columns to make the histogram?
[[alternative HTML version deleted]]
2009 Sep 15
1
comma as decimal separator in xtable
Hello,
How can I make xtable print a comma as decimal separator? Setting
the option OutDec isn't enough for xtable:
library(xtable)
options(OutDec = ",")
x <- c(1.1, 1.2, 1.3)
y <- c(2.3, 2.2, 2.1)
d <- data.frame(x, y)
d
print(xtable(d))
Thanks!
Jakson Aquino
2009 Sep 16
1
list of symbols to substitution
Hi,
I'm trying to use a list of symbols as one of the values to be
substituted in a substitute expression, but I can't figure out how to
write the correct expression for my problem. Let me illustrate a
simple example of what I'm trying to do. The following code snippet
will evaluate to '5':
symname <- 'foo'
foo <- 5
expr <- substitute(c(expr), list(expr =
2009 Sep 17
1
How to extract data.frame columns using regex?
Hi,
data.frame(x1=1:11,x2=2:12,x3=3:13,y=4:14)
I want to extract all the columns that with the name 'x?'. Is there a
general way to do this in R?
Regards,
Peng
2009 Sep 19
1
random selection from dataset and creating and graphing multiple means
I was wondering if anyone could help me with a problem. I need to randomly
select, say 500 subjects from the 5000 cases I have and then need to run a
test to create 500 sample means and graph the means in a histogram. Does
anyone know how to do this. I'm not that familiar with R so please be
patient with me.
Thanks a lot!
Mike Hollingsworth
--
View this message in context:
2009 Sep 19
1
plotting least-squares residuals against x-axis
Hi,
I want to plot the residuals of a least-squares regression.
plot(lm(y~x), which=1)
does this, but it plots the y-axis of my data on the x-axis of the
residuals plot. That is, it plots the residual for each y-value in the
data. Can I instead use the x-axis of my data as the x-axis of the
residuals plot, showing the residual for a given x?
Thanks!
Jason Priem
University of North
2009 Oct 12
1
field index given name.
Hi,
How do I access the index number of a field given I only know the field
name?
eg - I want to set the probability of the field 'species' higher than the
other fields to use in sampling.
> colprob <- array(dim=NCOL(iris))
> for(i in 1:NCOL(iris)){colprob[i]=0.5}
> colprob[iris$species] = 1 #this doesn't work
> colprob
[1] 0.5 0.5 0.5 0.5 0.5
--
View this
2009 Sep 09
2
vector of Vectors
I just learned that vectors can't contain vectors, which frankly simply confuses me (can you imagine arrays or lists in any other language not being able to contain arrays or lists?). At any rate, I need to create a data structure (size to be determined at runtime) which I will instantiate and then fill with vectors using a for loop. Clearly I'm new to the R game. Data Frame doesnt seem to
2009 Sep 17
1
heatmap.2() problems with re-ordering of rows and columns
I have a file of the following form
-11 -10 -9 -8
-10 -9 -8 NA
-9 -7 NA NA
-8 NA NA NA
So basically a NxN matrix of log scores. I want to get a heatmap of these
log scores but I'm having a problem.
I'm using the following code
library(gplots)
data=read.table("filein.txt",header=FALSE)
mat=as.matrix(data)
heatmap.2(mat,dendrogram=c("none"))
But on the
2009 Nov 16
2
test for causality
Hi useRs..
I cant figure out how to test for causality using causality() in vars
package
I have two datasets (A, B) and i want to test if A (Granger)cause B.
How do I write the script? I dont understand ?causality. How do I get x to
"contain" A and B. Further using the command VAR() to specify x, I dont
either understand.
Kind regards Tobias
--
View this message in context:
2009 Sep 21
1
Specific criteria for color palette using heatmap.2
I'm trying to display the probability space of a function and wanted to see
specifically where the maximum posterior probability is.
data=read.table("PosteriorData",header=F)
mat=as.matrix(data)
heatmap.2(mat/max(mat,na.rm=T),dendrogram=c("none"),trace=c("none"),
Rowv=F,Colv=F,labRow=3*c(10:-10),labCol=3*c(-10:10),symm=T,col=rainbow(100))
As the
2009 May 18
0
R 2.9.0 slower than R 2.8.1 for the data.frame function
Dear developers,
I have noticed difference in computation time for the data.frame
function between R2.9.0 and R2.8.1. The older release is more efficient:
typically, R2.9.0 spends three more time in the data.frame function.
Therefore, when many calls of this kind is done inside a function, the
additional time spent with R2.9.0 may be several minutes.
Looking at the profiling results (see file