search for: temp_x

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

Did you mean: temp1x
2011 Jan 29
1
environment question: changing variables from a formula through model.frame?
...using it. It involves 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") pri...
2005 Nov 30
1
multinom crashes (when I do something stupid) (PR#8358)
...ccurred in Rgui.exe." This has happened on both my laptop and desktop (it took me a while to see my mistake!). It can be easily reproduced with made-up data, e.g. library(nnet) set.seed(1) # not really needed, but definitely crashes for this! temp_g <- as.factor(rep("level1",10)) temp_x <- rnorm(10) multinom(temp_g ~ temp_x) Cheers, Rob.
2011 Jan 26
1
boxplot - code for labeling outliers - any suggestions for improvements?
...t;- data.frame(group = boxdata_group_name, y = boxdata$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 =...