search for: data_for_r

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

Did you mean: data_for_s
2008 Jun 13
1
Regex for Special Characters under Grep
Hi all, I am trying to capture lines of a file that DO NOT start with the following header: !, #, ^ But somehow my regex used under grep doesn't work. Please advice what's wrong with my code below. __BEGIN__ in_fname <- paste("mydata.txt,".soft",sep="") data_for_R <- paste("data_for_R/", args[3], ".softR", sep="") # my regex construction cat(temp[-grep("^[\^\!\#]",temp,perl=TRUE)], file=data_for_R, sep="\n") dat <- read.table(data_for_R) ___END__ - Gundala Viswanath Jakarta - Indonesia
2010 Apr 20
1
3D surface plot with wireframe or persp?
...################### mle_beta0=64.43707; mle_beta1=-24365.16; # generating for the requirement of "wireframe" data_for_c = runif(1000,30,85); # range is (30,50) data_for_s = sort(1/(273+data_for_c)); data_for_time = sort(runif(1000,0,100000)) # range is (0,100000) data_for_R = exp((-exp(mle_beta0+mle_beta1*data_for_s))*data_for_time) data_all = cbind(data_for_s,data_for_time,data_for_R) # function: plot_R_i_3d = f(data_for_time,data_for_s) plot_R_i_3d = function(data_for_time,data_for_s) { R_i = exp((-exp(mle_beta0+mle_beta1*data_for_s))*data_for_time); retur...
2010 Jan 21
2
Help with subset
...nt. The "x116" line has the merge field, in this case "Bases-K Ammonium Acetate-2008-116". This changes for each soil sample, and for each type of analysis. ## napt <- read.table(file = "C:/Documents and Settings/jfloren/My Documents/R_Statistics/NAPT/NAPT_09/CertIn2010/Data_for_R/readin_all_for_2010_cert.csv ", header = TRUE, sep = ",") attach(napt) x116 <- subset(napt, Analysis_Soil %in% c("Bases-K Ammonium Acetate-2008-116")) detach(napt) attach(x116) #### End of merge document section for selecting the subset ### Once I get the subset iso...