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
is different vehicle to vehicle.
Thanks,
Umair Durrani
Master's candidate
Civil and Environmental Engineering
University of Windsor
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https
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
To: umairdurr...@outlook.com
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 =
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
Umair Durrani
email: umairdurr
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,
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: umairdurr...@outlook.com
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.org
CC: umairdurr
worked but I could not find the proportions by using the code below:by (cars,
INDICES=cars$'Vehicle Length', FUN=table(class$'Vehicle width'))R gives an
error stating that it could not find 'FUN'. Please help me in finding the
proportions of each model within all classes of vehicles.
Umair
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 one specific column
/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:
Would anyone recommend R
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-help@r
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
[[alternative HTML version deleted
13 matches
Mail list logo