Displaying 20 results from an estimated 2000 matches similar to: "What does the "<<-" operator mean?"
2010 Sep 21
1
Prime Factorization
Hi everyone, I have a very quick question:
Is there a ready-made function in R or any R packages to find the prime
factorization of an integer?
--
View this message in context: http://r.789695.n4.nabble.com/Prime-Factorization-tp2548877p2548877.html
Sent from the R help mailing list archive at Nabble.com.
2010 Jul 15
2
write.csv() : attempt to set 'append' ignored... Why?
I'm running R 2.11.0 on a 32-bit Windows XP machine. Whenever I try to write
a csv file with 'append' set to TRUE, I get this message: attempt to set
'append' ignored.
Obviously, this is no good, since R is deleting my previously saved data
files, rather than appending to them. What can I do to fix this?
--
View this message in context:
2010 Nov 17
2
Looking up the directory a file is located in
Hello everyone,
This should be an easy question, I think.
I'd like to write a command in a program to set the working directory to
whatever directory the file is currently stored in. Suppose I have a file
called "myRscript.r", and it's stored in "C:\Rprojects\myRscript.r", and it
references other R scripts and data files in the same directory.
If I enter the
2011 Oct 16
2
Suppressing the Intercept in lm() when using a dataframe for the model
It's easy to run a linear regression on a simple model without an intercept
just by doing this:
lm(y ~ x1 + x2 -1)
Is there a similar trick to suppress the intercept when your model is in a
large dataframe and you don't want to write out the names of individual
columns?
--
View this message in context:
2010 Jul 12
2
Accessing files on password-protected FTP sites
Hello everyone,
Is it possible to download data from password-protected ftp sites? I saw
another thread with instructions for uploading files using RCurl, but I
could not find information for downloading them in the RCurl documentation.
I am using R 2.11 on a Windows XP 32-bit machine.
Thanks in advance,
Cliff
--
View this message in context:
2011 Jul 06
1
Writing dataframes side by side in a file
Is there a quick and easy way to write data frames side-by-side in a csv file
with one column separating them?
I could just fill them with empty rows so they all have the same height,
then cbind them with empty columns in between, but I'm looking for a more
elegant solution, if one exists.
Thanks in advance,
Cliff
--
View this message in context:
2023 Mar 19
2
WISH: Optional mechanism preventing var <<- value from assigning non-existing variable
Why should it make an exception for cases where the about-to-be-assigned-to
name is present in the global environment? I think it should warn or give
an error if the altered variable is in any environment on the search list.
-Bill
On Sun, Mar 19, 2023 at 10:54?AM Duncan Murdoch <murdoch.duncan at gmail.com>
wrote:
> I think that should be the default behaviour. It's pretty late to
2023 Mar 19
1
WISH: Optional mechanism preventing var <<- value from assigning non-existing variable
I'd like to be able to prevent the <<- assignment operator ("super
assignment") from assigning to the global environment unless the
variable already exists and is not locked. If it does not exist or is
locked, I'd like an error to be produced. This would allow me to
evaluate expressions with this temporarily set to protect against
mistakes.
For example, I'd like to
2023 Mar 19
1
WISH: Optional mechanism preventing var <<- value from assigning non-existing variable
I think that should be the default behaviour. It's pretty late to get
that into R 4.3.0, but I think your proposal (with check.superassignment
= FALSE being the default) could make it in, and 4.4.0 could change the
default to TRUE.
Duncan
On 19/03/2023 12:08 p.m., Henrik Bengtsson wrote:
> I'd like to be able to prevent the <<- assignment operator ("super
>
2004 Oct 08
2
Evaluating Assignment-Operator R 2.0.0
Dear Helpers,
in which way I have to use the assignment-operator evaluating left to right
with R 2.0.0?
With R 2.0.0 (w2k-installation) the "superassignment" operator '<<-' seems to
have a different behaviour compared with R 1.9.1 :
> x<<-4
> x
[1] 4
> attr(x,'y')<<-5
Error: Object "x" not found
>
Using earlier
2023 Mar 19
1
WISH: Optional mechanism preventing var <<- value from assigning non-existing variable
I have to say <<- is a core debugging tool when assigning into the global
environment. I suppose I could use assign but that would be somewhat
annoying.
That said I'm still for this change, the vast overwhelming number of times
that <<- is in my package code - already rare but it does happen - it would
absolutely be a bug (typo most likely) for it to get to the global
environment
2004 Nov 18
3
SipTone II
Anybody used the above phone with asterisk
I have one working ok for calls, but having a problem with voice mail.
Using either the 'Voice mail function key' or dialing 88 (for my system)
just gets me to Call Terminated
Asterisk CLI shows the error message 'unable to get User name'
My Grandstream works ok, asking for User name, then Password
Any ideas ?
--
Clive
Email :
2005 Aug 19
1
Weird series of errors with dovecot-stable
I'm using the dovecot-stable from 7/30, authenticating against an
OpenLDAP server. From time to time, dovecot stops responding to new
queries. It seems to be a self-correcting problem, lasting about 20
minutes.
Here's how it starts:
Aug 18 19:38:23 cliff dovecot: imap-login: Disconnected: Inactivity
[150.253.42.12]
Aug 18 19:38:36 cliff dovecot: pop3-login: Disconnected: Inactivity
2000 Jun 08
3
Output args?
Hi,
Is there a way to find out if a function was called with an output argument? Or to prevent the printing of large amount of data if the function was called without output argument?
Thanks
YG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20000608/8d7a01ec/attachment.html
2011 Feb 15
1
Passing Arguments in a function
Hi All,
I'm having some trouble assigning arguments inside a function to
produce a plot from a model
Can anyone help me? Below I've outlined the situation and examples of
failing and working code.
Regards
Mike
## data ##
decay.data <- ...
behaviors lift reach.uu estimated.conversions.uu total.reach
1 1 432.0083 770 770 0.00
2
2005 Jul 10
2
chan_capi ASTCC trouble
Hi all
I am wondering if anyone has had a similar trouble to this:
The timeout arguments in the dial command does not work. The caller
does not get disconnected when the timeout reaches zero.
I am not sure if this is a chan_capi issue, or a asterisk issue. I am using
CVS-head and chan_capi CVS head also.
Any suggestions or help will be appreciated.
Thanks
Clive
2012 Jul 24
1
Patchy 'front-end' package installation problems using -R- 2.15.1
I think this is the fourth attempt to send this blessed message, so let's hope this gets through without any 'unprocessed' or 'ignored' in-lines on auto-reply.
I wish to report to you some strange problems I'm experiencing with installing packages directly into my -R- 2.15.1 (there is an indirect solution, which I note below). First, here's some essential information:
2005 Sep 20
6
iax2 trunking wackyness
Hi
I was doing some bandwidth testing, and my incomming usage is
36% more than my outgoing bandwidth.
The setup is IAX2 trunking using GSM codec.
Is there any obvious reason I am overlooking to figure out why
there is such a big difference between the two.?
I am using CVS-head September 3rd, maybe there is a version
skew?
Any suggestions will be appreciated.
Thanks
Clive
2005 Sep 02
2
Superassignment (<<-) and indexing
In a clean environment under R-2.1.0 on Linux:
> x <- 1:5
> x[3] <<- 9
Error: Object "x" not found
Isn't that odd? (Note x <<- 9 works just fine.)
Why am I doing this? Because I'm stepping through code that
normally lives inside a function, where "<<-" is appropriate.
-- David Brahm (brahm at alum.mit.edu)
2004 Nov 23
2
-lssl
Hi
Having my first go at compiling Asterisk from cvs source.
Compiled and installed zaptel ok
Running make asterisk returns the following error message
/usr/bin/ld cannot find -lssl
collect2: ld returned 1 exit status
The last part of the compile messages on screen are-
editline/libedit.a db1.ast/libdb1.a stdtime/libtime.a -ldl -lncurses -lm
-lresolv -lssl
There is obviously something I have