Displaying 5 results from an estimated 5 matches for "act2".
Did you mean:
act
2010 Apr 23
3
Event History Data Recoding
Dear R list,
I have an event history data set that is structured like this:
Legislative act Discussion Agreement Time Event
Act1 2006-05-30 2006-06-19 20 1
Act2 2004-03-01 2004-06-14 105 1
.
.
.
I have information on the meetings in the legislature between adoption
periods in a separate variable (the start and stop dates are included):
Act1 meeting:2006-05-30, 2006-06-19.
Act2 meeting: 2004-03-22, 2004-04-2...
2012 Nov 22
1
Partial dependence plot in randomForest package (all flat responses)
Hi,
I'm trying to make a partial plot with package randomForest in R. After I
perform my random forest object I type
partialPlot(data.rforest, pred.data=act2, x.var=centroid, "C")
where data.rforest is my randomforest object, act2 is the original dataset,
centroid is one of the predictor and C is one of the classes in my response
variable.
Whatever predictor or response class I try I always get a plot with a
straight line (a completely flat...
2009 Mar 12
2
Removing
Hi All,
> act_2
Date Dtime Hour Min Second Rep
51 2006-02-22 14:52:18 14 52 18 useractivity_act
52 2006-02-22 14:52:18 14 52 18 4
55 2006-02-22 14:52:49 14 52 49 4
57 2006-02-22 14:52:51 14 52 51 4
58 2006-02-22 14:52:52 14 52 52 3
60 2006-02-22 14:54:42 14 54
2013 Jun 10
1
modify and append new rows to a data.frame using ddply
...r)
? xandaynight <- ddply( xan, .(Ring), function(df1){
? # index of day/night changes
? ind <- c( FALSE, diff(df$dif) == 1 )
? add <- df1[ind,]
? add$timepos <- add$dusk
? # rearrangement
? df1 <- rbind( df1, add )
? df1 <- df1[order(df1$timepos),]
? # recalculation of act
? df1$act2 <- c( diff( as.numeric(df1$timepos) ), NA )
? df1} )
This code produces an error message:
"Error en diff(df$dif): error in evaluating the argument 'x' in selecting a method for function 'diff': Error en df$dif: object of type 'closure' is not a subset"
Thank y...
2013 Jun 08
0
modify and append new rows in a dataframe
...dex of daytime/night time changes
? ind <- c( FALSE,?diff( as.POSIXlt( df1$timepos, df1$dusk ) ) > 0?)
? add <- df1[ind,]
? add$timepos <- add$timepos - add$dusk
? # append and arrange rows
? df1 <- rbind( df1, add )
? df1 <- df1[order(df1$timepos),]
? # recalculation of act
? df1$act2 <- c( diff( as.numeric(df1$timepos) ), NA )
? df1} )
I get the following error message:
"Error in diff(as.POSIXlt(df1$timepos, df1$dusk)): error in evaluating the argument 'x' in selecting a method for function 'diff': Error in as.POSIXlt.POSIXct?(df1$timepos, df1$dusk): ?...