Displaying 20 results from an estimated 4000 matches similar to: "access environment in which an error occurred"
2012 Jul 24
1
dump.frames and global environment
Dear list members,
I am trying to use dump.frames to debug some code that i run non
interactively. I use the following method:
dump.frames.mod = function() {
dump.frames(dumpto = 'test', to.file = TRUE)
quit(save = 'no', status = 10)
}
options(error = dump.frames.mod)
Is there any way to acess the content of the global environment from the
*.rda file created in
2011 Nov 24
1
content of global environment with dump.frames()
Dear R users,
I am using dump.frames() to investigate the content of the different environments in cases of errors or during certain steps of a non interactive calculation. I am, however, wondering about how to see the content of the global environment at the moment that dump.fames() was invoked. Her is some test piece (careful about the rm(list=ls(), remove the # if you know what you are doing
2011 Sep 28
3
dump.frames, debugger and the "..." argument
Dear List,
i run R non interactively and use option(error = dump.frames) to reconstruct the cause of errors for debugging. One of the functions in the call stack however uses the "..." (dot dot dot) argument. When I run debugger() and try to browse to this functions' environment I get the following error message:
Error in get(.obj, envir = dump[[.selection]]) :
argument
2009 Jun 30
2
[PATCH node] Make all yes/no prompts consistent. rhbz#508778
Added a new function, "ask_yes_or_no", to ovirt-functions. It contains a
default prompt if none is provided.
Changed all prompts that ask for yes, no and/or abort to use this new
method.
Signed-off-by: Darryl L. Pierce <dpierce at redhat.com>
---
scripts/ovirt-config-boot-wrapper | 8 ++---
scripts/ovirt-config-collectd | 39 +++++++++++++++-----------
2011 Apr 11
1
Require dialplan
Hi ,
In vicidial dialer
I need small Dialplan require. when i call from hardphone , in that has 1to9
no.s i want define the dipositions like when i press the 1 it will goes
NotIntrest, press 2 for NotAvailable.
How can i configure for this.
--
Best Regards,
Mahesh Katta
*BUZZ**WORKS* Business Services Private Limited
BANGALORE | CHENNAI | HYDERABAD | MUMBAI| DELHI
201, Crystal Tower, 75
2006 Apr 28
1
as.character.factor when the factor contains "NA"
as.character.factor contains this line (where cx=levels(x)[x]):
if ("NA" %in% levels(x)) cx[is.na(x)] <- "<NA>"
Is it possible that this is no longer the desired behavior? These
two results don't seem very consistent:
> as.character(as.factor(c("AB", "CD", NA)))
[1] "AB" "CD" NA
> is.na(.Last.value)[3]
[1] TRUE
2012 Dec 19
1
problem with opening more than one SOCK cluster with package snow
Dear list,
i have some problems using the snow package to create a SOCK cluster.
The errors just occour irregularly but it seems to me that they occour
when I try to create more than one cluster on the same machine via
different R instances started via submitting LSF jobs to a cluster. Does
anyone have an idea how to solve this or where to start digging for
solutions?
The error messages
2009 Mar 08
1
Merge 10 data frames with 3 id columns that are common to all data frames
Hi R users,
Can anyone share some example code using merge_all (from the reshape
package) to merge 10 data frames into 1 file.
Thanks in advance for any help!
--
View this message in context: http://www.nabble.com/Merge-10-data-frames-with-3-id-columns-that-are-common-to-all-data-frames-tp22402493p22402493.html
Sent from the R help mailing list archive at Nabble.com.
2006 Dec 08
2
Server for 100 concurrent calls
Hi all,
I'm looking at some suggestions from you techies out there.
Let me explain my scenario. Im a reseller to callshops.
I need to take around 100 concurrent calls. Almost all endpoints are sending
G723 codec and my peers take G729.
Can anyone recommend the Server Specs that is ideal for this scenario. Im
planning to lease a server. Calls are purely SIP or IAX2 only.
Thanks in advance.
2008 Jan 10
2
`[.data.frame`(df3, , -2) and NA columns
Dear baseRs,
I recently made a mistake when renaming data frame columns, accidentally
creating an NA column. I found the following strange behavior when negative
indexes are used.
Can anyone explain what happens here. No "workarounds" required, just curious.
Dieter
Version: Windows, R version 2.6.1 (2007-11-26)
#-----------------------------
df = data.frame(a=0:10,b=10:20)
df[,-2]
2009 Jan 21
3
merging several dataframes from a list
Hi there,
I have a list of dataframes (generated by reading multiple files) and all
dataframes are comparable in dimension and column names. They also have a
common column, which, I'd like to use for merging. To give a simple example of
what I have:
df1 <- data.frame(c(LETTERS[1:5]), c(2,6,3,1,9))
names(df1) <- c("pos", "data")
df3 <- df2 <- df1
df2$data
2011 Aug 18
2
Best way/practice to create a new data frame from two given ones with last column computed from the two data frames?
Dear expeRts,
What is the best approach to create a third data frame from two given ones, when
the new/third data frame has last column computed from the last columns of the two given
data frames?
## Okay, sounds complicated, so here is an example. Assume we have the two data frames:
df1 <- data.frame(Year=rep(2001:2010, each=2), Group=c("Group 1","Group 2"), Value=1:20)
2008 Feb 19
2
Looping through a list of objects & do something...
Hey Folks,
Could somebody show me how to loop through a list of dataframes? I want to
be able to generically access their elements and do something with them.
For instance, instead of this:
df1<- data.frame(x=(1:5),y=(1:5));
df2<- data.frame(x=(1:5),y=(1:5));
df3<- data.frame(x=(1:5),y=(1:5));
plot(df1$x,df1$y);
plot(df2$x,df2$y);
plot(df3$x,df3$y);
I would like to do something like:
2009 Mar 31
1
error during DPpackage compilation
Dear All,
I've had trouble compiling DPpackage as a user in one system. It works fine
as root in other machines.
I can see any clues in error messages My guess is that it is a permissions
matter.
Any help is appreciated.
OS: Linux
Kernel: 2.6.27 SMP
Arch: Intel 64 bits
gfortran not available
Thank you.
----------------------><8-------------------------------------
g77 ? -fpic ?-g
2008 Jan 24
2
boxplot axis labelling
Hi,
i'm very new to R, so sorry for what i'm sure is a very basic question. I'm
producing a boxplot with the data below:
df3<-data.frame(
x=c(10,11,115,12,13,14,16,17,18,21,22,23,24,26,27,28,29,3,30,32,33,34,35,4,4
1,45,5,50,52,56,58,6,67,6738,68,7,8,9),
fq=c(8,11,1,2,4,4,2,2,6,3,4,2,2,1,1,1,4,51,3,1,1,1,1,35,1,1,19,2,1,1,1,14,1,
1,1,10,13,5),
2010 May 11
2
Regex and gsub
Dear group,
Here is my df :
df3 <-
structure(list(DESCRIPTION = c("COPPER May/10", "COTTON NO.2 Jul/10",
"CRUDE OIL miNY May/10", "GOLD Jun/10", "ROBUSTA COFFEE (10) Jul/10",
"SOYBEANS Jul/10", "SUGAR NO.11 Jul/10", "SUGAR NO.11 May/10",
"WHEAT Jul/10", "SPCL HIGH GRADE ZINC USD",
2008 Jul 26
1
Can't get the correct order from melt.data.frame of reshape library.
Simple illustration,
> df3 <- data.frame(id=c(3,2,1,4), age=c(40,50,60,50), dose1=c(1,2,1,2), dose2=c(2,1,2,1), dose4=c(3,3,3,3))> df3 id age dose1 dose2 dose41 3 40 1 2 32 2 50 2 1 33 1 60 1 2 34 4 50 2 1 3> melt.data.frame(df3, id.var=1:2, na.rm=T) id age variable value1 3 40 dose1 12 2 50 dose1 23 1
2010 Dec 16
5
test whether all elements of a vector are identical
Dear list,
this might be an easy one, but I could figure out a solution (or how to
google the right term).
Is there any way to test whether all elements of a vector are identical?
For numeric vectors I would use
sum(diff(vector)==0)==0
but I have character vectors. Any Ideas?
Cheers
Jannis
2009 Feb 19
3
Multiple merge, better solution?
Hello,
My problem is that I would like to merge multiple files with a common
column but merge accepts only two
data.frames to merge. In the real situation, I have 26 different
data.frames with a common column. I can of course use merge many times
(see below) but what would be more sophisticated solution? For loop?
Any ideas?
DF1 <- data.frame(var1 = letters[1:5], a = rnorm(5))
DF2 <-
2009 Oct 07
1
merging dataframes with an unequal number of variables
Hallo Everyone
I have the kind of problem that one should never have because one must
always plan well and communicate with your team. But now I haven't so here
is my problem.
I have data coming in on a daily basis from surveys in 10 towns. The
questionnaire has 62 variables but some of the regions have used older
versions of the questionnaire that have a few variables less. I want to
combine