[R] Compare by row and insert previous row value (Or non Time Series Lag)

2012-04-02 Thread Krishnan Viswanathan
= TripEndTAZ. The sample input and output data are shown in the links above. I tried the suggestions shown here: Basic lag in R vector/dataframe<http://stackoverflow.com/questions/3558988/basic-lag-in-r-vector-dataframe> but have not had luck. TIA, Krishnan -- Krishnan Viswanathan 1101 High Mea

[R] Conditional recoding

2011-02-19 Thread Krishnan Viswanathan
# After Running summary on the variable (it seems to only take the last if condition) amodecat Min. :10 1st Qu.:10 Median :10 Mean :10 3rd Qu.:10 Max. :10 -- Krishnan Viswanathan 1101 High Meadow Dr Tallahassee FL 32311 [[alternative HTML version deleted]]

[R] Using Weights in R

2011-02-17 Thread Krishnan Viswanathan
; What or is there an equivalent in R? TIA, Krishnan -- Krishnan Viswanathan 1101 High Meadow Dr Tallahassee FL 32311 [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do