search for: temp_y

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

Did you mean: temp1y
2011 Jan 29
1
environment question: changing variables from a formula through model.frame?
...changing variables that are found through using model.frame on a formula inside a function. I wonder if it's a "bug" or a "feature". And in either case, how it might be managed. Here is a simple example: # let's say we have an x and y variables: temp_x <- rep(1,5) temp_y <- c(1:5) # we now create a function that will take a formula of y~x and will (try and *fail* to) change "y" (only) inside the environment of this function: foo1 <- function(formu) { print("Before changing the 'y' variable in the formula") print(model.frame(formu))...
2011 Jan 26
1
boxplot - code for labeling outliers - any suggestions for improvements?
...xdata$out, x = boxdata$group) for(i in seq_len(dim(boxdata_outlier_df)[1])) { ss <- (ourlier_df[,x_name] %in% boxdata_outlier_df[i,]$group) & (ourlier_df[,y_name] %in% boxdata_outlier_df[i,]$y) current_label <- ourlier_df[ss,label_name] temp_x <- boxdata_outlier_df[i,"x"] temp_y <- boxdata_outlier_df[i,"y"] text(temp_x, temp_y, current_label,pos=4) } list(boxdata_outlier_df = boxdata_outlier_df, ourlier_df=ourlier_df) } # example: boxplot(decrease ~ treatment, data = OrchardSprays, log = "y", col = "bisque") boxplot.add.outlier.text(Orch...
2012 Dec 28
3
Merging data tables
Hi all, I am trying to merge several data sets and end up with a long data format by date & time so I can run correlations and plots. I am using Deducer as an R GUI but can just use the R console if easier. The data sets are weather with wind speed, relative humidity and temperatures by date and minute and bat activity with date, time, label, and an activity index number. The bat