similar to: Precision of summary() when summarizing variables in a data frame

Displaying 20 results from an estimated 200 matches similar to: "Precision of summary() when summarizing variables in a data frame"

2010 Aug 27
3
Sorting groups in bwplot chart
Hi all, I am just curious how to sort the groups in a categorical box plot chart bwplot here is the example: d<-data.frame(sample(rep(month.abb,20), 100), runif(100,1,10)); colnames(d) <- c("Month", "Value"); bwplot(d$Month ~ d$Value); as you can see Months are not sorted alphabetically. Does anybody know ho to sort those on the chart level? Thank you Jan
2011 Mar 09
2
system(..., invisible=FALSE, show.output.on.console=FALSE) in Windows 7
Hello, I work for a company in which a number of employees use R. Many of them like to run executables via the system function in such a way that the output of that executable is displayed in a separate window. To give an example of the behavior they require, the following command can be run in R GUI: system("cmd",invisible=FALSE,show.output.on.console=FALSE) The result is that a
2011 Sep 29
1
sqldf syntax, selecting rows, and skipping
I am using the example in this post: https://stat.ethz.ch/pipermail/r-help/2010-October/257204.html # create a file write.table(iris,"iris.csv",row.names=FALSE,sep=",",quote=FALSE) # this does not work # has the syntax changed or is there a mistake in my usage? # the line from the post above is: # read.csv.sql("myfile.csv, sql = "select * from file 2000,
2012 Jan 06
1
ggplot using scale_x_date gives Error in seq.int(r1$year, to$year, by)
Dear all, ggplot gives me an error when trying to plot time series data using a date variable as the x axis. g<-structure(list(Date = c("2011-12-23", "2011-12-30", "2012-01-06", "2011-12-23", "2011-12-30", "2012-01-06", "2011-12-23", "2011-12-30", "2012-01-06"), variable = structure(c(1L, 1L, 1L, 2L, 2L,
2023 Jan 31
1
Using separate packages for a DC
On Mon, 2023-01-30 at 16:44 +0300, Michael Tokarev via samba wrote: > After realizing that people don't realize (heh) samba DC isnot a > regular fileserver, an idea come to me. > How about building two different samba packages (on a > distributionsuch as debian), one being a regular file server and > another isjust for an AD DC, and make them *co-installable*, so each >
2011 Jan 13
9
spurious <li> generated when list followed by 3
RedCloth master generates a spurios <li> element when a numbered or undumbered list is followed by three or more newlines. RedCloth.new("* one\n* two\n* three \n\n\n").to_html #=> "<ul>\n\t<li>one</li>\n\t<li>two</li>\n\t<li>three</li>\n</ul>\n<li>" # note extra trailing <li> outside <ul> A colleague
2012 Jan 23
1
sqldf + Date class. Ordering and summary statistics appear to be incorrect.
I've been using sqldf heavily lately but have encountered problems with ordering of observations or calculating statistics such as max() and min() when the variable used is of class Date. For example, if I run the following code: =============== begin code ================= library(sqldf)
2023 Jan 30
4
Using separate packages for a DC
After realizing that people don't realize (heh) samba DC is not a regular fileserver, an idea come to me. How about building two different samba packages (on a distribution such as debian), one being a regular file server and another is just for an AD DC, and make them *co-installable*, so each has its own set of config/library/cache/runtime files? When installed together, it will be two
2008 Feb 09
1
Problem with fitdistr function
Hello, I am using fitdistr function for parameter estimation. When I use fd<-fitdistr(V2,"gamma") I get following error: Error in optim(x = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, : initial value in 'vmmin' is not finite fd<-fitdistr(V2,"weibull") Error in optim(x = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, :
2012 Jun 10
2
problem with sub()
Dear R users: I want to convert some character vectors into numeric vectors. > head(price) [1] "15450 EUR" "7900 EUR" "13800 EUR" "3990 EUR" "4500 EUR" [6] "4250 EUR" >head(mileage) [1] "21000?km" "119000?km" "36600?km" "92000?km" "140200?km" [6] "90000?km" in
2008 Apr 11
4
[Bug 15452] New: Embedded Dailymotion player doesn't work
http://bugs.freedesktop.org/show_bug.cgi?id=15452 Summary: Embedded Dailymotion player doesn't work Product: swfdec Version: git Platform: x86-64 (AMD64) OS/Version: All Status: NEW Severity: enhancement Priority: medium Component: library AssignedTo: swfdec at lists.freedesktop.org
2005 Aug 04
0
visualizing/summarizing a large, sparse logistic regression
I have data on ~340000 cases where it is desired to predict binary outcome, Withdrawn, using up to 8, A:H, predictors in a 3 x 2^7 design, but where the frequencies in these 168 cells vary enormously (1--108000). As well, there are two additional variables, Agency and Office, and it is desired, among other things, to determine if the rates vary with Agency and Office controlling for A - H. I fit
2005 Apr 26
1
Summarizing factor data in table?
I have a very simple query with regard to summarizing the number of factors present in a certain snippet of a data frame. Given the following data frame: foo <- data.frame(yr = c(rep(1998,4), rep(1999,4), rep(2000,2)), div = factor(c(rep(NA,4),"A","B","C","D","A","C")), org = factor(c(1:4,1:4,1,2))) I want to get
2010 Oct 23
1
Summarizing For Values with Multiple categories
Hi all, I have some data as follows. Cat1 Cat2 Cat3 COG Counts A B C COG1 10 B D COG2 20 C COG3 30 D COG4 40 I would like to sum all the counts for each category: A B C D 10 30 40 60 >CAT2COG<-
2011 Feb 11
0
Summarizing a response variable based on an irregular time period
Hello, I have a question about working with dates in R. I would like to summarize a response variable based on a designated and irregular time period. The purpose of this is to compare the summarized values (which were sampled daily) to another variable that was sampled less frequently. Below is a trivial example where I would like to summarize the response variable dat$x such that I have average
2008 Jun 03
0
Summarizing dummy coefficients in sem package
Greetings, I am working in the sem package on a model with 3 exogenous variables (2 are nominal-categorical), and 4 endogenous, continuous variables. To use sem with the nominal variables, I created dummy variables. Now, in my sem output I have estimates for path coefficients for the relationship between each level of the nominal variables and the endogenous variables they are associated
2011 Dec 01
2
Summarizing elements of a list
Hi everyone, I looked around the list for a while but couldn't find a solution to my problem. I am storing some results to a simulation in a list and for each element i have two separate vectors(is that what they are called, correct my vocab if necessary). See below Version1_<-list() for(i in 1:5){ Version1_[[i]]<-list(First=rnorm(1),Second=rnorm(1)) } What I want is to put all
2003 Jan 13
2
summarizing dataframe
Hi Listers, Surely, I just have a mental block and there is a more elegant way of creating a summary count (other than extracing it from ftable). I''d like to create a new data.frame containing counts of spell by loc ie have three columns showing spell,loc,count. Below the data.frame... Any help appreciated Thanks Herry spell loc 101 Parts 1 102 Overall 2 105 Parts 1 106
2010 Dec 02
5
Help summarizing R data frame
I am trying to aggregate data in column 2 to identifiers in col 1 eg.. take this> identifier quantity 1 10 1 20 2 30 1 15 2 10 3 20 and make this> identifier quantity 1 45 2 40 3 20 Thanks in
2009 Mar 24
3
Summarizing each row into a frequency table
I have a matrix containing -1, 0, 1, however certain rows will not have all 3 numbers. I have written some codes to compute the frequency table of how many -1s, 0s, 1s per row, but it is very ugly and not efficient if there are more than 3 numbers. Please suggest. m <- rbind(sample(0:1, replace=T, 10), sample(-1:1, replace=T, 10)) m.table <- t(apply(m, 1, function(x) c(sum(x==-1, na.rm=T),