search for: rep_

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

Did you mean: rep
2011 Mar 11
3
Large dataset operations
Hello all, I'm new to R and trying to figure out how to perform calculations on a large dataset (300 000 datapoints). I have already made some code to do this but it is awfully slow. What I want to do is add a new column for each "rep_ " column where I have taken each value and divide it by the mean of all values where "PlateNo" is the same. My data is in the following format: > data PlateNo Well rep_1 rep_2 rep_3 1 A01 1312 963 1172 1 A02 10464 6715 5628 1 A03 3301 3257 3281 1 A...
2012 Apr 01
1
Selecting files with a particular string in filename
...t some files from this list of 70 files. The files to be selected do have a unique "pattern" in their file name. However, I cannot use list.files function because it looks for a specific path. Any help is appreciated. Thanks in advance. - Kumar for (i in 1:100) { name_rep = paste("rep_",i,"_",sep="") files <- list.files(path="C:\\Users\\Binn\\Desktop\\script_output", pattern= name_rep, full.names=TRUE ) natfiles <- list.files(path=files, pattern= "_natrain.csv", full.names=TRUE ) <OPERATIONS HERE> } -- Section of Integ...
2014 Mar 26
2
R-devel Digest, Vol 133, Issue 23
...takes a bit of effort to learn (and remember) its syntax. > This is a problem, since rep is one of the first functions many > beginners will come across. Of the three main uses of rep, two have > simpler alternatives. > > rep(x, times = ) has rep.int > rep(x, length.out = ) has rep_len > > I think that a rep_each function would be a worthy addition for the > third use case > > rep(x, each = ) > > (It might also be worth having rep_times as a synonym for rep.int.) I think this is exactly the wrong approach. Indeed, the aim should be to get rid of funct...