similar to: Use of results in summary

Displaying 20 results from an estimated 5000 matches similar to: "Use of results in summary"

2002 May 06
3
Viewing certain numbers without NA's
Dear R Community, We have recently installed R 1.5.0 on several workstations. Ever since, if I try to extract certain numbers or lines from a file (which contains many NA's), I don't only get my desired line but all other lines which contain NA's. In a file with 15000 rows and 7500 NA's this is not very practical. In the earlier R-Version this worked when I typed in the
2002 Mar 05
3
location of maximum
Dear R-users, I'm trying to extract the exact location of the maximum value in a vector or a matrix, meaning I want not only the maximum itself but also at which position (e.g row 6, column 12) it is located. I appreciate any suggestions. Thanks, Patrick -------------- next part -------------- A non-text attachment was scrubbed... Name: patrick.vcf Type: text/x-vcard Size: 339 bytes Desc:
2016 Feb 08
1
Apparent bug in summary.data.frame() with columns of Date class and NA's present
Hi all, Based upon an exchange with G?ran Brostr?m on R-Help today: https://stat.ethz.ch/pipermail/r-help/2016-February/435992.html there appears to be a bug in summary.data.frame() in the case where a data frame contains Date class columns that contain NA's and other columns, if present, do not. Example, modified from R-Help: x <- c(18000000, 18810924, 19091227, 19027233, 19310526,
2011 Sep 09
2
get and save
I have a data frame 'tmp' and a vector 'name' containing 'd2'. I want to save 'tmp' under the name hidden in 'name', and the file must have the same name, plus the extension '.rda'. So I try > tmp x y 1 1 3 2 2 4 > name [1] "d2" > assign(name, tmp) > summary(get(name)) x y Min. :1.00 Min. :3.00 1st
2002 Jan 22
3
assigning NA's
I've had a question a few moments ago about how to create multiple objects from multiple files within a loop. Thanks for the quick answers, it worked with "assign", like this: for(i in seq(1,nfn,1)){ fin<-paste("/home/klimet/patrick/LAEGEREN/NEBEL/FOGEVENT2000/",fn[i],sep="") assign(paste("f", i, sep = ""),
2002 Jan 22
1
creation of objects
Hi there, I'm a new R user and I've got a little problem: I would like to read several files at once (which works) and create R objects for each individual file (which doesen't work) within a loop: this is the way I've tried to program this: fn<-list.files(path = "/home/klimet/patrick/LAEGEREN/NEBEL/FOGEVENT2000/", pattern=NULL, all.files=FALSE, full.names=FALSE)
2002 May 25
3
expressions as axis labels
Dear colleagues, I often use chemical formulas to label my x-axis, e.g. in barplots. I used to do this like the following example and it worked just fine: a <- seq(2,24,2) b <- seq(3,36,3) c <- rbind(a,b) barplot(c, width=c(0.9, 1.1),space=c(0.2, 0.75), col=c("indianred4", "yellow2"), beside = TRUE, xlab="Ions", yaxt="n", xaxt="n", ylab
2002 May 25
3
expressions as axis labels
Dear colleagues, I often use chemical formulas to label my x-axis, e.g. in barplots. I used to do this like the following example and it worked just fine: a <- seq(2,24,2) b <- seq(3,36,3) c <- rbind(a,b) barplot(c, width=c(0.9, 1.1),space=c(0.2, 0.75), col=c("indianred4", "yellow2"), beside = TRUE, xlab="Ions", yaxt="n", xaxt="n", ylab
2013 Apr 05
1
mixed formatting of integer and numeric (e. g., by summary.default())
Hello, eveRybody, I've been trying to find the origin for the following formatting-"inconsistency": E. g., look at the number of digits in summary.defaults()'s output when NAs occur: in my example below the number of NA's is displayed as an integer, the rest as numeric (floating point numbers): > summary.default( c( 1:2, NA)) Min. 1st Qu. Median Mean 3rd Qu.
2008 Mar 17
1
summary of summaries
Hi, I have a few hundreds files with numerical information of different length but with the same column structure. I use the following code to get summary statistics fplist <- list.files(pattern=".*analysis") for (fp in fplist){ x2 <- read.delim(fp) summary(x2) } Summary gives something like: summary (x2) V1 V2
2009 Aug 30
2
error with summary(vector)??
Hello, I get > summary(E) level nodes ave_nodes time Min. : 1 Min. : 1.00 Min. : 10.71 Min. : 0.0000 1st Qu.: 237414 1st Qu.: 2.00 1st Qu.: 19.70 1st Qu.: 0.0100 Median : 749229 Median : 3.00 Median : 27.01 Median : 0.0100 Mean : 767902 Mean : 49.85 Mean : 98.89 Mean : 0.2296 3rd
2006 Jul 03
2
could i change the ouput style on summary?
Dear friends, summary() doesn't give a good ouput style,e.g.: grass soiltem airtem gheight humidity altitude diluo :38 Min. :15.90 Min. :17.70 Min. : 8.00 Min. : 0.2360 high: 43 huanghuacai:32 1st Qu.:19.32 1st Qu.:22.60 1st Qu.:40.00 1st Qu.: 0.3190 low :119 hucao :46 Median :20.20 Median :25.30 Median :60.00
2009 Sep 29
1
Summary
My data is called xc and has more than 15 variables. When I used summary(xc) it gave me the detail description of each variable. Summary(xc) Y1 x1 x2 x3 .. Min. :0.0000 Min. : 1.000 Min. : 1.000 Min. : 1.000 1st Qu. :0.0000 1st Qu.: 1.000 1st Qu.: 1.000 1st Qu.: 2.000 Median :1.0000 Median : 1.000
2006 Jun 12
2
weird behaviour of summary.default
Hi all. I may missing something here, but if I do summary.default(1:9999), I get: Min. 1st Qu. Median Mean 3rd Qu. Max. 1 2500 5000 5000 7500 9999 but if I do summary.default(1:10001) I get: Min. 1st Qu. Median Mean 3rd Qu. Max. 1 2501 5001 5001 7501 10000 i.e. Max is rounded to 10000. What's wrong? My system:
1999 Oct 19
2
Summary bug?
Hi, It seems that there's a bug in summary, in the max. output... but max() alone works fine. > hw04.dframe$area ... [41] 1790 1380 1296 2745 798 2306 438649 1481 1559 2450 ... > summary(hw04.dframe) area Min. : 798 1st Qu.: 1349 Median : 1690 Mean : 6962 3rd Qu.: 2306 Max. :438600 ### should read 438649 or, to the point,
2001 Sep 13
1
significant figures in summary()
Howdy, Should summary() print answers with different numbers of significant figures, as in the following? > dim(iv) [1] 3000 2 > summary(iv) X1 X2 Min. :-4.15261 Min. :-3.271520 1st Qu.:-0.66188 1st Qu.:-0.671205 Median : 0.01233 Median :-0.008175 Mean : 0.01121 Mean : 0.016815 3rd Qu.: 0.67778 3rd Qu.:
2009 Jun 18
1
Print column headers of summary
Hello, This is a newbee question. I would simply like to write in a text file the headers of the summary function along with the computed data. write(summary(x), file="out.txt") gives only the data. I have not found a solution on the forum. Thank you for any help. -- View this message in context: http://www.nabble.com/Print-column-headers-of-summary-tp24094930p24094930.html Sent
2010 Aug 24
3
odd behavior of "summary" function
Hello All, Using the standard "summary" function in 'R', I ran across some odd behavior that I cannot understand. Easy to reproduce: Typing: summary(c(6,207936)) Yields:: Min. *1st Qu. Median Mean 3rd Qu. Max.* 6 *51990 104000 104000 156000 207900* None of these values are correct except for the minimum. If I perform "quantile(c(6,
2009 Aug 10
1
summary(table)
Hi, Why when I do a summary on a table it cuts off the other variables? It says Other :58 or Other: 120. how can I get the summary for all the variables under ServLoad.Task and Server.Load and Avg. CPU and Max.CPU? Thanks, summary(probF) Reboot.Id ServLoad.Task Server.Load Avg.CPU Max.CPU Event.Log Min. : 2.00 120067_122395: 5
2006 Dec 04
3
Summary shows wrong maximum
Hi all, I have a list with a numerical column "cum_hardreuses". By coincidence I discovered this: > max(libs[,"cum_hardreuses"]) [1] 1793 > summary(libs[,"cum_hardreuses"]) Min. 1st Qu. Median Mean 3rd Qu. Max. 1 2 4 36 14 1790 (note the max value of 1790) Ouch this is bad! Anything I can do to remedy this? Known