[R] converting time data in R

2014-02-18 Thread R Novice
Respected R veterans and experts, I have a column representing time in a data frame in R. when I call the str() function on the column it says something like this >str(df2$Time) Factor w/ 1441 levels "","00:01","00:02","00:03",..: 1086 1096 and so on The thing is I want to conver this c

[R] plotting decision tree from Mapreduce output

2014-02-18 Thread R Novice
Respect R veterans, I am just starting with R and I am having a difficulty in plotting a rule based decision tree in R. The problem is, I already have an output from hadoop MapReduce and it is in the form of a simple text file. Now I want to use this output from Hadoop and represent it graphi

[R] Help with loops and how R stores data

2008-02-03 Thread R-novice
I am trying to make an array c(3,8) that contains the averages of what is in another array c(9,8). I want to average rows 1:3, 4:6, 7:9 and have a loop replace the generic 1:24 values in my array with the average of the three rows. The problem I am having is that R only replaces the last value