search for: xttabl

Displaying 5 results from an estimated 5 matches for "xttabl".

Did you mean: xttable
2008 Aug 14
2
Simple (?) subset problem
I can't figure out the syntax I need to get subset to work. I'm trying to split my dataframe into two parts. I'm sure this is a simple issue, but I'm stumped. I either get all or none of the original "rows". > XTTable <- xtabs( ~ direction_ , SurveyData) > XTTable direction_ EASTBOUND 345 WESTBOUND 307 > EBSurvey &lt...
2009 Feb 19
1
How do I get xtabs to show missing data?
...ataframe. How do I get them to list? I found references to na.action and na.pass, but I could not figure out how I could use them with xtabs to list the na as a value. I'm sure there's a simple syntax I need, but it's not obvious to me. > # Weighted Data > XTTable <- xtabs(wt_annual ~ time_strata + connector, LAWAData) > XTTable ## List connector time_strata OD Passenger Connector Morning Peak - 0550 to 0959 5605.140 1234.933...
2008 Aug 18
1
Survey Design / Rake questions
...gt; SurveyData$direction_ <- temp > #======================================================================= ======== > SurveyData$NumStn=abs(as.numeric(SurveyData$lineon)-as.numeric(SurveyDat a$lineoff)) > EBSurvey <- subset(SurveyData, direction_ == "EASTBOUND" ) > XTTable <- xtabs(~direction_ , EBSurvey) > XTTable direction_ EASTBOUND 345 > WBSurvey <- subset(SurveyData, direction_ == "WESTBOUND" ) > XTTable <- xtabs(~direction_ , WBSurvey) > XTTable direction_ WESTBOUND 307 > # > EBDesign <- svyde...
2009 May 26
3
Still can't find missing data
...a xtabs one way I have observations under "Connector" but against a different variable "Connector" shows all 0 values. What is wrong? I've looked into the na commands and the ?xtabs entry, but I haven't found anything that works. ######################### > > XTTable <- xtabs(wt_annual ~ time_strata + connector, LAWAData) > XTTable ## List connector time_strata OD Passenger Connector Morning Peak - 0550 to 0959 5605.140 1234.933 Late...
2009 Jun 01
1
installing sn package
...> Message-ID:     <8452CFD6AC58614FA9F87C8ADC2E418904CED8C739@exchange01.lacmta.net> Content-Type: text/plain; charset="us-ascii" I can't get the syntax that will allow me to show NA values (rows) in the xtabs. > # unfortunatly I don't see how to get that to run > XTTable <- xtabs(wt_annual ~  Mode_orig_only + connector, exclude=NULL, na.action(na.pass), LAWAData) Error in eval(expr, envir, enclos) : object "wt_annual" not found > XTTable <- xtabs(wt_annual ~  Mode_orig_only + connector, exclude=NULL, na.action(na.pass), drop.unused.levels = FALS...