search for: clyde

Displaying 20 results from an estimated 64 matches for "clyde".

2002 Apr 11
2
Obtaining names of ``...'' arguments.
This may be an FAQ, but a (perfunctory) search failed to turn it up. Suppose I have a function foo(...){<something>} and I want to obtain, inside foo, the names of items comprising the ``...''. E.g. if I call foo(melvin,clyde,irving) I want to be able to loop through the ``...'' and successively obtain the text strings "melvin", "clyde", and "irving". Is there any way to do this? I know that if I had a function foo(x,y,z){<something>}, and I called foo(melvin,clyde,irving),...
2004 Jun 24
2
string overflow in safe_strcpy
I recently upgraded both of my samba servers (mirrors of each other) to 3.0.4, my log files now fill with the following messages (hundred lines per day): Jun 24 13:55:33 Clyde smbd[8597]: [2004/06/24 13:55:33, 0] lib/util_str.c:safe_strcpy_fn(602) Jun 24 13:55:33 Clyde smbd[8597]: ERROR: string overflow by 1 (9 - 8) in safe_strcpy [LIBRA~V$.DOC] Jun 24 14:20:34 Clyde smbd[8597]: [2004/06/24 14:20:34, 0] lib/util_str.c:safe_strcpy_fn(602) Jun 24 14:20:34 Clyde smbd[8...
2009 Sep 27
2
Determining name of calling function.
...lections of seeing this question discussed on r-help previously, but I can't find the relevant postings. I want to determine (from within a given function) the name of the function calling that given function. E.g. if I have a function foo() which calls a function bar(), and also a function clyde() which calls bar(), I want to have, in the code of bar(), an instruction which will return the character string "foo" if bar() was called from foo() and the string "clyde" if bar() was called from clyde(). Without really understanding what I'm doing I cobbled together...
2019 Nov 04
3
Puzzled about a new method for "[".
...bsetting. You're probably right that there are lurking perils in general, but I am not trying to "restore a class". I simply want to *retain* attributes of columns in a data frame. * I have a data frame X * I attach attributes to certain of its columns; attr(X$melvin,"clyde") <- 42 (I *don't* change the class of X$melvin.) * I form a subset of X: Y <- X[1:100,3:10] * given that "melvin" is amongst columns 3 through 10 of X, I want Y$melvin to retain the attribute "clyde", i.e. I want attr(Y$melvin,"clyde")...
2019 Nov 04
3
Puzzled about a new method for "[".
...lurking perils in general, but I am >> not trying to "restore a class".? I simply want to *retain* attributes >> of columns in a data frame. >> >> * I have a data frame X >> * I attach attributes to certain of its columns; >> ???? attr(X$melvin,"clyde") <- 42 >> ? (I *don't* change the class of X$melvin.) >> * I form a subset of X: >> ??? Y <- X[1:100,3:10] >> * given that "melvin" is amongst columns 3 through 10 of X, >> ??? I want Y$melvin to retain the attribute "clyde", i...
2024 Jan 14
1
Fwd: Strange results : bootrstrp CIs
...mate the coefficient for Italy in a sample that contains no data > from Italy, what should the coefficient be? Perhaps NA? Ben Bolker conjectured that boot() might be able to handle this. Getting the NAs into the coefficients is a bit of a fag, but. I tried: func <- function(data, idx) { clyde <- coef(lm(Score~ Time + factor(Country),data=data)) ccc <- coef(lm(Score~ Time + factor(Country),data=data[idx,])) urk <- rep(NA,length(clyde)) names(urk) <-names(clyde) urk[names(ccc)] <- ccc urk } It produced a result: > > set.seed(42) > > B= boot(e, func, R=1000) &g...
2008 Aug 07
3
how to save an R object selectively?
Hi, How to save an R object for example a matrix or vector and not all objects created in a session (which is usually performed by save.image or q("yes"))? Best, Carol [[alternative HTML version deleted]]
2004 Apr 15
1
Samba misconfig... (long)
I am trying to get my samba setup running (after putting it on the back burner for a few months with other issues). I am running Samba 3.0.0 on a SuSE 7.2 install. I have a linux box (clyde) and a Win2K box (Badmonkey) connected via a firewall/network. My smb.conf file is shown here: -- # Sambxa config file created using SWAT # from 127.0.0.1 (127.0.0.1) # Date: 2003/12/04 05:28:37 # Global parameters [global] workgroup = Penguinix netbios name = Clyde interf...
2024 Jan 14
1
Fwd: Strange results : bootrstrp CIs
...ountry, with weight chosen to match the strength of the prior. But Bayesian methods don't give confidence intervals, they give credible intervals, and those aren't the same thing even if they are sometimes numerically similar. Duncan Murdoch > func <- function(data, idx) { > clyde <- coef(lm(Score~ Time + factor(Country),data=data)) > ccc <- coef(lm(Score~ Time + factor(Country),data=data[idx,])) > urk <- rep(NA,length(clyde)) > names(urk) <-names(clyde) > urk[names(ccc)] <- ccc > urk > } > > It produced a result: > >>> se...
2011 Jan 18
2
ggplot2, geom_hline and facet_grid
...;t seem to make any difference if I get the mean and difference separately. Can anyone explain this and tell me how to avoid it (and why does it work with the Diamonds data set? Any help much appreciated - thanks. Sandy Sandy Small Clinical Physicist NHS Forth Valley and NHS Greater Glasgow and Clyde ******************************************************************************************************************** This message may contain confidential information. If yo...{{dropped:21}}
2002 Dec 05
1
is.loaded("gamma") is FALSE in Windows
...refer to use the same one as in R and have the same code under unix and wondows. Is there a way to access the internal gamma function from c in windows? I am using R 1.6.0 best, Merlise __________________________________________________ | | | Merlise Clyde, Associate Professor | | Institute of Statistics and Decision Sciences | | 219A Old Chemistry, BOX 90251 | | Duke University | | Durham, NC 27708-0251 | | | | Office...
2007 Oct 25
1
PR#10371
...; and the plot command gives the error described previously. Should I report this bug directly to the authors of the HH package or file a new bug report under HH? Thanks! Merlise -- __________________________________________________ | | | Merlise Clyde, Associate Professor | | Department of Statistical Science | | 223E Old Chemistry, BOX 90251 | | Duke University | | Durham, NC 27708-0251 | | | | Offic...
2007 Feb 19
1
Documenting options specific to a package.
If one specifies new options in a package, using the options() function, where does/should one document these new options? E.g. suppose that I put the line options(melvin=42) in a file zzz.R in the R directory of the package source, where the package contains functions foo(), bar(), clyde(), and irving() which all query options("melvin") and take some action based on the value of ``melvin''. The user can of course change the value of ``melvin'' from its default value by doing, e.g. options(melvin=99) Are there any conventions or standards as to h...
2010 Nov 30
2
ggplot2 histograms
...7,17,18,18,18,18,18) d2<-c(rep("a",25), rep("b",39)) dafr<-data.frame(d1,d2) library(ggplot) qplot(d1, data=dafr, fill=d2, geom='histogram', binwidth = 1) Many thanks for any help Sandy Sandy Small Clinical Physicist NHS Forth Valley and NHS Greater Glasgow and Clyde ******************************************************************************************************************** This message may contain confidential information. If yo...{{dropped:24}}
2010 Oct 26
2
Forcing results from lm into datframe
...;coefficients") But that doesn't give me the basestudy separately so that I can match up the results with the entropy results. I am sure this must have been answered somewhere before but I have been unable to find a solution. Many thanks for your help Sandy Small NHS Greater Glasgow and Clyde ******************************************************************************************************************** This message may contain confidential information. If yo...{{dropped:24}}
2011 Jul 28
3
Looping through data sets to change column from character to numeric
Greetings to all -- I am having a silly problem that I just can't solve. Someone has given me an .RData file will hundreds of data frames. Each data frame has a column named ResultValue, currently character when it should be numeric. I want to loop through all of the data frames to change the variable to numeric, but I cannot figure out how to do it. My best guess was along the lines of:
2003 Apr 21
4
help.start in R-1.7.0 with Netscape 7.0.
I'm experiencing a new and annoying phenomenon which seems to consist of an unfortunate interaction between R-1.7.0 and netscape version 7. When I invoke help.start(), a netscape window duly appears with the browser pointed at the file .../R/doc/html/index.html as one would hope and expect. However if I then ask for help on a function, e.g. > help(glm) the help does NOT get displayed
2011 Jul 19
1
"may be used in an incorrect context"
R CMD check tells me * checking R code for possible problems ... NOTE agexact.fit.rds: ... may be used in an incorrect context: ?optim(init, agfitfn, ...)? Warning: <anonymous>: ... may be used in an incorrect context: ?optim(init, agfitfn, ...)? Can anyone tell me what this message means? My searches haven't turned up anything useful. This is with R 2.7 and 2.9. The message
2019 Nov 04
0
Puzzled about a new method for "[".
...y right that there are lurking perils in general, but I am > not trying to "restore a class".? I simply want to *retain* attributes > of columns in a data frame. > > * I have a data frame X > * I attach attributes to certain of its columns; > ???? attr(X$melvin,"clyde") <- 42 > ? (I *don't* change the class of X$melvin.) > * I form a subset of X: > ??? Y <- X[1:100,3:10] > * given that "melvin" is amongst columns 3 through 10 of X, > ??? I want Y$melvin to retain the attribute "clyde", i.e. I > ??? want at...
2019 Nov 04
0
Puzzled about a new method for "[".
...al, but I am >>> not trying to "restore a class".? I simply want to *retain* attributes >>> of columns in a data frame. >>> >>> * I have a data frame X >>> * I attach attributes to certain of its columns; >>> ? ???? attr(X$melvin,"clyde") <- 42 >>> ? ? (I *don't* change the class of X$melvin.) >>> * I form a subset of X: >>> ? ??? Y <- X[1:100,3:10] >>> * given that "melvin" is amongst columns 3 through 10 of X, >>> ? ??? I want Y$melvin to retain the attribute...