Re: [R] grouping question

2010-10-29 Thread will phillips
Hello Jorge, Thank you for the reply. I tried a few different things with if/else but couldn't get them to go. I really appreciate your feedback. I learned something new from this Will -- View this message in context: http://r.789695.n4.nabble.com/grouping-question-tp3019922p3019952.html Se

Re: [R] grouping question

2010-10-29 Thread will phillips
Hello Jim Wow. I tried cut but i see you have an interim step with labels a,b,c but levels night and day. i was really close to this. i have labels night,day,night and it wouldn't let me duplicate labels. I am very greatful for your input Will -- View this message in context: http://r.7896

[R] grouping question

2010-10-29 Thread will phillips
Hello I have what is probably a very simple grouping question however, given my limited exposure to R, I have not found a solution yet despite my research efforts and wild attempts at what I thought "might" produce some sort of result. I have a very simple list of integers that range between 1 a

Re: [R] convert wind direction from degrees to basic compass dir

2010-10-23 Thread will phillips
Hello Ted, Wow, that is some good incite and food for thought. A bit past my learning curve in statistics at this point but I will get there. Thank you for showing me another area to consider. I have not come across circular statistics yet. Will -- View this message in context: http://r.78

Re: [R] convert wind direction from degrees to basic compass directions

2010-10-23 Thread will phillips
Thank you David, I'll check that out too. Will -- View this message in context: http://r.789695.n4.nabble.com/convert-wind-direction-from-degrees-to-basic-compass-directions-tp3008773p3008807.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] convert wind direction from degrees to basic compass directions

2010-10-23 Thread will phillips
Hello Josh, Thank you for the tip on the cut function. I'm new to R and have not come across this one yet. I'll give it a go. Regarding the rationale for segmenting the wind direction, I have not come across any theory to drive this. My motivation is model fit. This wind direction variable re

[R] convert wind direction from degrees to basic compass directions

2010-10-23 Thread will phillips
Hello, I have a data set that includes a predictor variable "wind direction". This variable is in degrees with 0=North. I've put this predictor into a linear model and its coefficient is far from significant. I was thinking about converting this variable into 8 factors "north" "northwest" "wes

Re: [R] Change column of numbers in data frame to days

2010-10-23 Thread will phillips
Hello Uwe, Thank you very much! Works like a charm. I wouldn't have thought of that fix on my own. Will -- View this message in context: http://r.789695.n4.nabble.com/Change-column-of-numbers-in-data-frame-to-days-tp3008441p3008699.html Sent from the R help mailing list archive at Nabble.com

Re: [R] Change column of numbers in data frame to days

2010-10-23 Thread will phillips
Hello Dr. Pagel, Thank you very much for the input. It is "almost" working. It will indicate every day of the week except Sunday. Any multiple of 7 is giving . I'll tinker with it a bit. I really appreciate the direction you've provided. Will -- View this message in context: http://r.

[R] Change column of numbers in data frame to days

2010-10-23 Thread will phillips
Hello, I have seen a few posts about changing a vector of numbers to days of the week where the numbers are 1-7. I have a similar problem with a twist. I have a vector of numbers ranging form 20 to 500. The numbers represent days since a starting point. The list is not consecutive, some numbers