search for: hazel

Displaying 20 results from an estimated 26 matches for "hazel".

Did you mean: hazey
2013 May 09
0
Replace rows in dataframe based on values in other columns
...lt;- read.table(text=" Restaurant owner purchase_date ??????????? 23 Chuck 3/4/2011 ??????????? 23 Chuck 3/4/2011 ??????????? 23 Chuck 3/4/2011 ??????????? 23 Chuck 3/4/2011 ??????????? 23 Bob??????? 1/1/2013 ??????????? 23 Bob??????? 1/1/2013 ??????????? 23 Bob???????? 1/1/2013 ??????????? 15 Hazel 4/11/2010 ??????????? 15 Hazel 4/11/2010 ??????????? 15 Hazel 4/11/2010 ??????????? 15 Hazel 4/11/2010 ??????????? 17 Pete 9/2/2012 ??????????? 17 Pete 9/2/2012 ??????????? 17 Pete 9/2/2012 ??????????? 17 Pete 9/2/2012 ",sep="",header=TRUE,stringsAsFactors=FALSE) #if the dates are i...
2011 Feb 18
3
How to change dataframe to tables
The data is in the attachment. What I wanna get is: , , Sex = Male Eye Hair Brown Blue Hazel Green Black 32 11 10 3 Brown 53 50 25 15 Red 10 10 7 7 Blond 3 30 5 8 , , Sex = Female Eye Hair Brown Blue Hazel Green Black 36 9 5 2 Brown 66 34 29 14 Red 16 7 7 7 Blond 4 6...
2010 Sep 19
1
odds ratios for n-way tables: seeking an *apply-able method
...1), j:(j+1)] res[i,j] <- OR2x2(tab, log=log) } } for (j in 1:(C-1)) { colnames(res)[j] <- paste(colnames(f)[j:(j+1)], collapse=":") } res } ### Examples > (HE <- apply(HairEyeColor, 1:2, sum)) Eye Hair Brown Blue Hazel Green Black 68 20 15 5 Brown 119 84 54 29 Red 26 17 14 14 Blond 7 94 10 16 > > OR(HE) Brown:Blue Blue:Hazel Hazel:Green Black:Brown 0.87547 -0.1542 0.4769 Brown:Red -0.07658 0.2477 0.6217 Red:Blo...
2005 Nov 12
1
how to make automatically each level from data.frame to vector
...)) my.dfHEC my.dfHEC$Hair my.dfHEC$Eye my.dfHEC$Sex and I know all levels for Hair, Eye and Sex. In my case, I want to "expand.grid" all attributes but in Hair I only include "Black" hair: Hair.e <- c("Black") Eye.e <- c("Brown","Blue","Hazel","Green") Sex.e <- c("Male","Female") #I can do like, dfHEC.Black <- expand.grid(Hair.e,Eye.e,Sex.e) dfHEC.Black My question is how to make automatically each level from data.frame to vector. I don't want to make definition for each level again (Hair.e...
2010 Oct 03
1
plyr: a*ply with functions that return matrices-- possible bug in aaply?
...example, by hand (or with a loop) I can calculate the pieces and combine them as I want using abind(): > # apply separately to strata > t1<-fun2way(HairEyeColor[,,1]) > t2<-fun2way(HairEyeColor[,,2]) > > library(abind) > abind(t1, t2, along=3) , , 1 Brown Blue Hazel Black 32 11 10 Brown 53 50 25 Red 10 10 7 , , 2 Brown Blue Hazel Black 36 9 5 Brown 66 34 29 Red 16 7 7 alply() gives me what I want, but with the strata as list elements, rather than an array > library(plyr) > # strata de...
2003 Jun 13
0
mca & contingency tables - error: "All variables must be factors"
...lt;- as.data.frame(HairEyeColor) > hair.df Hair Eye Sex Freq 1 Black Brown Male 32 2 Brown Brown Male 38 3 Red Brown Male 10 4 Blond Brown Male 3 5 Black Blue Male 11 6 Brown Blue Male 50 7 Red Blue Male 10 8 Blond Blue Male 30 9 Black Hazel Male 10 10 Brown Hazel Male 25 11 Red Hazel Male 7 > mca(hair.df) Error in mca(hair.df) : All variables must be factors ========= What are the manipulations I must do on the data in order for mca to work? Any help appreciated.... Gina
2007 Jul 18
0
HSAURtable question
It appears that HSAURtable only works on two dimensional tables. Is this correct? For example, here is HairEyeColor: , , Sex = Male Eye Hair Brown Blue Hazel Green Black 32 11 10 3 Brown 38 50 25 15 Red 10 10 7 7 Blond 3 30 5 8 , , Sex = Female Eye Hair Brown Blue Hazel Green Black 36 9 5 2 Brown 81 34 29 14 Red 16 7 7 7 Blon...
2009 Dec 15
2
Diagonal Labels on "Beside" Bars in Barplot
...aracter(colnames(a)), xpd = TRUE, offset = 1, col = "black") # The labels are diagonal, but unfortunately the eye color labels are now applied to every bar and then repeat. # Is there any way to correct this problem, so that the diagonal labels are only the following: Brown, Blue, Hazel, Green # Those labels should not be repeated, so any help and insight is greatly appreciated.
2002 May 10
0
Oplocks, Oplock_break and request Oplock_break
...easy answer would be to disable oplocks for the share but I'd rather not since it makes maintaining the database much quicker when I use it personally after hours. I've did a little digging the the log files and have came up with the following: there are 3 machines (doris, o-techs & hazel). It appears that Doris had an oplock on a particular file. For some reason (probably the clients hazel or 0-techs), on trying to free the oplock, samba killed the doris SMBD process even though it has locked files. Upon doris reconnecting, these locked files are not reconnected hence screwing u...
2006 Dec 06
2
vcd package, assoc()
...tended assocplot() function: assoc(), from vcd package. Trouble is that it cannot even run its own examples on my installation. I get this output: $> example(assoc) assoc> data("HairEyeColor") assoc> (x <- margin.table(HairEyeColor, c(1, 2))) Eye Hair Brown Blue Hazel Green Black 68 20 15 5 Brown 119 84 54 29 Red 26 17 14 14 Blond 7 94 10 16 assoc> assoc(x) Error in unit.c(mar[4], unit(1, "null"), mar[2], legend_width) : It is invalid to combine unit objects with other types Version i...
2006 Sep 09
2
request to have dovecot authenticator driver 'officially' included/supported
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hi all, per the exim docs @: http://exim.org/exim-html-4.62/doc/html/spec_html/ch36.html a cyrus_sasl authenticator driveer is 'included' in exim core. given that Dovecot has become a very attractive alternative for an increasing number of folks, and there's a patch against exim 4.43 here:
2003 Aug 07
2
crc
I'm trying to generate the 4-byte crc code for the comment tag in an ogg file.. Can anyone point me to a function where this is done? Unfortunately, I can't use the lib directly, and the crc function I did find in it doesn't seem to do what I want directly. But, that might mean I'm not feeding it the right chunk of data. Any details would be helpful - yes I read the docs and I
2008 Apr 27
1
parallel max, min, and median of dataframe columns
...I can plot them individually with > segments(1, max(data_frame[,1]), 1, pmin(data_frame[,1])) > points(1, median(fly_ash[,1])) but that's a bit tedious. Is there a better way of vectorising these columns such that they will work with pmax? Is there something like a pmedian? Regards, Hazel Jenkins
2004 Jan 02
1
bwplot and panel.bwplot
...-(list or vector) in: is.na(x) 4: is.na() applied to non-(list or vector) in: is.na(x) 5: is.na() applied to non-(list or vector) in: is.na(x) 6: is.na() applied to non-(list or vector) in: is.na(x) I suspect this may come from not-anwered (NA) combinations of categories (data are field data on hazel grouse and the sampling is not balanced). Using "xyplot" however leads to a correct display of data, the "NAs" combinations of categories being simply empty in the panel plot. Passing na.action = na.omit or similar expressions don't lead to anything (actually every vector...
2009 Aug 04
4
array slice notation?
Suppose I have an n-diml array A and I want to extract the first "row" -- ie all elements A[1, ...] Interactively if I know 'n' I can write A[1,,,,,] with (n-1) commas. How do I do the same more generally, eg in a script? (I can think of doing this by converting A to a vector then extracting the approp elements then reshaping it to an array, but I wonder if there isn't a
2003 Oct 03
1
Re: Bug#213857: r-base-core: xfig plot fails with invalid line type (PR#4401)
...gt; ii libgcc1 1:3.3.2-0pre4 GCC support library > ii libjpeg62 6b-8 The Independent JPEG Group's JPEG > ii libncurses5 5.3.20030719-2 Shared libraries for terminal hand > ii libpcre3 4.3-3 Philip Hazel's Perl 5 Compatible R > ii libpng10-0 1.0.15-4 PNG library, older version - runti > ii libreadline4 4.3-5 GNU readline and history libraries > ii perl 5.8.1-2 Larry Wall's Practical Extraction > ii tcl8....
2003 Sep 09
1
Checksum question
I'm trying to simply regenerate the comment header checksum on the ogg file "test.ogg" I ripped the checksum function from libvorbis, and only modified it in that I hard-coded what I think is the comment header (as far as I can tell from the docs). However it seems to generate an invalid checksum (according to ogginfo) Here is a url to the two files, please help :)
2003 Oct 03
0
Re: Bug#213857: r-base-core: xfig plot fails with invalid line type (PR#4401)
...1:3.3.2-0pre4 GCC support library > > > ii libjpeg62 6b-8 The Independent JPEG Group's JPEG > > > ii libncurses5 5.3.20030719-2 Shared libraries for terminal hand > > > ii libpcre3 4.3-3 Philip Hazel's Perl 5 Compatible R > > > ii libpng10-0 1.0.15-4 PNG library, older version - runti > > > ii libreadline4 4.3-5 GNU readline and history libraries > > > ii perl 5.8.1-2 Larry Wall's Practi...
2009 Mar 02
2
Certificate problems
Hi all, I''m trying to set up puppet 0.24.5 using the packages provided for Mandriva 2009.0. After installing the packages and starting the puppetmaster service for the first time, the relevant CA certificates and keys are generated automatically and placed in subdirectories of $ssldir. However, when I then run puppetd on the same machine thus: $ puppetd --server myhost.mydomain
2003 Oct 04
0
Re: Bug#213857: r-base-core: xfig plot fails with invalid line type (PR#4401)
...e4 GCC support library > > > > ii libjpeg62 6b-8 The Independent JPEG Group's JPEG > > > > ii libncurses5 5.3.20030719-2 Shared libraries for terminal hand > > > > ii libpcre3 4.3-3 Philip Hazel's Perl 5 Compatible R > > > > ii libpng10-0 1.0.15-4 PNG library, older version - runti > > > > ii libreadline4 4.3-5 GNU readline and history libraries > > > > ii perl 5.8.1-2 Larry Wa...