search for: rchid

Displaying 3 results from an estimated 3 matches for "rchid".

Did you mean: rachid
2012 Oct 24
1
randomly select another observation with same grouping factor and year value, do for every record in dataframe
...record of a data frame, find the value in the "HUC" column, then randomly select another observation from the dataframe with the same value in "HUC" column, as well as the same value in "Yr" column as the first observation. I want the function to produce a list of the RchID of the first observation, the RchID of the second randomly chosen observation, and several other characteristics of the randomly chosen observation. Below is the code I have written, but it doesn't work. Thanks for any help. Christy ################test roads=read.csv("streamland23.csv...
2012 Oct 30
2
help with for loop: new column giving count of observation for each SITEID
Hello, I think this is easy, but I can't seem to find a good way to do this in the R help. I have a list of sites, with multiple years of data for each site id. I want to create a new column that gives a number describing whether it is the 1st year ("1" ) the data was collected for the site, the second year ("2"), etc. I have different years for each siteid, but I don't
2011 Dec 12
3
windrose color ramp issue
...t pedalcolors = c("darkblue","blue","royalblue","darkturquoise","forestgreen","green","yellowgreen","yellow4","yellow","orange","red","darkred","violetred","mediumorchid","purple") #or 2) Making the pedal colors dynamic based on the increments and the max wind speed. incrspeeds = 2 # fills out the increments argument breaks=seq(0,round(maxwind),incrspeeds) # maxwind is the maximum wind speed numcolors=length(breaks) if(numcolors>length(pedalco...