[R] Simple plot help

2012-11-08 Thread dolar
Hi there I'm trying to figure out how to make this graph so there isn't a gap between 0 and the line I want my plot to be against the edge of the plot border I'm trying to play around with the Par settings but can't work it out I've dr

[R] simple data manipulation question

2009-12-09 Thread dolar
Hi there I have a dataframe of a whole lot of variables lets say, one of my variables is gender how do I simply get an average of all other variables by gender? -- View this message in context: http://n4.nabble.com/simple-data-manipulation-question-tp956600p956600.html Sent from the R help mai

[R] Help with Nested loop - very slow, can I use an apply?

2009-12-07 Thread dolar
Hi there I have two tables, with longitudinal and latitudinal coordinates. what I want is a cross table between each coordinate, to find the distance between each building and different landmarks I currently have this nested loop which is fine for when i have 10 stores of interest, against 200

[R] Avoiding loops

2009-09-01 Thread dolar
Would like some tips on how to avoid loops as I know they are slow in R i've got a data frame : a b c 1 5 2 4 6 9 5 2 3 8 3 2 What i'd like is to sum for each value of a, the sum of b and the sum of c where a equal to or less than (with a distance of 5) i.e. for row three we have a=