similar to: Flip rows and columns of a table?

Displaying 20 results from an estimated 2000 matches similar to: "Flip rows and columns of a table?"

2005 Apr 18
5
the graph gallery strikes back
Hello useRs and helpRs, Some time ago, in a gallaxy far away (here is the thread : http://finzi.psych.upenn.edu/R/Rhelp02a/archive/46532.html ) we discussed about a graph gallery showing the power of R in that domain. I did some work around that, and there is a (pretty advanced) draft here : http://addictedtor.free.fr/graphiques/displayGallery.php For instance, there are some of my graphs,
2005 Jun 13
3
assignment of inidividual variables from spss save files
New to R, can't afford SPSS! Why can't I assign spss variables? Here are the details. > ### I've read in my collaborator's sav file using read.spss, eg > children = read.spss(filename) > ### It has many variables > length(children) [1] 347 > ### and I would like to assign individual variables. > ### I can of course type out all the ones I want, eg >
2005 Jan 07
4
hist function to give each cell equal area
Hi, I want to use hist with non-equi-spaced breaks, picked such that the fraction of the data points falling in the cells (defined by 'breaks') is roughly equal accross all cells. Is there such a function that will automatically try to determine the breaks to fullfill this requirement? Something like.. hist( x, br = magic_function_to_pick_breaks()) For example, if x looked like
2005 Aug 02
3
how to print a data.frame without row.names
Dear All, is there a simple way to print a data.frame without its row.names? example: datum <- as.Date(c("2004-01-01", "2004-01-06", "2004-04-12")) content <- c('Neujahr', 'Hl 3 K.', 'Ostern') df1 <- data.frame(datum, content) print(df1) datum content 1 2004-01-01 Neujahr 2 2004-01-06 Hl 3 K. 3 2004-04-12 Ostern Can I get
2005 Oct 19
6
forrest plot
Hi, can you tel me how can I make a Forrest Plot with R? It is possible and easy or are there a more practical free software available? Than you Mic [[alternative HTML version deleted]]
2005 Apr 23
3
How to know in which package is a function
Hello list, I'd like to know if there is a function that tells in which package is a given function. Something like : which.package("lda") [1] "MASS" Thank you. Romain -- ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~ Romain FRANCOIS - http://addictedtor.free.fr ~~~~~~ ~~~~ Etudiant ISUP - CS3 - Industrie et
2005 Jan 09
2
plot.default and open ended limits
Hi, I would like to bound the lower limit of my y scale to zero, and let R chose an upper limit. Something like plot(x,ylim=c(0,)) or plot(x,ylim=c(0,na)) but nither of these do the job. I searched the docs, but I can't see a way to do this. Naturally its nothing I can't do 'by hand', I would just like to know if a correct syntax exists.
2005 Apr 28
1
normality test
Hi, I have a small set of data on which I have tried some normality tests. When I make a histogram of the data the distribution doesn't seem to be normal at all (rather lognormal), but still no matter what test I use (Shapiro, Anderson-Darling,...) it returns a very small p value (which as far as I know means that the distribution is normal). Am I doing something wrong here? Thanks Pieter
2005 May 19
2
ARIMA estimation
Good morning, (sorry for my english) i have some problems to put off by extimation ARIMA coefficients the ones not significatives. Exist a method to extimate only that significatives? i use the command: arima(). thanks to all Stefano [[alternative HTML version deleted]]
2005 May 20
2
Plot Problem
Hi folks, I try to plot a variable which contains string-variables. it works, but the problem is that there are a lot of values at the x axis (up to 24) SO i have to scale or rotate the label at the x axis. I tried this with the text() function. It doesn't work correctly. Is there a simple way to rotate the labels? Best regards, Sebastian
2005 May 25
3
DOING CLUSTERING WITH THE EM ALGORITHM
Hello, I am looking for documentation (PDF ?) about doing clustering with the EM Algorithm on R... I'm sorry for this question which may be trivial... Thanks... Dominique
2005 Jun 08
2
matrix
hi, is it possible to create a matrix with one row and according to add a row? in fact, at present, I'm doing an algorithm which fill a matrix. On the web site of CRAN, the package basic is impossible to be load! can you tell me where i can found it! Thanks Sabine --------------------------------- [[alternative HTML version deleted]]
2005 Jun 09
1
color on barplot
Hello, On my barplot, I have on the axis y, the names of the rows of my matrix r_mat! is it possible to change the color of these names on my barplot? barplot2(t(r_mat),beside=TRUE,horiz=TRUE,plot.grid=TRUE,xlab="R",font.lab=4,las=2,xlim=c(0,1)) thanks, Sabine --------------------------------- [[alternative HTML version deleted]]
2005 Jun 15
1
Graph with values of coordinates of points in x axis
Hi all, I want to draw a line with the values of x marked in X axis. I tried with x <- c(0,6,12,18,24,30) #coordinates of points x y <- c(2,5,7,5,7,16) #coordinates of points y plot(x,type="n",xlab="Months",ylab="Y values",main="main",ylim=c(0,16),xlim=c(0,30)) lines(x,y) The graph shows by default an increment of the sequence in x axis that
2005 Aug 02
1
(no subject)
hi all, I wish to draw on the same graphic device 3 functions. But i don't want them to be on different graph, i want to compare them on the same I don't need mfrow or mfcol, I need something else... 1 graph on 1 device inside this graph 3 ploted function. I saw something unsing data.frame, but i think it's overkill, and something less complicated must exist, if not why? why not
2005 Aug 03
2
R: histograms and ylim
hi all a very simple question once again!!! can we change the "y" range in a histogram? e.g. x=rnorm(1000) hist(x,ylim=0.5,prob=T) #this does not work any suggestions???
2005 Aug 05
1
use of color for hclust
Hi, I have a grouping of some observations. I want to cluster them using hierarchical clustering and compare how the hierarchical clustering shows up vis-a-vis the groupings. Is it possible to do this in color? I guess what I am looking for is a way to color the labels of a hierarchical clustering plot using different colors according to the original grouping. Any suggestions? Many thanks and
2005 Aug 18
2
how to draw an ellipse
That's probably a stupid question, but I'm looking for a low-level command which plots ellipse, specifying only center and deformation axes. The purpose is to illustrate bivariates gaussians with 2D .95 confident levels without using any specific library. Thanxs for your help, Guillaume
2005 Sep 15
2
about cutree
Hi Everyone, I'm trying to use cutree to get the clusters after hclust. What I used is: mycluster<-cutree(cnclust,h=0.5) Now, my problem is, how can I get the actual clusters? Thanks! Best, Baoqiang Cao
2005 Sep 16
1
Add lines to density plot
Dear List, I am using R to learn bootstrapping concepts. Not to be oblivious to the contributed packages of boot and bootstrap, I have opted to do the following as a way to hone my R skills. One example I am trying to work through is the following: x <- 1:20 Observed <- sample(x,20) Resamples <- replicate(1000,sample(Observed,replace=TRUE)) Boot.Means <- apply(Resamples,2,mean)