Displaying 20 results from an estimated 300 matches similar to: "Flattening a list of data frames"
2005 Feb 24
1
Adding up intervals by activity
Hello all,
I have a data frame with the following columns: timestamp, activity,
interval.
Each row contains information about an activity that occured over a time
interval. "Timestamp" is when the interval ended, "Activity" is a factor
that represents the type of activity, and "Interval" is a double which
represents an interval in time. The data frame is sorted
2007 May 14
2
creating a "list of 3 dataframes" from a "list of 2 dataframes" and a dataframe?
#I wish to create a "list of three dataframes" ("results2") from a "list of two dataframes" (temp) and a dataframe ("c")?
#Please advise.
a <- data.frame(x=c(1,2,3),y=c(5,7,9))
b <- data.frame(x=c(2,4,7,9),y=c(2,3,5,4))
c <- data.frame(x=c(22,34,7,9),y=c(52,63,5,4))
results1 <- list(a,b,c) #what I want
#but this is how I need to get there
2012 Jul 02
2
Trouble using the dns_alt_names config option
Hello:
I''m trying to put a puppet master on an EC2 instance, and have it be
accessible to agentes using either its EC2 DNS name (e.g.,
ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com) or a friendlier alias (e.g.,
puppet.example.com).
My /etc/puppet/puppet.conf looks like:
[master]
certname=ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com
2005 Feb 20
1
Treatment-Contrast Interactions
Hello all,
(Apologies in advance if my terminology is incorrect, I'm relatively new
to R and statistics).
I have data from a factorial design with two treatments (CRF-23), and
I'm trying to compute treatment-contrast interactions through analysis
of variance. I can't figure out how to do contrasts properly, despite
reading the help for "C" and "contrasts"
2017 Apr 08
2
Getting a pointer to a i8 from a global variable that holds a constant string
Hello,
I'm trying to get the pointer to the first element of a string (so that I
can pass it to a function).
The string itself is a constant kept in a global variable.
My end goal is to generate the IR for something like "puts("Hello World")";
I'm stuck on the parameter part of the call instruction.
So far I have something like this:
const std::string& str =
2006 Feb 20
1
need help on nlme()
Hello there,
I am using nlme() to fit a logistic mixed effect model on our data.
The outcome variable is binary.
I got the error when I wanted to add a group factor to my model.
My initial model is as below:
model.a <- nlme(response~ 1/(1 + exp( -intercept- u0 - slope*TIME -
u1*TIME)),
+ fixed=intercept+slope~1, random= u0+u1~1
|studentID,
2006 Jan 04
4
HOWTO: Render partial in div
Hey-
I''m using ROR 1.0 and script.aculo.us 1.5.1. I''ve been trying
unsuccessfully to render a partial in a DIV, but can''t seem to get the
right combination of stuff to make it work. There seems to be a few
different ways of going about it. Right now I can render a partial.
What do I need to to render the partial in a div? Here is what it
looks like so far:
#
2008 Jun 26
2
stuck on making a line graph across time, with 4 categories
I can't seem to find just what I'm looking for in R help, Everitt and
Hothorn HSAUR, Murrell's book, or the R graphics gallery at
http://addictedtor.free.fr/graphiques/. Probably not looking
efficiently, but anyway,
If my data look like this:
> head(data)
cat startyear studentid
1 other 2001 12
2 UHS 2001 17
3 Lourdes 2001 10
4
2011 Jun 01
1
How to write random effect in MCMCglmm
Hi All,
The data set that I have is a cluster data, and I want to run a HLM mixed
model with multi-level response. Here is my data set:
response:
- Level (num: 1, 2, 3, 4, 5 - 5 levels)
Covariates:
- Type (Factor: A, B, C - 3 levels)
- yr (num: 2006, 2007, ...)
- Male (num: 0=not Male, 1=Male - 2 levels)
- Ethnicity (Factor: A, B, H, ..., - 7 levels)
- ELL (num: 0, 1, - 2
2009 Nov 12
1
Transforming a dataframe into a response/predictor matrix
I currently have a data frame whose rows correspond to each student and whose columns are different variables for the student, as shown below:
Lastname Firstname CATALOG_NBR Email StudentID EMPLID Start
1 alastname afirstname 1213 *@uark.edu 10295236 # 12/2/2008
2 anotherlastname anotherfirstname 1213 **@uark.edu ## 10295236 9/3/2008
Xattempts Q1
2010 Aug 22
1
[LLVMdev] Request information about LLVM for research
Dear Sir,
As per request below, I want to use your LLVM project in my thesis and I
have no idea where to start and I couldn't find any information about how to
build my test programs with your infrastructure and get my required
information.
Is your tool is a testing tool? Can it accept program and test case as input
and output like the input test case is cover which branch and which
2011 May 24
4
Rails hates my recursive function
I''m trying to create a function that will take input in the form "a12345678"
and output text in the form "a12-34-5678" if and only if the input text is *
not* in the form "adam smith" The goal is to allow my users to enter either
names separated by a space, or the student id number into a single search
field and have the results be returned based on the
2011 Feb 07
2
Using Aggregate for Date
Hi,
I am trying to find the min of day for each student in each year.
Here is the dataset:
date studentid year
1/1/05 6:07 AM 236 20082009
3/27/09 9:45 AM 236 20082009
4/29/09 8:44 AM 236 20082009
3/27/09 11:36 AM 310 20082009
4/1/09 10:43 AM 310 20082009
10/15/09 8:54 AM 310
2005 Mar 14
1
htb.init issues
Hi!
Here''s what I want:
root class 0010
premium parent class 1000
premium child classes 1xyz
best-effort parent class 2000
best-effort child classes 2xyz
default class 3000
Here''s how I do it:
eth1:
DEFAULT=3000
eth1-0010.root:
RATE=100Mbit
LEAF=sfq
eth1-0010:1000.premium
CEIL=352Kbit
RATE=352Kbit
PRIO=2
LEAF=sfq
eth1-0010:1000:1xyx.child1
CEIL=32Kbit
RATE=8Kbit
2005 Mar 23
5
tc + zebra/quagga
I have some problem with traffic shaping on debian testing. I actually posted
a full config on the list a while ago but didn''t get any answers.
The problem is that traffic doesn''t get into the user classes (~150) when I
associate a class with a qdisc. I tried sfq, fifo but none works. If I dont''t
associate a qdisc with a class classification occurs well.
2004 Sep 12
1
Discrepency between R and MlwiN
When playing around fitting unconditional growth models using R and MlwiN today, I produced two different sets of estimates that I can't reconcile and wondered if anyone here has an idea:
The data is two-level repeated measures data with measures nested within child. There are two measures per child. I've fit an unconditional growth model as in Singer and Willet (2003) that allows for
2005 Oct 05
0
has_and_belongs_to_many on legacy DB
I am working with mapping ActiveRecord onto a legacy database. All is going
well (using set_table_name, set_primary_key, etc), but I can''t get my
many<=>many relationships to work.
My contrived example of the situation:
Student has_and_belongs_to_many Teachers. This is mapped via table
student2teacher where the foreign keys are studentId and teacherId. The
primary key in Student
2010 Oct 13
2
LME with 2 factors with 3 levels each
Hello. I am new to R and new to linear mixed effects modeling. I am trying to model some data which has two factors. Each factor has three levels rather than continuous data. Specifically, we measured speech at Test 1, Test 2 and Test 3. We also had three groups of subjects: RepTP, RepNTP and NoRepNTP.
I am having a really hard time interpreting this data since all the examples I have seen
2010 Aug 23
2
lmer() causes segfault
Hello lmer() - users,
A call to the lmer() function causes my installation of R (2.11.1 on
Mac OS X 10.5.8) to crash and I am trying to figure out the problem.
I have a data set with longitudinal data of four subsequent
performance measures of 1133 individuals nested in 88 groups. The data
is in long format. I hypothesize a performance increase for each
individual over time and intend to
2011 Jan 27
4
HLM Model
Hi
I am trying to convert SAS codes to R, but some of the result are quite
different from SAS.
When I ran proc mixed, I have an option ddfm=bw followed by the model. How
can I show this method in R?(I am thinking that this maybe the reason that I
can't get the similar results)
below is my SAS codes:
proc mixed data=test covtest empirical;
class pair grade team school;
model score = trt