Umut Toprak
2013-Oct-17 12:59 UTC
[R] representing points in 3D space with trajectories over time
Dear all, I have a problem where I must represent points with XYZ coordinates changing over time. I will do a number of operations on this data such as calculating the YZ-projection distance of the points to the origin over time, the frequency spectrum of the X-T data etc. I am trying to find a good way of representing this data with an appropriate data structure. It appears like higher-dimensional data frames are not allowed and I do not know if I should use a list of data frames or if there is a better solution, possibly as part of an external package. Thank you for your time Umut Toprak [[alternative HTML version deleted]]
Greg Snow
2013-Oct-17 17:46 UTC
[R] representing points in 3D space with trajectories over time
If all your data is numeric then you can use an array instead of a data frame and arrays can easily be 3, 4, or higher dimensional. Or you can use a data frame with a column each for x, y, z, and time; with possible other columns representing groups or other attributes, essentially a 3 dimensional data frame with the 3rd dimension being stacked rather than projecting out. On Thu, Oct 17, 2013 at 6:59 AM, Umut Toprak <umut.toprak@unige.ch> wrote:> Dear all, > > I have a problem where I must represent points with XYZ coordinates > changing over time. I will do a number of operations on this data such as > calculating the YZ-projection distance of the points to the origin over > time, the frequency spectrum of the X-T data etc. I am trying to find a > good way of representing this data with an appropriate data structure. > > It appears like higher-dimensional data frames are not allowed and I do not > know if I should use a list of data frames or if there is a better > solution, possibly as part of an external package. > > Thank you for your time > Umut Toprak > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Gregory (Greg) L. Snow Ph.D. 538280@gmail.com [[alternative HTML version deleted]]