similar to: Summary Statistics for data.frame

Displaying 20 results from an estimated 6000 matches similar to: "Summary Statistics for data.frame"

2012 Feb 22
1
xtable prcomp
Hi, I need to export to LaTex the summary of a PCA. So: myPCA <- prcomp(myDF) mySummary <- summary(myPCA) # print(xtable(mySummary)) How can I export to LaTeX not all the summary but only the first nPCs?? Best Riccardo
2006 Jul 17
3
Correlation Mapping
On the cover of Zivot and Wang's Modeling Financial Time Series with S Plus, there is a correlation plot that seems to indicate the strength of correlation with color-coded squares, so that more highly correlated stocks appear darker red. If anybody out there is familiar with the book or understands what I am talking about, I am curious as to whether or not there is a similar function in R
2008 Mar 28
3
Converting a data frame to matrix
Hello: I have a tab delim file with 100 rows and 100 columns. I have numerical values in this table. What I want is to create an image color map with color gradation. my values range from -5 to 0. max value is 0. to acheive this, I need to convert my data.frame into matrix. I tried following : mydf <- read.table('mytable',sep='\t',header=T) mydf1 <- mydf[,2:100]
2017 Sep 08
2
quote()/eval() question
Dear list, For a reason it would take me long to explain, I need to do something along the lines of what's shown below -- i.e., create an object from dplyr::summarise, and then evaluate it on a data frame. I know I could directly do: df %>% dplyr::summarise(x1_mean = mean(x1)) but this is not what I'm looking for. library(dplyr) df <- data.frame(x1 = rnorm(100), x2 =
2009 May 06
4
tapply changing order of factor levels?
Hi, Does tapply change the order when applied on a factor? Below is the code I tried. > mylevels<-c("IN0020020155","IN0019800021","IN0020020064") >
2010 Aug 09
2
coef(summary) and plyr
Dear all, I?m having trouble getting a list of regression variables back into a dataframe. mydf <- data.frame(x1=rnorm(100), x2=rnorm(100), x3=rnorm(100)) mydf$fac<-factor(sample((0:2),replace=T,100)) mydf$y<- mydf$x1+0.01+mydf$x2*3-mydf$x3*19+rnorm(100) dlply(mydf,.(fac),function(df) lm(y~x1+x2+x3,data=df))->dl here I?d like to use ldply(dl,coef(summary)) or something
2006 Jul 08
2
Adding Lines to Plot
This seems like a question that I should be able to answer on my own but after looking at the documentation I cannot seem to find the correct method. How do I add lines to a bar plot that extend from the vertical axis? For example, my vertical axis is numbered in increments of 10 and I would like these to go across the whole graph. Also, is there a way to have R label the value of each bar so
2015 Jul 21
2
glm com etiquetas en las variables
Hola: Si aún hay alguien que no está de vacaciones, igual me pueden ayudar. Quiero ajustar unos modelos: REG_LOG <- glm (low ~ X, family = "binomial", data = DATOS) Ejemplo: library(MASS) data(birthwt, package="MASS") birthwt$low <- factor(birthwt$low) birthwt$race <- factor(birthwt$smoke) REG_LOG <- glm (low ~ smoke, family =
2007 Sep 13
2
Paging to external speaker like in airports etc...
Hi, I have a production asterisk-1.2.8 system with FreePBX & PRI Digium card. I am looking for a paging system to an external speaker. I can page to internal Polycom 501 VoIP. But, what hardware or system do I need to integrate with the asterisk to have this acheived. -- Deepak Linux your Life, Don't Window it [[]] { All for the best }
2002 Nov 04
3
Trouble with groups
I'm having trouble getting myself in to the administrators group. I'm using samba as a domain controller. I have a samba account called administrator. I have these settings in my smb.conf:: domain group map = /etc/samba/groups.mapping domain user map = /etc/samba/domainuser.mapping local group map = /etc/samba/localgroup.mapping This is in my domainuser.mapping to alias the
2007 Jul 31
1
aggregate.data.frame - prevent conversion to factors? show statistics for NA values of "by" variable?
I have a two question regarding the "aggregate.data.frame" method of the "aggregate" function. My situation: a. My "x" variable is a data.frame ("mydf") with two columns, both columns of type/format "numeric". b. My "by" variable is a data.frame("mybys") with two columns, both columns of type/format "character". c.
2006 Jun 23
3
Interpreting as.factor
When I run a linear regression and include a variable in the regression with as.factor i.e. lm(y ~x +as.factor(x1) and i read the output as as.factor(x1)1.... as.factor(x1)2... etc. how do i interpret the estimate for each level? Is this simply to be regarded as a shift in the equation predicted by the intercept and independent variable x? jdr -- Justin Rapp 409 S. 22nd St. Apt. 1
2006 Jul 09
1
Error Calculating Mean
I have a vector containing players' weights. When I enter mode(data.linear$Weight) "numeric" is returned. When I type mean(data.linear$Weight) NA is returned. Any ideas as to why this may be the case? I am trying to calculate this ultimately so I can superimpose a normal density line over a histogram containing the weights?
2008 Jan 21
2
summary of categorical variables
Dear list, I have a data.frame with nine categorical variables (0,1,2 and NAs) that I would like to get the number of events for each of them. I can extract this using summary() for each variable at a time with the as.factor()argument (otherwise it will get me the mean value): >summary(as.factor(mydf[,3])) 0 1 2 NA's 194 67 4 2 Trying to use apply() to get this for
2004 Dec 03
2
Pb with the version reference
Hello, I install wine 20041201 with a rpm from sourceforge. I always have a wrong version number : [didier@Lucius didier]$ ls -l /usr/bin/wine -rwxr-xr-x 1 root root 7036 d?c 1 21:42 /usr/bin/wine* [didier@Lucius didier]$ /usr/bin/wine Wine 20040914 Usage: wine PROGRAM [ARGUMENTS...] Run the specified program wine --help Display this help and exit wine
2005 Jun 22
2
[LLVMdev] Re: Re: variable sized structs in LLVM
Hi Reid, On Tue, Jun 21, 2005 at 11:15:22PM -0700, Reid Spencer wrote: > If you believe that variable sized structs are a feature that is missing > in LLVM, then that's another discussion. However, LLVM needs to remain > "low level" and it is unlikely such a feature would gain much traction > since a combination of existing features can accomplish the same thing. The
2002 Oct 28
1
Nealder Meade and nlm
Hello, I have been using R to fit my data using non-linear least squares. I have used the optimize routine to minimize the sum of squared errors (using Nealder Meade optimization routine), but couldn't get the non-linear model in R to converge to the estimates acheived in a convergent Neadler Meade routine. It tells me about problems with the gradient. I was wondering if there is any way
2008 Jul 09
5
Summary Stats (not summary(x))
I'm looking for a function that lists a few summary stats for a column (or row) of data. I'm aware of summary(x), but that does not give me what I'm looking for. I'm actually looking for something that is very similar to the descriptive statistics tool in excel; i.e. Mean, Std. Error, Std. Deviation, Kurtosis. I'm positive that I came across a function that did this (possibly
2003 Oct 20
2
Samba 3 Production
Is anyone using Samba 3 in a production environment? If so what version and how stable is it? -- Bert Rapp North Trail RV Center 239.693.8200 __ There are 10 types of people in this world, those who understand binary and those who don't.
2001 Apr 03
4
MS Office with WINE
Hi, there I am a studying possibility of using wine in professional environment. I installed codeweavers wine recently with success. But I fear the answer is not an evident YES... With notepad, I have not acheived any printing yet. First goal would be running MS Office for win 98, especially Excel (another vintage for better emulation if necessary). What is your opinion ? More precisely, what