similar to: Getting the name of an object as character

Displaying 20 results from an estimated 10000 matches similar to: "Getting the name of an object as character"

2009 Sep 02
1
get function to return object "name"?
Dear list, I've written a function that plots subjects. Something like: myplot <- function(subject) { plot(subject) } Subjects are vectors, e.g. ... s1 <- c(200,200,190,180) ... and plotting them works fine, e.g. ... myplot(s1) Now I want to have "s1" etc appear in the plot title, but I don't know how to refer to this generically (the object "name"? I tried
2009 Aug 17
3
Graphical Parameters
Hi Sir How can I change plot size, figure size and device size? The examples availble for par() function are not very helpful. Would you please give a very simple example? Best Regards _________________________________________________________________ Show them the way! Add maps and directions to your party invites. [[alternative HTML version deleted]]
2009 May 07
2
Show name of dataset in graph
Hi, I?ve written a script to run several multivariate statistical analysis automatically. As one result a biplot and screeplot is produced. Now I?d like to display the name of the inputdatset as part of the title of these graphics and I do not want to enter it each time I run the script. How can I extract the name of a dataset? An (shortened) extraction from the script: >Test1 <-
2020 Jul 10
2
Way to start CDR when call is bridged ?
Hi, in dialplan -Asterisk 16.2 from Debian Buster- we have  same = n,Dial(PJSIP/101&PJSIP/102&PJSIP/103,15,tT) If thew call is not answered after 20 seconds, we launch a new dial with same and/or other extensions  same = n,Dial(PJSIP/101&PJSIP/104&PJSIP/110,20,tT) Looking in CDR we have at the end of the call (here we called 3 extensions which where ringing, let say 110
2012 Oct 02
1
[LLVMdev] Error prone default memory capturing convention of blocks.
Hi guys, I've been using blocks for a while and found that current behavior is error prone. So I am going to propose to you the better one. Motivation: 1) The __weak variables in blocks are very common pattern. So having any implicit default behavior makes thing worse. 2) Some stupid mistakes like: __weak typeof (self) theSelf = self; ...^ { theSelf.blabla = .. .... [self blabla];
2005 Jul 19
2
using argument names (of indeterminate number) within a function
Although I tried to find an answer in the manuals and archives, I cannot solve this (please excuse that my English and/or R programming skills are not good enough to state my problem more clearly): I want to write a function with an indeterminate (not pre-defined) number of arguments and think that I should use the "..." construct and the match.call() function. The goal is to write
2013 Jun 05
2
Template not putting in new lines.
hi all, Ive been having a bit of a trouble with something that should be pretty simple. My goal is to create a host file on a node with IP address and hostname (specified in the node manifest). I created the manifests and templates below but when I use them I get a hosts file without spaces or newlines, like below. Please help me figure out how do I add the spaces and new lines? Or where
2006 May 02
1
Only one NDS_ldapsam possible?
Hi, is there a way to define more than one NDS ldap server in smb.conf? It seems that only the first ldap server is used and if unavailable none of the other backends are going to be tried. Samba then still tries to connect over and over to the unavailable eDirectory-Server. My passdb entry looks like this (it?s all in one line): passdb backend = NDS_ldapsam:ldaps://serverA.blabla.com:636
2010 Mar 31
1
The exit code makes user confused while using '-' prefixed subcommands
guestfish returns 0 if the commands completed without error, or 1 if there was an error. But the rule break when we use '-' prefix subcommands: ------------------------------------ $ guestfish <<\EOF > blabla > EOF blabla: unknown command $ echo $? 1 $ guestfish <<\EOF -blabla EOF blabla: unknown command $ echo $? 0 ------------------------------------ I think it should
2006 Aug 07
3
simple if - then question
hi, could somebody tell me the difference between: if not params[:id] flash[:notice] = blabla'' redirect_to(:controller =>"calendar", :action => ''index'') end and: if params[:id] == nil flash[:notice] = blabla'' redirect_to(:controller =>"calendar", :action => ''index'') end the first one
2010 Nov 17
2
Reference classes: accessor functions via 'getRefClass(...)$accessors(...)'
Hi there, I''d like to choose between an "static" and "dynamic" access of a reference class field, say ''a''. myObj <- getRefClass("Blabla")$new() Static: myObj$a Dynamic: myObj$a.get() where the function retrieves the data from a database (or some other location), stores it to a buffer and
2011 Feb 24
1
Creating objects (data.frames) with names stored in character vector
Hello, I'm fairly new to R. I'm a chemist, not a programmer so please bear with me. I have a large data.frame that I want to break down (subset) into smaller data.frames for analysis. I would like to give the data.frames descriptive names which I have stored in a character vector. My original thought was that I want the subsets to show up as individual objects, but haveing them stored
2005 Aug 18
1
Creating directories before resource connect
When I have fileserver with many users homedirs (but all users from AD through winbind), how can I autocreate /usr/home/blabla, when I have just create user blabla in AD? Samba required existed directory to connect to resource, preexec= starts only after succesful connection. I'd like to automate process - when I have just create user blabla, when it connect first time to their homedir at
2014 Jul 08
1
Database and variables
Hi list, question regarding the result of a DB query. I have database put Agora modele/IVR/AstreinteNagios/1 ${ASTR_State} i=1 and I read the DB with exten => IVR,n,Set(__PlayMe=${DB(${ASTRSVC}/IVR/${IVR}/${i})}) exten => IVR,n,NoOp(We read ${PlayMe}) Result: -- Executing [IVR at Automates:8] Set("SIP/laotseu-00000001", "__PlayMe=${ASTR_State}") in new stack
2010 Nov 07
1
Sweave: option keep.source=TRUE and package cacheSweave
Dear all, When I use the cacheSweave package together with the Sweave option keep.source = TRUE, all the LaTeX code before the Sweave code chunk is included in the TeX file to be compiled. For example, with the following Sweave file \documentclass[12pt]{article} \usepackage[nogin]{Sweave} % Sweave options \SweaveOpts{keep.source=TRUE, strip.white=TRUE, eps=FALSE, pdf=TRUE} \begin{document}
2005 Apr 20
5
Overloading methods in R
(1) It seems to me that, generally, in R it is not possible to overload functions. Is that right? (2) Assuming that the above is true, or partially true, is there any extra packages to handle overloading in R? (3) Assuming (1) is TRUE and (2) is FALSE, can anyone provide some advice on developing some function that understand what the arguments are and then calls the right overloaded
2008 Jul 29
4
Graphics function question
Hello I have created a graph using the following commands: <<< startBReP3O1T <- diffs$BReP3O1T - diffs$diff_BReP3O1T endBReP3O1T <- diffs$BReP3O1T x <- seq(47,89, length = 10) ymin <- min(min(startBReP3O1T), min(endBReP3O1T)) ymax <- max(max(startBReP3O1T), max(endBReP3O1T)) y <- seq(ymin, ymax, length = 10) plot(x,y, type = 'n', xlab = 'Age', ylab =
2006 Aug 19
1
problem with Rcmd check and fortran95, makefile
Hi all, I have Win XP and R 2.3.1 on my notebook. I would like to write a package which includes some Fortran 95 code. Interestingly, if I compile and link the simple file test90.f90 directly with g95 -c test90.f90 g95 -shared -o test90.dll test90.o then PE Viewer ( a dll viewer) shows me the right functions in the export table, hence I can use the dll in R. But as it should become part of a
2016 Jul 27
2
Cannot find invalid DNS entry
On 27/07/16 13:40, mathias dufresne wrote: > Two files are hosting DNS data: > /path/to/private/sam.ldb.d/DC=DOMAINDNSZONES,DC=blabla.ldb and > /path/to/private/sam.ldb.d/DC=FORESTDNSZONES,DC=blabla.ldb > > DNS entries are sometimes (often? always?) base64 encoded. You should be > able to "grep" for string these files with: > ldbsearch --show-binary -H >
2006 Jan 27
4
regular expressions, sub
Hi, I am trying to use sub, regexpr on expressions like log(D) ~ log(N)+I(log(N)^2)+log(t) being a model specification. The aim is to produce: "ln D ~ ln N + ln^2 N + ln t" The variable names N, t may change, the number of terms too. I succeded only partially, help on regular expressions is hard to understand for me, examples on my case are rare. The help page on R-help