similar to: Creating vectors

Displaying 13 results from an estimated 13 matches similar to: "Creating vectors"

2009 Jun 18
1
[LLVMdev] User question, using IRBuilder to generate a llvm.memcpy instruction.
Hello, If this is not the correct list to ask this question on I apologize. I am attempting to generate a llvm.memcpy instruction with an IRBuilder but I cannot find the appropriate way to do this. Thanks in advance, Sean -- Sean (Fritz) McQuillan - http://sean-mcquillan.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL:
2002 Feb 06
3
will syslinux work on a harddisk ?
Can someone tell me if syslinux will work on a harddisk ? I have a 4mb flash device that plugs into the IDE connector on the motherboard, and i'm trying to get syslinux to work with it, so I can load a Linux kernel and an initrd. I'm not having any luck with it. Then it dawned on me that the boot loader in syslinux might be expecting a floppy drive rather than an atapi hard disk. Any
2010 Jun 18
2
Vector manipulation, for loop needed?
Hi, I have a vector of time in days t<-1:48. I have observations and the day they were recorded. I also have a vector, S which takes different values depending on which day the observation was recorded. For example if on day 1 all in vector S get a value of 46/48, on day 2 get 42/48, day 3 38/48, decreasing by 4/48 each time until day 12 gets the value 2/48. Then for any day greater than 12
2009 Apr 07
6
Sequences
Hi, I am trying to make a sequence and am using a for loop for this. I want to start off with an initial value ie S[0]=0 then use the loop to create other values. This is what I have so far but I just keep getting error messages. #To calculate the culmulative sums: s<-rep(0,207) #as this is the length of the vector I know I will have s<-as.vector(s)
2003 Feb 22
1
Patch for a port forwarding problem in serverloop.c
Hello all, I encountered a problem when trying to setup a remote portforward using OpenSSH 3.5p1. If the port that I was trying to listen to on the remote side was already in use, a message 'cannot bind to port: 5000' was written to the syslog, but the connection still persisted. I had no way on the client side to know that the listening wasn't taking place. that is, the
2003 Feb 11
1
Adding Printer Drivers from Windows XP
I am having trouble trying to add printer drivers from Windows XP. I'm running SAMBA 2.2.7a on SUSE 7.2. As best I can determine, the problem relates to permissions - Windows doesn't seem to be able to write the files to the printer driver directory on the server. Yet, I can set up an ordinary file share to that same directory and logged on as the same user, I can read and write the
2009 May 13
2
converting numeric into character strings
Hi, Im trying to put some numbers into a dataframe , I have a list of numbers (change points in a time series) like such [1] 2 11 12 20 21 98 99 but I want R to recognise this as just a character string so it will put it in one row and column, ideally I want them seperated by commas so I would have for example Person Change points (seconds) A
2011 Mar 15
1
Questions on dividing lists and tapply
Hello R community, I have two questions about using R. The first is about dividing each element of a list with another similar sized list. So, if the first list has two elements and so does the second, then the result should also be a list with two elements. For example, the inputs are: list(matrix(1:6,ncol=2),matrix(1:6,ncol=2))->l1 l2<-list(1:3,2) I want to get a list, l3 with the
2003 Nov 11
4
A co-occurrence matrix
Dear R experts, I have a matrix (from some sort of classification) like this: object group [1,] 1 1 [2,] 2 2 [3,] 3 1 [4,] 4 1 [5,] 5 3 And I need something like this: [,1] [,2] [,3] [,4] [,5] [1,] 1 0 1 1 0 [2,] 0 1 0 0 0 [3,] 1 0 1 1 0 [4,] 1 0 1 1 0 [5,] 0 0 0 0 1 where all
2007 Jun 24
2
matlab/gauss code in R
Hi all! I would like to import a matlab or gauss code to R. Could you help me? Bye, Sebasti?n. 2007/6/23, r-help-request en stat.math.ethz.ch <r-help-request en stat.math.ethz.ch>: > Send R-help mailing list submissions to > r-help en stat.math.ethz.ch > > To subscribe or unsubscribe via the World Wide Web, visit >
2009 Apr 03
2
Linear model, finding the slope
Hi for some data I working on I am merely plotting time against temperature for a variable named filmclip. So for example, I have volunteers who watched various film clips and have used infared camera to monitor the temperature on their face at every second of the clip. The variable names I have used are Normalised ( for the temperature) and Frame (for the time in seconds). So I have fitted a
2009 Apr 10
3
turning list into vector/dataframe
Hi, I have used this command : resamples<-lapply(1:1000,function(i) sample(lambs,replace=F)) resamples2<-lapply(resamples,Cusum) to get a list of 1000 samples of my data. The function Cumsum is defined as follows: Cusum<-function(x){ SUM<-cumsum(x)-(1:length(x))*mean(x) min<-min(cumsum(x)-(1:length(x))*mean(x)) max<-max(cumsum(x)-(1:length(x))*mean(x)) diff<-max-min
2011 May 16
1
Matrix manipulation in for loop
Hi all, I have a problem with getting my code to do what I want! This is the code I have: create.means.one.size<-function(nsample,var,nboot){ mat.x<-matrix(0,nrow=nboot,ncol=nsample) for(i in 1:nboot){ mat.x[i,]<-sample(var,nsample,replace=T) } mean.mat<-rep(0,nboot) for(i in 1:nboot){ mean.mat[i]<-mean(mat.x[i,]) } sd.mean<-sd(mean.mat) return(mean.mat) } where