search for: torfason

Displaying 12 results from an estimated 12 matches for "torfason".

Did you mean: toranon
2009 Oct 13
4
Creating a list of empty lists
Well here is one more brain-teaser related to assigning stuff into a list of list. What if I need to create a new list of empty lists? I have actually got a solution to this problem: l = list(list()) for ( i in sequence(length-1) ) { l = list(unlist(l,recursive=FALSE), list()) } But it is not very neat to do this in a loop. Are there any cuter ways to do this?
2008 Jul 02
1
Data editor duplicates pairs of backslashes (PR#11897)
Full_Name: Magnus Torfason Version: 2.7.0 OS: Windows Vista Submission from: (NULL) (128.59.140.167) Each time a string is edited in the data editor (on Windows at least), any pairs of backslashes (an escaped backslash) are duplicated on each edit of the string. Note that one must actually double click the value for the bu...
2008 Jun 30
2
Using ODBC/RODBC with DBI
Hi all, I would like the following code to work, but it doesn't: library(DBI) library(RODBC) m <- dbDriver("RODBC") # Example for dbConnect(DBI), causes error m <- dbDriver("ODBC") # Example for DBIDriver-class(DBI), causes error The errors are: Error in do.call(as.character(drvName), list(...)) : could not find function "RODBC" (substitute
2009 Aug 19
4
Basic question: Reading in multiple choice question responses to a single column in data frame
I'm using read.delim to successfully read in tab delimited data, but some columns' values are comma seperated, reflecting the fact that user chose a few answers on a multi-select question. I understand that each answer is its own category and so could be represented as a seperate column in the data set, but I'd like the option of reading in the data column, and converting it to a
2009 Dec 18
1
The RSQLite version of dbGetQuery drops colums
Hi all, I just noticed (the hard way of course) that when a query returns 0 rows, the columns in the resulting data.frame get dropped as well. See the following example code (where conn is an active connection to an SQLite db): > dbGetQuery(conn, "select 1 as hey, 2 as ho where 1") hey ho 1 1 2 > dbGetQuery(conn, "select 1 as hey, 2 as ho where 0") data frame
2010 Jun 25
1
Trying to tile wireframe plots (using lattice package)
Hi all, I'm trying to print a number of wireframe plots (generated using the lattice package), and I want them to appear in a two-by two matrix along with some other (standard) plots. In other words I am trying to create a subplot or tiled plot that works for wireframes. I've tried the methods discussed in: http://tolstoy.newcastle.edu.au/R/e2/help/07/07/21238.html but while they work
2010 May 05
1
Memory warning (Reached total allocation of ...) - but no error
Hi all, I'm getting the following warnings inside a loop: Warning messages: 1: In calc.measures(g, 1, i) : Reached total allocation of 1535Mb: see help(memory.size) 2: In calc.measures(g, 1, i) : Reached total allocation of 1535Mb: see help(memory.size) Usually, when I see these warnings, they are accompanied with an error message (Error: cannot allocate ...), but not in this case.
2010 Sep 15
1
Inconvenient behavior of as.data.frame() for lists without names
Hi all, I ran into a small issue when converting a list of vectors to a data frame. The Issue I'm having is described by the snippet below: ######################################################### # Convert a list of vectors into a data.frame strlen = 256 s.long.a = paste( letters[1+(0:strlen %% 26)], collapse="") s.long.b = paste( letters[1+(strlen:0 %% 26)],
2010 Jan 05
1
Naming functions for the purpose of profiling
Hi all, I have some long-running code that I'm trying to profile. I am seeing a lot of time spent inside the <Anonymous> function. Of course, this can in fact be any of several functions, but I am unable to see how I could use the information from Rprof.out to discern which function is taking the most time. An example line from my Rprof.out is: rbernoulli <Anonymous>
2012 Jun 18
0
igraph 0.6 released
...omorphisms.vf2(), graph.get.subisomorphisms.vf2()). - Assortativity coefficient, assortativity(), assortativity.nominal() and assortativity.degree(). - Vertex operators that work by vertex names: graph.intersection.by.name(), graph.union.by.name(), graph.difference.by.name(). Thanks to Magnus Torfason for contributing his code! - Function to calculate a non-induced subraph: subgraph.edges(). - More comprehensive maximum flow and minimum cut calculation, see functions graph.maxflow(), graph.mincut(), stCuts(), stMincuts(). - Check whether a directed graph is a DAG, is.dag(). - has.multiple()...
2012 Jun 18
0
igraph 0.6 released
...omorphisms.vf2(), graph.get.subisomorphisms.vf2()). - Assortativity coefficient, assortativity(), assortativity.nominal() and assortativity.degree(). - Vertex operators that work by vertex names: graph.intersection.by.name(), graph.union.by.name(), graph.difference.by.name(). Thanks to Magnus Torfason for contributing his code! - Function to calculate a non-induced subraph: subgraph.edges(). - More comprehensive maximum flow and minimum cut calculation, see functions graph.maxflow(), graph.mincut(), stCuts(), stMincuts(). - Check whether a directed graph is a DAG, is.dag(). - has.multiple()...
2009 Dec 29
0
Problems when using lag() in plm package
Hi, I've been trying out the plm package, which seems like a great boon to those who want to analyze panel data in R. I haven't started to use the estimation functions themselves - for now I am just interested in having a robust way to deal with lags in unbalanced panel data, since it is such a royal pain to deal with all the special cases. However, In my tests, I found behavior that