search for: alldat

Displaying 9 results from an estimated 9 matches for "alldat".

Did you mean: alldata
2011 May 29
1
Oddity: I seem to have a variable in a dataframe that doesn't show in colnames() - can anyone advise?
I may be being dopey, I surely am, but I'm baffled by this. I've been working, on and off for a few days in R version 2.13.0 (2011-04-13) i386-pc-mingw32/i386 (32-bit) working it through ESS. I've got a dataframe created a couple of days back, during the session: > dim(AllDat) [1] 27270 94 I came back this morning and misremembered my variables and thought I had a variable AllDat$PHQ and started using it and everything seemed fine until I realised that I shouldn't have it (!) and that the variable I was thinking of is AllDat$PHQ9 and that's there: > colna...
2011 Sep 13
1
Deleting Rows based on Factor and Time Period
Hi All! I have been messing around with this problem for about a week but to no avail! The following data has been cut down in order to make my question reproducible. The alldat data frame includes 2 columns: 1 date column and 1 factor column (equity names)). mydate<-as.Date(c("2001-07-02","2001-07-02","2001-07-03","2001-07-03","2001-07-05","2001-07-05","2001-07-10","2001-07-13","2010-...
2011 Dec 22
1
ff object in lapply function
Hello. I'm using as.ffdf(mydataframe) to create ffdf objects inside an lapply loop and returning that. I then use crbind to combine the lapply results into allData. So...simplified flow looks like this. res <- lapply(1:nchunks, function(n) { blah blah with nth chunk mydataframe <- data.frame(blah blah) dat <- as.ffdf(mydataframe) return(dat) }) allDat <- do.cal...
2004 Jun 29
2
Several PCA questions...
Hi, I am doing PCA on several columns of data in a data.frame. I am interested in particular rows of data which may have a particular combination of 'types' of column values (without any pre-conception of what they may be). I do the following... # My data table. allDat <- read.table("big_select_thresh_5", header=1) # Where some rows look like this... # PDB SUNID1 SUNID2 AA CH IPCA PCA IBB BB # 3sdh 14984 14985 6 10 24 24 93 116 # 3hbi 14986 14987 6 10 20 22 94...
2006 Aug 17
3
Use collection_select
I use the following code in my view: <%= collection_select(''datedata'', ''date'', @allDate, :id, :date) %> It''s show me the date of all entries in the database (Dropdown menu). Additional, I wrote a helper method "showDate" in the application_helper.rb! How can I use this method in the collection_select for every date entry? thanks for your anwser! -- Posted...
2012 Jul 19
1
Change log(J) to log(J+1) to stop log(0) from occurring in harModel
...irst model type: traditional HAR-RV: if( type == "HARRV" ){ if(!is.null(transform)){ y = Ftransform(y); x1 = Ftransform(x1) } x1 = cbind(x1,rmin); model = estimhar(y=y,x=x1); model$transform = transform; model$h = h; model$type = "HARRV"; model$dates = alldates[(maxp+h):n]; class(model) = c("harModel","lm"); return( model ) } #End HAR-RV if cond if( type == "HARRVJ" ){ J = J[(maxp:(n-h)),]; x = cbind(x1,J); # bind jumps to RV data if(!is.null(transform)){ y = Ftransform(y);...
2011 Jul 15
1
combining elements in a data frame
...for each word. The second is a tabulation of each unique word and other information such as the amount and of responses for each word. I need to determine the mean RT for each word and add that as a column in the second data frame. Any help would be appreciated Cheers Lee Data frame 1 > head(alldat) s expt session cycle trial left.right freq concr word rt resp Response correct corrResp 121 1a a 1 C1 1 1 lf hc pianist 1529 old hi FALSE new 122 1a a 1 C1 2 1 hf hc sweat 1518 new hi TRUE new 123...
2012 Jul 19
1
Switching log(J) to log(J+1) to avoid log(0) in HAR-RVJ model
...xp:(n-h)),]; *x = cbind(x1,J);* # bind jumps to RV data if(!is.null(transform)){ y = Ftransform(y); x = Ftransform(x); } x = cbind(x,rmin); model = estimhar(y=y,x=x); model$transform = transform; model$h = h; model$type = "HARRVJ"; model$dates = alldates[(maxp+h):n]; class(model) = c("harModel","lm"); return( model ) }#End HAR-RV-J if cond to if( type == "HARRVJ" ){ J = J[(maxp:(n-h)),]; *x = cbind(x1,J+1); * # bind jumps to RV data if(!is.null(transform)){ y = Ftra...
2010 Dec 29
1
filling up holes
I have a data frame with three columns client ID | date | value For each cilent ID I want to determine Min date and Max date and for any dates in between that are missing I want to insert a row Client ID | date| NA Any help would be appreciated.