Displaying 5 results from an estimated 5 matches for "nindex".
Did you mean:
index
2008 Sep 10
1
Return dimension index from array with n-dimensions
...if such a function already exists, and if not,
please feel free to comment the function I wrote.
Hopefully resulting in the integration of such a function in a
R-packages.
Kind regards,
Niels Hintzen
#Example:
a <- array(100:1,dim=c(5,4,5))
which(a == 7)
nindex(a,7)
nindex<-function(array.,index.){
dims <- dim(array.)
ldim <- length(dim(array.))
dimmy <- matrix(NA,ncol=length(index.),nrow=ldim)
remain <- matrix(NA,ncol=length(index.),nrow=ldim)
remain[1,] <- index...
2012 Dec 13
3
Repeat elements of matrix based on vector counts
I have two dataframes (df) that share a column header ("plot.id"). In the
1st df, "plot.id" records are repeated a variable number of times based on
the number of trees monitored within each plot. The 2nd df only has a
single record for each "plot.id", and contains a variable named "load" that
is collected at the plot-level and is only listed once per plot
1998 Sep 04
0
Linux SMB Mount utils patch
...am);
+
+/* fs/smbfs/cache.c */
+
+/*
+ * The cache index describes the pages mapped starting
+ * at offset PAGE_SIZE. We keep only a minimal amount
+ * of information here.
+ */
+struct cache_index {
+ unsigned short num_entries;
+ unsigned short space;
+ struct cache_block * block;
+};
+
+#define NINDEX (PAGE_SIZE-64)/sizeof(struct cache_index)
+/*
+ * The cache head is mapped as the page at offset 0.
+ */
+struct cache_head {
+ int valid;
+ int status; /* error code or 0 */
+ int entries; /* total entries */
+ int pages; /* number of data pages */
+ int idx; /* index of current data page */
+...
2012 Nov 15
1
bug with mapply() on an S4 object
Hi,
Starting with ordinary vectors, so we know what to expect:
> mapply(function(x, y) {x * y}, 101:106, rep(1:3, 2))
[1] 101 204 309 104 210 318
> mapply(function(x, y) {x * y}, 101:106, 1:3)
[1] 101 204 309 104 210 318
Now with an S4 object:
setClass("A", representation(aa="integer"))
a <- new("A", aa=101:106)
> length(a)
2010 Jun 18
0
Wine release 1.2-rc4
...15012 Thunder:crashes when click the resume(??) button to continue the task.Also EXCEPTION_ACCESS_VIOLATION error.
15099 Bionic Commando Rearmed wont run
15284 Direct3D output is at half the frame rate of OpenGL output in WinUAE
15452 Freewire aborts due to incorrect handling of COLORRES nIndex in winex11's GetDeviceCaps()
15819 BeyondCompare hangs when restoring window or changing desktops
15884 Tooltips displayed in mIRC when windows are minimized
15941 Mount & Blade crashes with 'Unable to create render target texture'
16380 Program manager window appears un...