Displaying 9 results from an estimated 9 matches for "zulutim".
Did you mean:
zulutime
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
2009 Jan 06
1
Selecting variables from a list of data.frames
I have a simulation program that generates a data frame for each run. I
aggregate the data.frames into a list (df.list). The structure of all data
frames is the same, only the values are different.
I then want to aggregate the various runs. Currently I use the following
method (for three runs):
means = (df.list[[1]]$variable + df.list[[2]]$variable +
df.list[[3]]$variable)/3
I would like
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?
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
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>