mercredi 6 juillet 2016

Ordering algorithm (values per week) in R [on hold]

I have to solve a problem which team is training for a period of time using Hadoop and the R-programming language.

Currently I'm fetching the data using the following (hive) query: http://pastebin.com/qhvkAPBU

The following (hive) query is giving me the following results: http://pastebin.com/P71h2X0C (export as csv)

My current R-code: http://pastebin.com/vb4zV0Lg

How can i fill the "team1" and "team2" vectors based on the weeks (same amount of values) to generate a nice plot.

Y-axis: Average heartbeat
X-axis: Week number
Lines: Team 1 and Team 2

Aucun commentaire:

Enregistrer un commentaire