[R] Smoothing Data-dplyr

2014-10-18 Thread umair durrani
Please note that I have already asked this question on stackoverflow.com but did not get a satisfactory answer. I have a data set containing velocities of 2169 vehicles recorded at intervals of 0.1 seconds. So, there are many rows for an individual vehicle. Here I am reproducing the data only f

[R] Extracting values from rows which meet a condition in R 3.0.2

2014-04-14 Thread umair durrani
t so not all vehicles had svel==0. The vehicles which did stop didn't do it at the same time. Also, the number of rows in which svel==0 is different vehicle to vehicle. Thanks, Umair Durrani Master's candidate Civil and Environmental Engineering University of Windsor

Re: [R] Detecting Vehicle locations using R

2014-02-21 Thread umair durrani
The problem is resolved already. Please don't include this question in future mailing list Umair Durrani email: umairdurr...@outlook.com > Subject: Re: [R] Detecting Vehicle locations using R > From: jdnew...@dcn.davis.ca.us > Date: Thu, 20 Feb 2014 20:06:28 -0800 &

[R] Detecting Vehicle locations using R

2014-02-20 Thread umair durrani
I have a data frame of vehicle trajectories. Here's a snapshot: >dput(head(df))structure(list(vehicle = c(2L, 2L, 2L, 2L, 2L, 2L), frame = >43:48, globalx = c(6451214.156, 6451216.824, 6451219.616, 6451222.548, >6451225.462, 6451228.376), class = c(2L, 2L, 2L, 2L, 2L, 2L), velocity =

[R] Corrected - R 3.0.2 How to Split-Apply-Combine using various Columns

2014-01-25 Thread umair durrani
Hello everyone,Here is the version using dput. I am sorry for the junk I posted before. I have a large vehicle trajectory data of which following is a small part: structure(list(vehicle = c(1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L,2L, 2L), frame = c(221L, 222L, 223L, 224L, 115L, 116L, 117L, 118L, 11

[R] R 3.0.2 How to Split-Apply-Combine using various Columns

2014-01-25 Thread umair durrani
al data I found 22 as min and 9233 as max frame number. > This makes 30 time slots as 22-322, 322-622, ..., 9022-9233. I need following > output: TimeSlot Total-Cars Total-Trucks Total-Motorcycles MeanVelocity-Cars MeanVelocity-Trucks MeanVelocity-Motorcycles22-322322-622...9022-9233

[R] R 3.0.2 How to Split-Apply-Combine using various Columns

2014-01-24 Thread umair durrani
I have tried many things and also used some suggestions from stackoverflow but still am unable to get output like this with input data. Please help. Umair Durrani email: umai

Re: [R] How to get the proportions of data with respect to two variables in R?

2013-12-01 Thread umair durrani
ycles VehicleLength VehicleWidth Proportion 10.0 3.0 1.0 Umair Durrani email: umairdurr...@outlook.com > Date: Sat, 30 Nov 2013 23:41:28 -0800 > From: smartpink...@yahoo.com > Subject: Re: [R] How to get the proportions of data with respect to two > variables in R? > To: r-help@r-project

[R] How to get the proportions of data with respect to two variables in R?

2013-11-30 Thread umair durrani
ind 'FUN'. Please help me in finding the proportions of each model within all classes of vehicles. Umair Durrani email: umairdurr...@outlook.com [[alternative HTML version deleted]] __ R-help@r

Re: [R] R for a stats intro for undergrads in the US?

2013-11-16 Thread umair durrani
/stats1 Hope this helps, Umair Durrani email: umairdurr...@outlook.com > Date: Sat, 16 Nov 2013 18:19:16 -0800 > From: spencer.gra...@prodsyse.com > To: R-help@r-project.org > Subject: [R] R for a stats intro for undergrads in the US? > > Hello, All: > > >Woul

Re: [R] Apply function to one specific column / Alternative to for loop

2013-11-16 Thread umair durrani
This might be of some use : http://nsaunders.wordpress.com/2010/08/20/a-brief-introduction-to-apply-in-r/ Umair Durrani email: umairdurr...@outlook.com > Date: Sat, 16 Nov 2013 07:30:29 -0800 > From: ron...@gmx.net > To: r-help@r-project.org > Subject: [R] Apply function to

[R] How to sum a function over a specific range in R?

2013-11-12 Thread umair durrani
edY'? This is actually a data smoothing problem but default smoothing algorithms in R are not suitable for my data and I have to use this custom formula. Thanks in advance. Umair Durrani [[alternative HTML version deleted]] __

[R] R 3.0.2 - How to create intervals and group another variable in those intervals?

2013-11-06 Thread umair durrani
t;, fixedBreaks = 4.5) : variable range greater than fixedBreaksEven after intervals are created, I need to group spacing and find the avg. for every interval. How can I do this? I have tried what I could, please help Umair Durrani email: umairdurr...@outlook.com