similar to: Creating histograms from factors using a for loop

Displaying 20 results from an estimated 9000 matches similar to: "Creating histograms from factors using a for loop"

2009 Sep 19
2
Counting observations of a combined factor
#I have a dataset with two factor. I want to combine those factors into a single factor and count the number of data values for each new factor. The following gives a comparable dataframe: a <- rep(c("a", "b"), c(6,6)) b <- rep(c("c", "d"), c(6,6)) df <- data.frame(f1=a, f2=b, d=rnorm(12)) df # I use the 'interaction' function to combine
2009 Jun 26
3
panel.text and saving to pdf
Dear all, I am not sure what I am doing wrong, but I have some unexplained behaviour when saving a lattice graph including text to a pdf file. The text seems to move around. It must have something to do with the way coordinates are set in devices other than jpg. Any suggestions would be helpful Willem Here is some example code setwd("c:/willem/research/misc") today <-
2009 Jun 23
2
Long to wide format without time variable
Hi all, I am trying to convert a data set of physician death codings (each individual's cause of death is coded by multiple physicians) from long to wide format, but the "reshape" function doesn't seem to work because it requires a "time" variable to identify the sequence among the repeated observations within individuals. My data set has no order, and different
2008 May 28
2
inquiry on R News
Dear R News, I am inquiring whether the articles that are published in the 'R News' have undergone a peer-review/refereeing process, for the purpose of reporting the academics publications here at the University of Sydney to the Australian Government. Thank you for your assistance. Regards Glenn Glenn Howell| Faculty Research Assistant FACULTY OF ECONOMICS AND BUSINESS
2011 Oct 27
2
PXELINUX LOCALBOOT 0 hang on Dell Optiplex 990
I have been using PXELINUX, with "LOCALBOOT 0" when wanting to boot from disk, for many years. Now on new Dell Optiplex 990 machines, PXE boot with "LOCALBOOT 0" hangs after message Booting from local disk... without the expected "Exiting PXE" message. I tried "LOCALBOOT -1" and some other values also, none seemed to work. I tested SYSLINUX 4.04.
2012 Apr 11
3
Ogg Theora files player
Hello, I try to compile player_example.c from http://downloads.xiph.org/releases/theora/libtheora-1.1.1.zip in Visual Studio 2008 on Windows XP. I built and added to the project libogg-1.3.0, libtheora-1.1.1, libvorbis-1.3.2 (http://www.xiph.org/downloads/) and SDL-1.2.15 (http://www.libsdl.org/release/SDL-devel-1.2.15-VC.zip). When I compile player_example.c Visual Studio shows: fatal error
2011 Mar 11
3
Large dataset operations
Hello all, I'm new to R and trying to figure out how to perform calculations on a large dataset (300 000 datapoints). I have already made some code to do this but it is awfully slow. What I want to do is add a new column for each "rep_ " column where I have taken each value and divide it by the mean of all values where "PlateNo" is the same. My data is in the following
2009 Apr 14
3
[LLVMdev] problems with dwarf/gdb
I'm having trouble debugging x86 code generated by LLVM. GDB does work with the code, but not correctly, for example, the "next" command does not skip over a function call. Here's an example. Source program gdb1.c: int x; void foo(){ x++; } void bar(){ x--; } int main(){ foo(); bar(); return 0; } commands: $ llvm-gcc -g -emit-llvm -c gdb1.c -o gdb1.bc $ llc
2005 Feb 21
4
49 histograms on one page
Hi, I want to do something like this: par(mfrow=c(7,7)) for (i in 1:49) hist(RATDACOM[SUBJNO==i],breaks=0.5+(0:6), main="",xlab="",ylab="",xaxt="n",yaxt="n") (Don't think about what RATDACOM and SUBJNO are.) I get an error Error in plot.new() : Figure margins too large. 36 histograms with mfrow=c(6,6) work. But the 36 histograms
2012 Aug 29
5
Extracting the name of a function (inverse of match.fun("myFun"))
Hi all, is there a way to extract the name of a function, i.e. do the reverse of match.fun applied to a character string? I would like to print out the name of a function supplied to another function as an argument. For example: myFunc = function(x) { x+1 } applyFunc = function(fnc, x) { fnc = match.fun(fnc) fnc(x) } Is there a way to obtain "myFunc" from the argument fnc in
2005 Jul 23
1
Lattice: reversing order of panel placement in conditional histograms
Hi R-people, I have a question about lattice in general, and histogram specfically. How do you control the ordering of factors that controls the placement of the conditional panels. I have a dataset with factors that go 'Q1','Q2',"Q3','Q5' and of course I want the plot to place Question Q1 at the top and Question Q5 at the bottom of the graphical output.
2003 Aug 15
2
[ Compile error in CVS, entry for a FAQ somewhere, place for test/comparison files to be uploaded?]
>Also, 'portaudio' doesn't appear to produce a static library at all, so it doesn't appear to be possible to get a working splayer executable on Linux unless there is a 'hidden' way to get the portaudio distribution to build one. ("ldd: -lportaudio not found"). I believe splayer is only intended to be a Win32 executable. Note that it is in a directory
2011 Nov 08
3
Questions re PXELINUX
I have been using PXELINUX for a while and appreciate all you guys are doing! I have a couple of questions re PXELINUX: 1. I am experiencing problems with the LOCALBOOT statement on an IBM x3650. IBM mentions the following: http://www-947.ibm.com/support/entry/portal/docdisplay?lndocid=MIGR-5084755 I am using PXELINUX 4.04. Is this problem still attributed to some bug in PXELINUX? Right now I
2013 Oct 17
1
pamer.fnc y la nueva versión de R
Hola buenas noches, tengo un problema bastante gordo. ¿A alguno le ha dejado de funcionar las funciones pamer.fnc y mcp.fnc con la nueva versión de R? La semana pasada formatee el ordenador y ahora scripts antiguos no funcionan. La cuestión es que me precupa que no funcione el ejemplo de tutorial del autor. Os dejo un script que debería de funcionar y no lo hace
2007 Feb 14
2
Parameter require is already set on ...
More newbie questions from me ... How do you specify multiple requires in an exec ? What I''ve tried: define cvsserve($source, $path, $user = false) { file { $path: ensure => directory, owner => root, group => root } $cvscmd = $user ? { false => "/usr/bin/cvs export $source/$name .", default =>
2005 Jan 05
1
Status of Windows Theora builds
Hi all, Just a heads up to let you know that I've fixed up the Visual C++ project files so that libtheora and the associated experimental programs (dumpvid/encoderwin/splayer/transcoder) builds on Windows again. I also have good news and good news. The bad news is: experimental\splayer doesn't work. It compiles, but segfaults immediately when you try to play any Ogg file. The bug
2005 Jun 15
2
can't get to work windows player
Hi! I'm having some trouble with theora in windows, I would really appreciate if you could be able to give me a hand with this. First, I was not able to build theora in cygwin, because I built vorbis and ogg perfectly, but when I try to run ./configure with theora it can't find the ogg libs, if I use the --using-ogg-path = ... with /usr/local/lib it runs ok, but then it fails to compile
2010 Mar 25
2
netlabR package in English
Dear R users, Is documentation for the netlabR package available in English? If not does anyone know if or when it will be? Regards, Keith ****************************************************************************This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom it is addressed. If you are not
2008 Nov 26
1
Problem with aovlmer.fnc in languageR
Dear R list, I have a recurring problem with the languageR package, specifically the aovlmer.fnc function. When I try to run the following code (from R. H. Baayen's textbook): # Example 1: library(languageR) latinsquare.lmer <- lmer(RT ~ SOA + (1 | Word) + (1 | Subject), data = latinsquare) x <- pvals.fnc(latinsquare.lmer,
2009 Apr 15
2
[LLVMdev] problems with dwarf/gdb
I see. Here's another interesting issue: (gdb) b gdb1.c:4 No line 4 in file "gdb1.c". (gdb) step foo () at /home/mcmillan/projects/impact2/test//gdb1.c:4 4 x++; (gdb) You can see that I can step to line 4, but I can't set a breakpoint there. (I used -disable-fp-elim in the compilation). Have you seen this before? Thanks -- Ken Dale Johannesen wrote: > > > On