similar to: Indexing issue

Displaying 20 results from an estimated 300 matches similar to: "Indexing issue"

2006 Aug 09
2
Speeding indexing and sub-sectioning of 3d array
Hi, I am having a problem with a very slow indexing and sub-sectioning of a 3d array: > dim(arr) [1] 245 175 150 For each point in the array, I am trying to calculate the mean of the values in its surrounding: mean( arr[ (i - radius):(i + radius), (j - radius):(j + radius), (k - radius):(k + radius)] ) Putting that code in 3
2008 Mar 07
5
Puzzling coefficients for linear fitting to polynom
Hi, I can not comprehend the linear fitting results of polynoms. For example, given the following data (representing y = x^2): > x <- 1:3 > y <- c(1, 4, 9) performing a linear fit > f <- lm(y ~ poly(x, 2)) gives weird coefficients: > coefficients(f) (Intercept) poly(x, 2)1 poly(x, 2)2 4.6666667 5.6568542 0.8164966 However the fitted() result makes sense: >
2007 Nov 10
5
client hangs on pxelinux
Hi, my client pc hangs on pxelinux before starting to fetch the linux kernel. It hangs after printing the ip information row. No traffic is observed at this point on the network. The pxelinux is transferred to the client through a tftp server and with no problems. What options do I have to proceed from this point and try to find out where the problem is? Thanks, Firas. -- Firas Swidan, PhD
2008 Jul 23
3
Quantitative analysis of non-standard scatter plots.
Hi, I am having difficulties in finding ways to analyse scatter plots and quantitatively differentiate between them. Since this is best demonstrated by a figure, I have attached one with 4 subfigures (a)-(d). Qualitatively (and I hope you would agree with me), sub-figures (a), (b), and (d) seem to represent uniform 2d scatters. It is hard for me to quantify it, but it seems as if the envelopes
2005 Feb 25
3
Loops and dataframes
Hi, I am experiencing a long delay when using dataframes inside loops and was wordering if this is a bug or not. Example code: > st <- rep(1,100000) > ed <- rep(2,100000) > for(i in 1:length(st)) st[i] <- ed[i] # works fine > df <- data.frame(start=st,end=ed) > for(i in 1:dim(df)[1]) df[i,1] <- df[i,2] #takes for ever R: R 2.0.0 (2004-10-04) OS: Linux, Fedora Core 2
2007 Nov 14
2
PXE in wonderland
Hi, I have collected a bunch of old PII PCs that I am trying to PXE boot. There NICs are old and so I use etherboot floppy to emulate a native PXE boot. I have configured tftp, dhcpd, pxelinux, and all the other stuff. Everything works fine till pxelinux start booting. Then it stucks after printing the IP row. --------------- pxelinux output ----------------------- PXELINUX 3.10 2005-08-24
2005 Apr 19
2
Printing a single "\" character
Hi, I have a small R question: how to print a single "\" character? I have the following results: > print("\") does not work > print("\\") [1] "\\" I need to make the following substitution as well, but it does not work either: > sub("_","\_","g_g") [1] "g_g" Thanks in advance, Firas.
2005 Apr 14
2
Printing integers in R "as is"
Hi, I am using the following command to print to a file (I omitted the file details): cat( paste( paste(orientation, start, end, names,"\n"), paste(start, end, "exon\n"), sep="")) where "orientation" and "names" are character vectors and "start" and "end" are integer vectors. The problem is that R coerce the integer vectors
2006 Apr 27
1
R interface to ImageMagick
Hi, I was wondering if anyone is aware of an R interface to ImageMagick (www.imagemagick.org)? Since R does not support a lot of image processing functions, having such an interface could be very useful. Alternatively, ImageMagick has a couple of different interfaces (including to C and C++). I was wondering if one can use these to call ImageMagick functions from R. I am posting a similar
2008 Aug 13
1
The standard deviation of measurement 1 with respect to measurement 2
Hi, I have two (different types of) measurements, say X and Y, resulting from the same set of experiments. So X and Y are paired: (x_1, y_1), (x_2, y_2), ... I am trying to calculate the standard deviation of Y with respect to X. In other words, in terms of the scatter plot of X and Y, I would like to divide it into bins along the X-axis and for each bin calculate the standard deviation along
2012 Feb 29
3
Modifying a FACT Value In a Manifest
In my network every subnets default gateway is X.X.X.1. That router gateway is always running ntpd which I want to give be default as the ntp server in every hosts ntp.conf. Since there is no official "default gateway" fact yet, what I want to be able to do in my manifest is take the $ipaddress fact and turn it into the gateway for that subnet. For example... IP = 10.1.1.12 GW =
2010 Oct 18
1
questions on unstack()
Folks, I have the following dataframe: > x <- structure(list(name = c("EU B", "EU B", "EU B", "EU B", "EU B", "EU B", "AU A", "AU A", "AU A", "AU A", "AU A", "AU A"), date = c("2010-10-11", "2010-10-12", "2010-10-13",
2012 Mar 12
10
Use onlyif in EXEC
Hi guys! I need configure one command exec with onlyif parameter. I want test file size exist or no. Ho i do this? Tks in advanced. Douglas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to
2002 Jan 25
1
new member
hi, i am new member. where can i found archive of this list? i need example configuration file? Can anybody send to me? thanks to everybody, especially to H. Peter Anvin :wq ------------------------- bim.NET Internet Services http://www.bim.net.tr/
2010 Mar 16
2
Help running a Fortran subroutine from R
useR's, I need help getting a Fortran DLL successfully returning the correct output. The attached fortran source code (filter2d.f) and DLL (filter2d.dll) are attached. Also, I attached a text file for which I want to apply the filter to (time702.txt). Here is what I am doing... > dyn.load("C:/f/NEW/filter2d.dll") > is.loaded("filter2d") [1] TRUE Then I pass the
2005 Apr 29
2
Subarrays
Define an array > v<-1:256 > dim(v)<-rep(4,4) Subarrays can be obtained as follows: > v[3,2,,2] [1] 71 87 103 119 > v[3,,,2] [,1] [,2] [,3] [,4] [1,] 67 83 99 115 [2,] 71 87 103 119 [3,] 75 91 107 123 [4,] 79 95 111 127 In the general case this procedure is very tedious. Given an array A, dim(A)=(dim_1,dim_2,...,dim_d) and two vectors
2006 Oct 19
2
arraytake for extracting subarrays from multidimensional arrays
Hi, I recently encountered a problem with array subsetting and came up with a fix. Given an array of arbitrary dimensions, in which the number of dimensions is only known at runtime, I wanted to extract a subarray. The main issue with doing this is that in order to extract a subarray from an array of (say) 4 dimensions you usually specify something like this a.subarray <- a[,c(4,2),1:5,]
2005 Sep 19
5
Horrible Linux/Samba vs Windows political battle - can you help?
Greetings, I am currently the IT Manager for a 30-person architectural firm. About 5 months ago we hired a new employee. He is quite good at what he does. He is also extremely opinionated, particularly when it comes to computer software, including server software. I'm running the office server functions on RedHat, Fedora and Trustix servers. He has managed to convince my boss that there
2010 Mar 18
2
how to take multiple subsets from a matrix
useR's I have a matrix from which I want to take multiple subsets from, according to a particular scheme I will now describe. The matrix below (mat) is 5x5, and I want to take 9 subsets of it, each of dimension 3x3. The best way to explain what the result should look like is with the following: > dat <- c(3,6,1,9,12,9,2,10,6,5,3,13,1,4,8,9,4,6,10,11,2,7,3,5,10) > miss <-
2018 Feb 27
1
Help
Dear I hope you are wery well when read this e-mail.My name is Firas ALSHAWY and I am a Phd student in the high Institute of marine research - tishreen university- Syria I would like to want some help my in my research, I have data ( length - weight - gonad weight - fishing mortality - natural mortality - the number of fish-temperature of water, maximum age ) , I would like to use the package (