search for: melvin

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

Did you mean: kelvin
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'...
2019 Nov 04
3
Puzzled about a new method for "[".
...utes after subsetting. 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,"...
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,ir...
2019 Nov 04
3
Puzzled about a new method for "[".
...hat 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 "cl...
2006 Apr 13
4
Creating an environment for a function.
...bar(y,foo) so that in the code of bar() I could have assignments like clyde <- get("f1",envir=environment(foo)) So rather than assigning f1, ..., fk in the body of foo, I would like to assign them in the environment of foo. I want to do something like environment(foo) <- melvin where melvin contains f1, ..., fk. But how do I create ``melvin'' so that it is acceptable to the foregoing assignment? One way I ***could*** go about it would be to create melvin as a list: melvin <- list(f1=f1,f2=f2,etc.) Then I could do attach(melvin) environment(foo) <...
2004 Dec 04
9
Excel *.xls files, RODBC
...d be possible (modulo a number of caveats) to read an excel (yuck!) file into R using RODBC. I have obtained and installed ODBC and the RODBC package, but cannot for the life of me figure out how to go about it. Can anyone give me a simple recipe? I have an excel file on cdrom, say: /mnt/cdrom/melvin.xls I have started R and loaded the RODBC package. I want to create a data frame ``melvin'' by reading in /mnt/cdrom/melvin.xls. What (in monosyllables --- step by step) do I do next? cheers, Rolf Turner rolf at math.unb.ca
2001 Dec 20
2
library()
I've just installed version 1.4.0 of R, and am experiencing a puzzling phenomenon with the library() function. I have .lib.loc set as follows: > .lib.loc [1] "/usr/local/lib/R/library" "/home/faculty/rolf/Rlib" If I invoke > library(melvin) I get the error message Error in library(melvin) : There is no package called `melvin' but if I invoke > library(melvin,lib.loc="/home/faculty/rolf/Rlib") the package ``melvin'' gets loaded with no problems. What gives? Is the .lib.loc object not being used in 1....
2001 Nov 15
1
samba daemon won't start.
-----Original Message----- From: MAKRO BAGAFORO, Melvin Sent: Friday, November 16, 2001 11:52 AM To: 'Ben Elliston' Subject: RE: samba error Hi Guys, I already downloaded the latest config.guess and config.sub files, './configure' command is now error free. However, I have another problem, samba won't start. S...
2007 Oct 04
5
A rebel boxplot question
Dear R list members I am trying to improve a boxplot with 2 data sets. I run somethinkg like boxplot(data1 ~ month, add=F, col = "red", ...) boxplot(data2 ~ month, add=T, col = "blue", ...) The problem is that the data from February are missing for data2, so R think that must take little more space between the data classes in data 2 and then both data gropus are not aligned.
2019 Nov 04
0
Puzzled about a new method for "[".
...39;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 >...
2019 Nov 04
0
Puzzled about a new method for "[".
...rils 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 th...
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]]
2019 Nov 05
1
Puzzled about a new method for "[".
...>>> 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 w...
2004 Mar 22
5
detach()
I got bitten recently by the following behaviour of detach(); > save(file="Junk") > attach("Junk") > search() [1] ".GlobalEnv" "file:Junk" "package:methods" "package:ctest" [5] "package:mva" "package:modreg" "package:nls" "package:ts" [9]
2004 Sep 15
2
Slightly off-topic --- distribution name.
I've built R functions to ``effect'' a particular distribution, and would like to find out if that distribution is already ``known'' by an existing name. (I.e. suppose it were called the ``Melvin'' distribution --- I've built dmelvin, pmelvin, qmelvin, and rmelvin as it were, but I need a real name to substitute for melvin.) The distribution is really just a toy --- but it provides a nice (and ``non-obviouse'') example of a two parameter distribution where both the mome...
2007 Dec 17
1
polygon class in splancs package
Dear forum, I would like to use the kernel2d or spkernel2d in the Splancs-package, but it does not recognize my polygon data. "Error in kernel2d(as.points(ptsbin), polygonprov, h0 = 2, nx = 100, : " is the error message. Invalid poly argument The data are defined as follows: polgonprov<-list(x=polyprov$X, y=polyprov$Y) with X and Y coordinates in the Lambert1972
2001 Nov 18
2
log.smbd error -
...g the name 'STORE 8', when my hostname is 'store8' (no space in-between). Previously, I used 'store 8' as workgroup in smb.conf but I've already changed it other names. Do you have any idea what samba or system files should I edit ?(I'm using SVR4 unix) Thanks, Melvin M Bagaforo
2015 Jan 31
2
Start up script fails
On 1/31/15, Charles Lepple <clepple at gmail.com> wrote: > On Jan 31, 2015, at 9:17 AM, Melvin Call <melvincall979 at gmail.com> wrote: > >> There is no other information provided, and there is nothing in the log to >> help >> either. Can anyone tell me what I need to do to make this output some >> useful >> information that I can use to further trouble...
2015 Jan 30
5
Error: Connection failure: Connection refused
...p the service and go through the steps to start everything one at a time, everything seems good and I can check the status. Any useful information that I've left out is an oversight on my part, so just ask if additional info is needed. Any hints on my next steps would be appreciated. Regards, Melvin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20150130/cdacdd5c/attachment.html>
2015 Jan 31
0
Error: Connection failure: Connection refused
On Jan 30, 2015, at 4:22 PM, Melvin Call <melvincall979 at gmail.com> wrote: > At this point I unplugged the UPS and plugged it into a different USP port, but > that did not change the above. Figuring this was likely a udev problem, I > created the following /etc/udev/rules.d/52-nut-usbups.rules (based on an example &...