Displaying 20 results from an estimated 10000 matches similar to: "unix environment variables under R"
2002 May 14
2
least summed square distance + fit
hi,
I have a matrix (representing original data) that looks e.g. like this
(consider it beeing x,y,z coords):
441 447 0
265 407 0
374 223 0
288 574 0
669 309 0
591 195 0
595 475 0
424 351 0
I get a second matrix (subject data) that is similiar to the above
matrix but it is scaled, translated and rotated (and of course a little
inprecise).
Also I have an
2002 Oct 29
4
sourcing the content of directories
hi,
is there a way to source all R-files that reside in a given directory
with a single R-call ?
greetinx jan
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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", not the subject !) To:
2005 Apr 07
5
apply
Hi,
simple question I guess:
the following line works well:
aveBehav=c(apply(sdata, 2, mean))
However, I would like to pass an argument to the function mean, namely
na.rm=TRUE
Does anyone knows how to do this?
Thanks in advance,
Jan
2002 Aug 20
2
t() converts data.frames ind matrix
hi,
i just recognized that the t() function converts a data frames into a
matrix (R 1.5). is that a bug or a feature ?
greetinx jan
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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", not the
2002 Jun 24
1
multiple graphics in separate windows
hi,
I am looking for a possibility to open several graphics in independent
windows (is that the graphics device ?).
up to now, i was only able to generate a graphic, then save it (e.g. as
eps) and then generate a new plot that always overwrites the old
graphic. I am aware of the fact that I can generate multiple plots in a
single graphics window, but this is not what i am looking for ..
2002 Jul 05
1
aov() and NaN
hi,
another anova question !!
how does aov() treat missing values ?
since it might depend on my experimental design:
i have a within subject design with two factors ...
i use aov() like this:
aov(performance~type*block+Error(subj/(type+block)),data=anovaData)
now it might happen that i have a couple of NaN data points in my result
dataFrame.
how can i know/control how aov() is treating those
2002 Sep 06
1
acutally a statistics question
hi,
knowing there are a lot of statistics guru's in the R-mailing list, i
throw in a statistics question.
i have data that i do not know how to statistically test:
subjects are repeatedly asked to make a decision (e.g. left-right ->
coded as 0 or 1). i have 20 subjects, each subject made 8 decisions.
i now want to analyse whether my experimental manipulation induced a
systematic bias
2002 Oct 15
2
V-value in the wilcox.test resp. wilcox.exact
hi,
when performing a wilcox.test or a wilcox.exact i get results that looks
like this:
wilcox.exact(x, mu=.5)
Exact Wilcoxon signed rank test
data: x
V = 207, p-value = 0.0006905
alternative hypothesis: true mu is not equal to 0.5
the way i understand the wilcox.test (or wilcox.exact) the V-value
represents the summed up ranks of either the positive or negative
differences,
2002 Oct 11
1
plot region ??
hi,
i am using the barplot function, but i have problems with the plot
region when adjusting the bar width manually. if you only want to plot 2
bars the default barwidth is to wide (aesthetically speaking). by
adjusting width and xlim one can actually produce narrow bars, but then
the plotted graph is not in the center of the plot region, which means
that for example the title of the plot
2017 Jul 14
3
setwd in windows
Dear friends - windows R 3.3.3 - sorry to ask a simple question - but I
cannot make setwd work properly in scripts
In the example below I have made a directory in C (firstdir) and a
directory in that (secdir) and the intention is to change directory to
the second from the first - it works when I put the entire path but not
the tilde - what am I missing? I was around rwf 2.14 as per the help
2002 Mar 15
2
cutting barplots at e.g. 50%
hi,
i want to plot percentage values using barplot. everything works fine so
far. giving a chance level of 50% i want to plot only the area above 50
percent.
i can of course cut using ylim=c(50,100) but this does not work
properly since i also see some of the area below 50%.
thanks for suggestions,
jan
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help
2002 May 15
2
combining vectors to matrices or data frames
hi,
during a for(i in 1:xx]) loop I always newly calculate a vector
(e.g. tmp<-c(a,b,c,d,e) )
now i need that vector to be attached at the bootom of a matrix (or
data.frame).
e.g.
m<-matrix()
for(i in 1:5]){
#some calculations for a,b,c,d,e
a<- ... b<- ... c<- .. ....
tmp<-c(a,b,c,d,e)
??? now I need to attach this tmp to the matrix m ???
}
i couldn't get rbind
2002 Jul 10
2
sorting matrices
how can i sort a matrix by sorting the first colloum in ascending order
and have the values of the other colloums in the relative position to
the sorted values.
thanks for help
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or
2009 Jul 24
1
downsampling
Hi,
I am looking for ways to donwsample one-dimensional vectors.
For example,
x=sample(1:5, 115, replace=TRUE)
How do I downsample this vector to 100 entries? Are there any R functions or packages that provide such functionality.
I did find the zoo package and the aggregate() function, but these appear to be rather specific for time-series.
Thanks in advance,
Jan
2011 Aug 25
3
Very Basic Source Question
I'm having an issue sourcing an R file from my workbench using StatET in the
Eclipse IDE. All I'm trying to do is get comfortable with 'source' and run
"source(C:/Program Files (x86)/Eclipse/eclipse/ProjectName/SourceFile.R)".
When I try to call the path for the file i get the error: "unexpected '/' in
"source(C:/". I've looked around but
2006 Feb 22
2
How do I tell it which directory to use?
>From Tom:
In R 2.2.0 under Windows, I want to be able to give it a filename such
as "myFile.txt" without the quotes. But actually I mean:
C:\Documents and Settings\Tom\My Documents\qpaper7\R Project Started
19 Dec 05\myFile.txt
If I were to repeat this each time, my computer would get all bored
and cranky and start to drop bits (only a joke, of course). I think I
want to set
2005 Aug 24
0
[Fwd: Re: reading "special" text files]
--
Dr. Jan Malte Wiener
Max-Planck-Institute for Biological Cybernetics
Spemannstr. 38, 72076 Tuebingen, Germany
tel.: +49 7071 601 631
email: jan.wiener at tuebingen.mpg.de
url: www.kyb.tuebingen.mpg.de/~malte
-------------- next part --------------
An embedded message was scrubbed...
From: Jan Wiener <jan.wiener at tuebingen.mpg.de>
Subject: Re: [R] reading "special" text files
2008 Sep 07
1
Problem with starting and using R
Dear all,
I encountered a problem on starting and using the R v 2.7.2 installation on
my PC running Windows Vista and would appreciate your help.
When R was first started, the Rgui returned several error messages:
Error in structure(.Internal(Sys.getenv(as.character(x),
as.character(unset)$ unsupported conversion
Error in file.exists(name) : unsupported conversion in
2002 Sep 26
1
T-Value, ties and the wilcox.test()
hi,
i am looking for a way to correct for ties in the wilcoxon signed rank
test -> e.g. wilcox.test(x,mu=.5)
one way i have heard of is to look up the p value in a table that has
been produced by Buck (1975). obviously i need to know the T-value to do
that -> how do i get the T-value from the wilcox.test() function.
is there any other (already implemented) way to correct for ties in
2011 Nov 02
1
Help with curr directory in R
Hello All
Thanks for all responses in advance,
I am invoking R from command line from C:\TEMP as
C:\Program Files\R\R-2.9.1\bin\R.exe --vanilla -f C:\temp\test.R
On two different machines
The test.R looks like:
--SNIP-
print(c("CurrDir=", getwd()))
proc.time()
warnings()
--SNIP-
On one machine I get the currDir Correctly printed as C:/TEMP
But on another it gets printed as C:/