search for: ntile

Displaying 5 results from an estimated 5 matches for "ntile".

Did you mean: tile
2019 Aug 08
3
Producing different text formats in R
...orks just fine. However, now I am trying to replace my C++ code quadscheme.cpp by a R function. The four columns (id,x,y,z) are produced in a matrix or Data Frame and then saved in a file myfile_r.txt using write.table(). For example using the following function: quadscheme <- function(window, ntile) { # Creates a grid of points in a 3D orthohedron. # First point lies at the (mix,miny,miz) corner of the volume and the last one at (maxx,maxy,maxz) # window: vector. Contains the minimum and maximum values of a 3D orthohedron # window <- c(minx, maxx, miny, maxy, minz, maxz) #...
2019 Aug 08
0
Producing different text formats in R
...t; However, now I am trying to replace my C++ code quadscheme.cpp by a R function. The four columns (id,x,y,z) are produced in a matrix or Data Frame and then saved in a file myfile_r.txt using write.table(). For example using the following function: Llu?s> quadscheme <- function(window, ntile) { Llu?s> # Creates a grid of points in a 3D orthohedron. Llu?s> # First point lies at the (mix,miny,miz) corner of the volume and the last one at (maxx,maxy,maxz) Llu?s> # window: vector. Contains the minimum and maximum values of a 3D orthohedron Llu?s> #...
2005 Jul 15
3
Dividing a vector into ntiles
R 2.1.1 Win 2k Would someone suggest a method (or methods) that can be used to determine ntile cutpoints of a vector, i.e. to determine values that can be used to divide a vector into thirds such as 0-33 centile, 34-66 centile, 67-100 centile. If for example I had a vector: 1,2,3,4,5,6,7,8,9 and wanted to divide the vector into thirds I would have cut-points of 3, and 6. Thanks, John John...
2010 Jun 16
3
Decile
Hello comunity, I'm trying to find a similar function as decile of SPSS, NTILES (10) some of you know about that, I will appreciate your help in advance. In SPSS VARIABLES=Sales (A) /NTILES (10) /PRINT=NO for example if I have Next data input: case IdCust Sales Profit 1 265 140.81 314.31 2 266 1778.96 408.32 3 267 2663.66 820.85 4 268 2994.14 913.73 5 269 2185.58 686.64...
2009 Oct 28
1
output of "for"
...ot;|". The number of input filenames changes (minimum 1, maximum n) wrkdr <- "H:\\akk_temp\\Modis\\MOD09" dates is a data.frame where each row is a date and each column is a Modis-image (the name of it) I did this as following: paste('INPUT_FILENAMES = ', for(g in 1:(ntiles-1)) {paste(wrkdr,'\\',dates[i,g+1],'|',sep='')} , for(g in ntiles){ paste(wrkdr,'\\',dates[i,g+1],sep='') } ,sep='') ....and this did work (in an other "wrkdr" and other "dates") but after changing, "for" gave no more...