similar to: R: weighted.mean and tapply (again)

Displaying 20 results from an estimated 1000 matches similar to: "R: weighted.mean and tapply (again)"

2005 May 25
2
weighted.mean and tapply (again)
I read answers to questions including the words "tapply" and "weighted.mean", but I didn't understand either the problem (data) or the solution provided. Here is my question ... > dat[1:10,] GROUP VALUE FREQUENCY 1 2 2 78 2 2 3 40 3 2 4 16 4 2 5 3 5 2 6 1 6 2 8 1 7
2004 Oct 08
1
reading partial file content
hi, I'd like to extract data from very large files (ca 1-2 Mio lines), and I already know which lines of these files I need. Is there a way to do it without filling the memory with the whole file content? The lines I need are randomly distributed within the files. Thanks, Marc -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at
2002 Feb 22
1
Summary: read.table on Mac OS X, CARBON vs. DARWIN
Thanks a lot, James!! The problem is fixed. On the version 1.4.0 Mac/darwin (the latest available version for this system) the function read.table (which is called from read.delim etc., too) has the bug you explained. Inserting the row nlines <- nlines+1 after lines <- c(lines, line) removes this bug. M. On Friday, February 22, 2002, at 02:33 PM, james.holtman at convergys.com
2005 Feb 15
0
Re: [Rd] corrupt data frame: columns will be truncated or padded with NAs in: format.data.frame(x, digits = digits)
James, thanks for the response. I understand now my puzzle. tmp <- data.frame(y1=1:4, f1=factor(c("A", "B", "C", "D"))) tmp$y2 <- NA tmp[1:2, "y2"] <- 2 Does the job. I see that I should add a full column. In my case adding full column of NAs and then adding values, solves my problems. Thanks to all. james.holtman at convergys.com
2003 Jun 19
1
Problem reading a PDF output
I generated a PDF output file of 10 plots. When I try to view it with Adobe reader (R4 & R5), it will lockup the reader (it is consuming 100% of the CPU) after presenting the 4th plot. I can generate the plots just fine in Windows and as a postscript file reading it with GSview. Is there anyway to tell what might be wrong with the PDF output? The file is 890KB in size if anyone would like
2004 Dec 13
0
How to duplicate rows in dataframe?
> x.1 <- data.frame(a=1:5, b=1:5) > x.1 a b 1 1 1 2 2 2 3 3 3 4 4 4 5 5 5 > x.1[c(1,2,2,2,3,3,4,4,5,4,3,2,1),] a b 1 1 1 2 2 2 2.1 2 2 2.2 2 2 3 3 3 3.1 3 3 4 4 4 4.1 4 4 5 5 5 4.2 4 4 3.2 3 3 2.3 2 2 1.1 1 1 > __________________________________________________________ James Holtman "What is the problem you are trying to solve?" Executive Technical
2004 Oct 29
1
Error in PDF output in R 2.0.0
The following script works fine in R 1.9.1. It was creating a PDF file with the graphs in it. In R 2.0.0, I got the error message below. I tried the same script just outputting to Windows and postscript and the output was OK. The error message only showed up when trying to create a PDF file. > version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386,
2004 Dec 12
1
'object.size' takes a long time to return a value
I was using 'object.size' to see how much memory a list was taking up. After executing the command, I had thought that my computer had locked up. After further testing, I determined that it was taking 241 seconds for object.size to return a value. I did notice in the release notes that 'object.size' did take longer when the list contained character vectors. Is the time that it is
2001 Aug 22
1
Problems with trying to print 'refman.pdf'
When I try to print out the refman.pdf file of version 1.3.0 to an HP LaserJet 8000 PS printer, I get the error message "Error occurred while downloading a font. This document might not print correctly". The document does not print correctly. The index page looks fine on the monitor, but appear to print with a "Courier" type font that is squeezed to be proportitional. Has
2014 Aug 28
3
PXE booting WinPE with UEFI architecture
Anyone have luck with pxechn32 and bootmgfw.efi? I'm getting the "Unable to retrieve first package" issue as reported by others. Really, any advice for UEFI booting into a winpe environment off of pxelinux 6.03 would be beneficial. Jason Jones Sr. Associate, Network Services | End User Computing 3947 N Oak St Ext | Valdosta, GA 31605 O +15137844955 E jason.s.jones at
2002 Jul 05
1
PDF file not created correctly
I am trying to put some text data in a graphical output file so that I have a single file with both the graphs and summary data. I was capturing the output via a 'sink(textConnection('output','w')). This seems to work fine, but in trying to put the text data in a graphics frame, I was having problems. When creating a postscript file, things were fine, but a PDF file appeared
2002 Jul 05
1
Exception created in RGUI.exe (PR#1748)
I was trying to print out some text on an empty PDF graph so that I would have the statistical data in the same file as the graphs. I was having problems in getting the output in a PDF file, but could get it in a postscript and BMP file. I put together the script below to see what 'fonts' were available on PDF, is it caused an exception. I was getting an exception in the pdf call
2002 Mar 28
1
extracting non-NA columns from a data frame
I'm clustering using kmeans, and it doesn't accept NA. if NA occurs in a column of the data frame, it occurs in every column, including column 1. they say that a (good) programmer can write FORTRAN in any language, so I came up with this, where tbl is the data frame containing NA - > newtbl<-NULL > for (i in 1:length(tbl)){if (!is.na(tbl[1,i])){ + newtbl<-if
2004 Nov 26
1
unexpected behaviour of 'curve' function
Dear all, curve(x^3*(1-x)^7, from = 0, to = 1) works as expected but, omitting the "xlim" or the "to" and "from" arguments and calling "curve" more than once: par(mfrow = c(2,2)) for (i in 1:4) curve(x^3*(1-x)^7) gives an expected (al least to me) result. Note also that a "pu" object is returned by curve > pu [1] -0.1802445 1.1802445
2005 Jan 24
1
R 'postscript' plot - not a valid postscript (PR#7559)
Full_Name: Mr. Daniel Murray Bolser Version: R 2.0.0 (2004-10-04) OS: Linux beagle 2.4.20-31.9 #1 Tue Apr 13 17:38:16 EDT 2004 i686 athlon i386 GNU/Linux Submission from: (NULL) (193.60.81.207) Trying to execute the following code produces a 'not a valid postscript' error from various postscript readers (gv, ggv, ghostscript). A very similar code works fine. <CODE> postscript()
2014 Sep 04
2
PXE booting WinPE with UEFI architecture
This got me closer, but it got to "Encapsulating winpe.wim..." and never went through the rest of the way. Ultimately PXELINUX apparently timed out and the machine rebooted. Here is relative portion of pxelinux: LABEL SCCM OSD Boot MENU LABEL ^2. SCCM OSD Boot com32 linux.c32 append wimboot initrdfile=bootmgr.exe,BCD,boot.sdi,winpe.wim TEXT HELP
2001 Aug 03
1
large address spaces in R
I have been using SPLUS on UNIX to do performance analysis of our computers and have some matrices that are about 15M rows with 8 columns. These are 'integers' and therefore take up about 500M of memory. I run on a system with 2G of memory and will utilize over a 1G when processing this data. I am considering using R and was wondering how large addresses spaces are handled under
1999 Dec 16
1
samba2.0.6 write errors
Hi Folks, I am running Samba 2.0.6 on Solaris 2.6 and I have a bunch of write errors showing up in my log.smb file. Here are some of them: ---------------------------------------------- [1999/12/16 14:25:42, 1] lib/util_sock.c:client_name(997) Gethostbyaddr failed for 10.41.0.184 [1999/12/16 14:25:42, 0] lib/util_sock.c:write_socket_data(537) write_socket_data: write failure. Error = Broken
2001 Aug 27
1
Error meesage from RGUI
I am using Version 1.3.0 (2001-06-22) on Windows/2000. Had loaded the 'lattice' and 'grid' libraries and was trying the example on densityplot: data(singer) densityplot( ~ height | voice.part, data = singer, layout = c(2, 4), xlab = "Height (inches)", bw = 5) ## Using a predefined panel function to fit a normal distribution
2012 Dec 02
0
Labeling a range of bars in barplot?
Marc Schwartz (via MN) wrote: > On Tue, 2005-12-13 at 10:53 +0000, Dan Bolser wrote: > >>Hi, I am plotting a distribution of (ordered) values as a barplot. I >>would like to label groups of bars together to highlight aspects of the >>distribution. The label for the group should be the range of values in >>those bars. >> >>As this is hard to