similar to: apply

Displaying 20 results from an estimated 8000 matches similar to: "apply"

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
5
unix environment variables under R
hi, i am working on a little R-project with a couple od other guys.we use CVS, but everyone keeps the R-source files in different locations in his home-directory. of course this causes trouble when sourcing R-files. i thought a UNIX environment variable could be the solution, but R doesn't seem to know about the environment variables. e.g. >> source("$PROJECT/xxx.R")
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 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 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:
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
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 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
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
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
2007 Sep 24
2
calculating/plotting error ellipses
hello, sorry for posting what may be a simple question: i do have a matrix of coordinates (positional judgments, see below) and now want to calculate and plot the corresponding error ellipse. can anyone help me with the exact steps/syntax? > xyDat X Y 1 -0.49 -2.13 2 0.91 0.48 3 0.20 -2.80 4 -0.76 -3.23 5 -0.36 2.50 6 1.38 1.24 7
2009 Jun 07
2
Need some help in R : value more than equals to a row.
Hallo, I was trying some code, but couldn't make one step of the code properly. Can anybody please help me? I have one matrix like this > values [,1] [,2] [,3] [,4] [,5] [1,] 0.7777778 0.36111111 0.22222222 0.1388889 0.0000000 [2,] 1.0000000 0.00000000 0.53846154 0.0000000 0.5384615 [3,] 0.5200000 0.48000000 0.64000000 0.0000000 0.8800000 [4,] 0.8928571
2005 Jan 31
3
Veto files applied per group
Hi guys, I use "veto files = /.mp3/.mpg/" etc. on the [homes] share to prevent users from storing media files on a Samba server in the home directories. My client now wishes to make this restriction apply to users who are members of only certain groups. E.g. This restriction must apply to users who are members of the "Students" group and not apply to users in the
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
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
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 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
2008 Mar 27
2
colMeans in a data.frame with numeric and character data
Hi all, I would like to know if it is posible by, someway, to get colMeans from a data.frame with numeric as well as character data, dispersed all over the object. Note that I would like to get colMeans neglecting character data. I am really in need of some function proceeding in that way… All the best Diogo André Alagador [[alternative HTML version deleted]]
2008 Feb 06
1
error message from apply()
Hi, I keep getting the error message. Please help. Error in colMeans(x, na.rm = TRUE) : 'x' must be an array of at least two dimensions The codes are: data2_1 <- matrix(c(0.9584190, 0.2710325, -0.9495618, -0.1301772, -0.7539687, 0.5344464, -0.8205933, 0.1581723, -0.5351588, 0.04448065, 0.9936430, 0.2278786, -0.8160700, -0.3314779, -0.4047975, 0.1168152, -0.7458182, - 0.2231588,