similar to: Appending elements to an array

Displaying 20 results from an estimated 8000 matches similar to: "Appending elements to an array"

2003 Jul 24
3
Plotting math functions
Hi all, I was wondering whether it is possible to plot math functions, for example sin, cos or a Gaussian type function, in R, and if so, how to do it. I have been searching through the archives and the R manual but had no luck in finding any hints on how to go about this. Any help is much appreciated! Thanks, Jonck
2003 Jun 12
3
Multiple imputation
Hi all, I'm currently working with a dataset that has quite a few missing values and after some investigation I figured that multiple imputation is probably the best solution to handle the missing data in my case. I found several references to functions in S-Plus that perform multiple imputation (NORM, CAT, MIX, PAN). Does R have corresponding functions? I searched the archives but was not
2003 Jun 17
2
Clustering quality measure
Hi all, I am running a series of experiments where after manipulating my data I run several clustering algorithms (agnes, diana and a clustering method of my own) on the data. I wanted to determine which clustering method did the best job, so therefore I had defined my own quality measure using two criteria: compactness of the data within the clusters themselves and the amount of seperation
2003 Jun 11
3
Multiple match function?
Hi all, I have (yet another) question about a function in R. What I would like to do is test for the presence of a certain value in a vector, and have the positions that this value is at returned to me. For example, let's say I have a vector: x <- c(1,1,2,2,3,3,4,4) Now I would like a function that would return positions 3 and 4 should I test for the value "2". Or 5 and 6
2003 Apr 16
1
Question on SOM and clustering
Hello everyone, I'm new to this list, so let me introduce myself: my name is Jonck van der Kogel and I am a graduate student at the Erasmus University of Rotterdam. I am currently working on my thesis which is on the use of artificial intelligence for large data-sets. To do an analysis of a certain data-set I want to use Kohonen's SOM algorithm. However, as I understand it, the SOM
2003 Jun 10
1
SOM random seed
Hi all, I have a question about the SOM routine. You can either supply the initial representatives for the lattice yourself or else they are chosen randomly from the dataset. Is it possible to pass the random-seed as an argument somehow, when choosing the random initialisation of the lattice? As it is now, each time I run a SOM on a dataset with the same settings the resulting SOM will still
2003 Jun 14
1
Missing data augmentation
Hi all, A short while ago I asked a question about multiple imputation and I got several helpful replies, thanks! I have untill now tried to use the packages mice and norm but both give me errors however. mice does not even run to start with and gives me the following error right away: iter imp variable 1 1 Liquidity.ratioError in chol((v + t(v))/2) : the leading minor of order 1 is not
2009 Jun 19
1
Shell Script: Simple array usage = bad substitution?
Hey Guys n Gals; I have some arrays that I can't seem to expand correctly (if that's the correct word?), imagine the following example: #!/bin/bash myArray=("First" "Second" "Third") First=("Monday" "Tuesdays" "Wednesday") Second=("One" "Two" "Three") Third=("A" "B"
2010 Oct 27
2
keep adding elements to the matrix
Hello everyone, I would like to create a "dynamic" array to keep storing number in it for (i in c(2:length(final))){ myarray <-final[i]-final[i-1] myarray2<-2*final[i] } At the end I would like to use myarray as the x values of an array and the myarray2 as the yvalues of the same array. I tried cbind but it didnot work. Could you please help me with that? Best
2008 Aug 07
2
Creating an array of lists
Hi, I want to store some number of outputs from running a bunch of analyses such as lm() into an array. I know how to do this with a one-dimensional array (vector) by creating myArray <- vector(mode='list', length=10) and storing each lm() result into a component of myArray. My question is, how can do this for a multiple dimensional array? It seems array() does not have such a
2012 May 30
3
Separate Array Variable Content
Hi, I am new in R, i have a matrix like this MyMatrix <- *ABC PQR XYZ* 10 20 30 40 50 60 70 80 90 And, i have an array containing some conditions like this, MyArray <- c("*ABC*>50","*PQR*<50","*ABC*<30 &* XYZ*<40") "ABC>50" "PQR<50" "ABC<30 & XYZ<40"
2013 Apr 24
2
[LLVMdev] Another missed optimization opportunity?
On 04/24/2013 01:29 PM, Caldarale, Charles R wrote: > Is this a potential aliasing effect? Since myarray is defined as a pointer, not an array, it's theoretically possible that the address therein refers to the same memory location as the pointer itself. I was thinking along those lines, but I haven't been able to come up with a specific instance of what could possibly be aliased.
2013 Apr 24
8
[LLVMdev] Another missed optimization opportunity?
I was suprised to find that some bitcode I'm generating isn't getting optimized. Here, I'm doing the equivalent of "myarray[5]++" (on an "extern int *myarray"), repeated three times: @myarray = external global i32* define void @update_array() #0 { %1 = load i32** @myarray, align 8 %2 = getelementptr inbounds i32* %1, i64 5 %3 = load
2010 Dec 13
1
Qs re writing/reading arrays, dataframes
Hi! I'm just getting started with R (and with the analysis of large datasets in general). I have several beginner-level questions whose answers I have not been able to find, and was hoping one of you would be kind enough to throw me a cluebrick or two. I have a 6-dimensional numeric array (which I'll call myarray) that is "fully named". By this I mean that non-NULL dimnames
2003 May 20
2
Using Arrays
hi, can we have arrays in contexts? i tried like this, but didn't work :-( declaration myarray[0]=192.168.3.4 myarray[1]=192.168.3.1 usage myvalue = ${myarray[${myval}]} pls tell a way to do this Thanx a lot -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20030521/f8b61c89/attachment.htm
2006 Jan 16
3
new comer's question
I am new to R. I try to search the web but could not find the answer so I post it here asking for help. I have a csv file looks like this: (between two ==== lines) =========================== Machine Name,"Resource, Type","Resource, Sub-type","Resource, Instance",Date,,Data ->,,,,,, ,0.041666667,,,,,,,,,,, Time (HH:MM)
2008 Feb 13
2
[Linux/Python 2.4.2] Forking Python doesn't work
Hello When a call comes in, I'd like to fork a Python script that broadcasts a message so that users see the CID name + number pop up on their computer screen, and simultaneously ring their phones. The following script doesn't work as planned: It waits until the script ends before moving on to the next step, which is Dial(): =========== exten =>
2013 Apr 24
0
[LLVMdev] Another missed optimization opportunity?
Hi Scott, On 24/04/13 19:40, Scott Pakin wrote: > I was suprised to find that some bitcode I'm generating isn't getting > optimized. Here, I'm doing the equivalent of "myarray[5]++" (on an > "extern int *myarray"), repeated three times: does your bitcode contain data layout information? Ciao, Duncan. > > @myarray = external global i32* >
2013 Apr 24
0
[LLVMdev] Another missed optimization opportunity?
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] > On Behalf Of Scott Pakin > Subject: [LLVMdev] Another missed optimization opportunity? > I'm doing the equivalent of "myarray[5]++" (on an > "extern int *myarray"), repeated three times: > I had expected the three increments by 1 to > be collapsed into a single increment
2013 Apr 24
0
[LLVMdev] Another missed optimization opportunity?
The semantic reason is that the optimizer is required to assume that the i32 stores could be storing to the storage of myarray. LLVM IR does not permit optimizers to optimize based on the nominal types of memory objects or memory accesses. This gets optimized in C, because the C compiler adds special TBAA metadata annotations to the loads and stores which say that the stores of "int" do