similar to: Returning the name of an object passed directly or from a list by lapply

Displaying 20 results from an estimated 7000 matches similar to: "Returning the name of an object passed directly or from a list by lapply"

2011 Jul 09
3
Using str() in a function.
Using str() in a function. I am in the early phase of learning R, and I find I spend a lot of time trying to figure out what is actually in objects I have created or read in from a file. I'm trying to make a simple little function to display a couple of things about a object, let's say the summary() and the str(), sequentially, preferably without a bunch of surplus lines between them. I
2011 Sep 08
0
Consistently printing the name of an object passed to a function; & a data-auditing question
Dear folks-- I always seem to find that I spend more than half my time making sure my input date is in the right form, properly aligned, with no bizarre features. You know the drill: five kinds of missing values, three of them documented. An alpha mistype in one numeric field turns 30,000 numbers into factor levels. SPSS conversion turns 250 factors nicely into R factors, except 3 have levels
2007 Mar 30
2
Replacing slot of S4 class in method of S4 class?
Dear all, Assume that I have an S4 class "MyClass" with a slot "myname", which is initialized to: myname="" in method("initialize"): myclass <- new("MyClass", myname="") Assume that class "MyClass" has a method "mymethod": "mymethod.MyClass" <- function(object, myname=character(0), ...) {
2004 Apr 21
2
help with smbmount and permissions
ok, on my windows machine, i see: myname on 'computer01\home' (H:) so i went to my linux box and did: smbclient -L //computer01 -U myname and i see Home listed as a sharename (why does windows show it as "home" but its really "Home" as reported by smbclient?). well everything works fine if i mount it like this: smbmount //computer01/Home /mnt/computer01/Home -o
2012 Mar 10
3
function input as variable name (deparse/quote/paste) ??
Hi all Say I have a function: myname=function(dat,x=5,y=6){ res<<-x+y-dat } for various input such as myname(dat1) myname(dat2) myname(dat3) myname(dat4) myname(dat5) how should I modify the 'res' line, to have new informative variable name correspondingly, such as dat1.res dat2.res dat3.res dat4.res dat5.res stored in the workspace. This is only an example of a complex
2011 Sep 16
2
Referring to an object by a variable containing its name: 6 failures
Dear Folks-- I'm trying to make a function that takes the columns I select from a data frame and then uses a for loop to print some information about each one, starting with the column name. I succeed in returning the column name, but nothing else I have tried using the variable colName, containing the name of the column, to refer to the column itself has worked. Below I show my
2007 Mar 04
1
Problem using callNextMethod() in S4
Dear all, Maybe, I am doing something wrong, but using R-2.5.0 on my Intel-Mac, I have problems using function callNextMethod() in method initialize. I am loading the following code as file "testS4.R": setClass("baseClass", representation(myname = "character", mydir = "character", "VIRTUAL"),
2004 Sep 08
3
sendmail&hostname
Good day all I'm just wondering for interest sake I have a box,hostname=myname.co.za,running sendmail If I send mail to someuser@myname.co.za it try to deliver to the box,witch does not have the mail box.How do I tell sendmail that it should send mail to myname.co.za's mailserver. I know how easy it is to change the name but there's a lot of reasons why we can.It is not in the
2010 Dec 02
1
Have inbox at the same place
Hello again, I have an installation with dovecot and I am accessing it through linux mint and thunderbird v3.0.10 As thunderbird "subscribes" to dovecot, it does the following : Inbox Trash MyName at Mydomain.gr Local Folders Local Folders MyName at Mydomain.gr subfolder A Subfolder B Subfolder C Subfolder D Subfolder E Local Folders Outbox OK, I have to admit a have
2010 Mar 12
1
problem with parse(text=quote(name))
Calling parse(text=quote(name)) or text=as.name("name") makes parse() prompt for input from the command line and then it returns a parse of the initial characters of 'name' (depending on how many characters were typed at the prompt). E.g., > parse(text=quote(myName)) ?1/3 expression(myN) attr(,"srcfile") <text> >
2020 Oct 13
2
Are those file and folder ACLs to be expected?
Hello. I've got a working SAMBA AD server. I'm able to join both Linux (winbind) and Windows clients. I have also joined an NAS that hosts some shares/folders to be used by multiple machines (Linux and Windows 10). On my Linux host I'm accessing the NAS via NFS mount, while on my Windows machine obviously I'm using SMB. I'm using the ad ID mapping backend with uId and gId that
2011 Oct 16
1
ntlm_auth NT_STATUS_INVALID_HANDLE with windbind
I should use an authenticated proxy with Squid, but I have a problem with winbind. I'm working on a PDC, debian squeeze with samba from backport (ver. 2:3.5.11~dfsg-1~bpo60+1 ) Here the problem: I can authenticate users. /usr/bin/ntlm_auth --username=myname --domain=MYCOMPANY password: XXXX NT_STATUS_INVALID_HANDLE: Invalid handle (0xc0000008) wbinfo -a myname Enter myname's
2003 Oct 23
3
List of lm objects
Hi R-Helpers: I?m trying to fit the same linear model to a bunch of variables in a data frame, so I was trying to adapt the codes John Fox, Spencer Graves and Peter Dalgaard proposed and discused yesterday on this e-mail list: for (y in df[, 3:5]) { mod = lm(y ~ Trt*Dose, data = x, contrasts = list(Trt = contr.sum, Dose = contr.sum)) Anova(mod, type = "III") } ## by John Fox or for
2007 Nov 28
3
using names with functions..
Dear all, I have the following (rather) strange problem.. For some reasons, I finally work with a variable whose name includes an R function, "a.log(z)", say. And that is a problem when I call it in a formula, for instance: > myname<-"a.log(z)" > dd<-data.frame("a.log(z)"=1:10,y=rnorm(10)) > o<-lm(y~1,data=dd) >
2002 Jan 18
1
scp between two remote hosts
Hi All, I am running openssh (OpenSSH_2.9p1, SSH protocols 1.5/2.0). The scenario is that I have got three machines (A, B and C). The sshd on host A is listensing on port 1234, and the sshd on host B is listensing on port 5678. How can I set up a scp from a third host C so as to copy a file from host A to host B? scp -P 1234 myname at A:/var/tmp/file1 -P 5678 myname at B:/var/tmp/file1 does
2003 Dec 23
1
Login from NT4 to Samba 3.0.1
Hi, I've just installed Samba-3.0.0 on a Sun Ultra 5 Solaris 8. >From the Sun, smbclient //MySun/MyName runs OK. >From Windows 2000, I can open shares like \\MySun\MyName. >From Windows NT4, opening \\MySun\MyName doesn't work. In the Samba logfile, setting debug level to 3, I can read : check_ntlm_password: Authentication for user [correge] -> [correge] FAILED with error
2014 Jun 04
2
[LLVMdev] Multiple Definition error with LTO
I'm trying to understand why using a local memcpy with LTO results in a "multiple definition" error. I have an local (optimized) mempy.c (clearly simplified!): void* memcpy(void* dest, const void* src, unsigned int count) { return 0; } void* __aeabi_memcpy(void *dest, const void *src, unsigned int size) { return memcpy(dest,src,size); } --- I also have a simple
2012 Sep 05
2
samba4 installation Error and mount: unknown filesystem type 'smbfs'
Hi, all: Two questions. Environment: Ubuntu 12.04 1) mount: unknown filesystem type 'smbfs' With default Samba 2:3.6.3-2ubuntu2.3 installed, all the following 3 commands failed: a) $ sudo mount -t *smbfs* -o username=MYNAME,password=MYPWD //mybooklive/myfolder /media/smb/ mount: unknown filesystem type 'smbfs' b) /media$ sudo mount -t *cifs* -o username=MYNAME,password=MYPWD
2005 Jun 01
7
Which variable exist after random
Dear R-helper, How could I count only some variable was exist after running sample (random) function. For example, > testx <- factor(c("Game","Paper","Internet","Time","Money")) > for(i in 1:2) { + x <- sample(testx,replace=TRUE) + print(x) + } [1] Money Money Time Internet Time Levels: Game Internet
2011 Sep 02
2
How to keep the same class?
Hello Please see the example below > class(testX) [1] "matrix" > class(testX[1,]) [1] "numeric" Why not matrix? What am I missing here? Is there a way to keep the same class? The reason for the question is that I want to implement a k-step ahead prediction for my own routines and R wrecks does not seem to like [1,] as shown below. >