search for: xrow

Displaying 8 results from an estimated 8 matches for "xrow".

Did you mean: grow
2011 Oct 03
1
minimisation problem, two setups (nonlinear with equality constraints/linear programming with mixed constraints)
...ing task as follows: Minimise, over 100?1 real vectors v, and over scalars q >= 0, q such that, for i=1,...,100 v_i<=q v_i>=-q X'v=e_2 Here is my RGLPK code: ......................................................................... X <- # See end of this message for the X data XROWS <- 100 XCOLS <- 2 e_2=rep(0,times=XCOLS) e2[2]<- 1 obj <- c(rep(0,XROWS),1) # coefficients on v_1, . . . , v_100, q. mat <- matrix(rbind(cbind(diag(XROWS), rep(-1,XROWS)), cbind(diag(XROWS), rep(1,XROWS)), cbind(t(X), rep(0,XCOLS)), cbind(t(rep(0,XROWS)), 1)), nrow=2*XROWS...
2005 Jul 06
2
Problem with dyn.load...or else...
...ll use for the analysis: > tab<-c(1,1,3,4,6,6,3,5,7,67,5,6,65,3,5,1,5,42,3,567,6,4,7,7) > tab<-matrix(tab,6,4) And try to use the function: > K_MEANSR(tab,centers=c(2,4)) [1] "AA" [1] "AAA" [1] "A" [1] "B" Error in .C("K_MEANSC", xrows = as.integer(xrows), xcols = as.integer(xcols), : "C" function name not in load table Everything that is printed on the screen is correct, but why does it says that 'K_MEANSC' function is not in load table??? It then just stops at that stage of the .R function. Tha...
2010 Feb 06
1
duplicating records
Dear friends, I need to fill in (duplicate the whole record) the missing days with the same record values as long as AE is the same value (i.e. "1"), once AE value changes, the process of duplication should proceed with the new AE value till it changes again. e.g. I need to fill in records: day 18-day 44, all the records are carried with the new AE value of "0". At the
2004 Apr 27
1
beginners k means clustering question
...e following R commands: data <- read.table("cluster.txt") dataMatrix <- t(data) I then tried to cluster using the following: xcl <-cclust(dataMatrix,2,20,verbose=TRUE,method="kmeans") when I run this i receive the following error message: Error in x[rank(runif(xrows))[1:ncenters], ] : incorrect number of dimensions I would be grateful for any pointers in the right direction Thanks for your help Saurabh [[alternative HTML version deleted]]
2010 Sep 17
1
Converting tables to matrices
Hi there, I'm a real beginner to R. I have two tables of the following format (~1000 rows in each): Table 1 (experimental) N bp 1064 12312089 856 12312234 .... Table 2 (control) 8463 34728908 879 34443290 ..... I would like to do Fisher's exact tests comparing each row of the tables e.g. the test for row 1 would look something like this: Experimental Control
2011 Dec 01
1
transform data.frame holding answers --> data.frame holding logicals
Hello Hello I have a data frame, x, holding 5 persons answering the question which cars they have used: # the data frame x <- as.data.frame( matrix( c('BMW', '', '', 'Mercedes', 'VW', '', 'Skoda', 'VW', 'BMW', '', '', '', 'VW', 'Skoda',
2005 Sep 01
6
png scaling problem
scaling<-4 xywidth<-480 resolution<-150 png(filename = "c:/r/anschluss/plots/4.png", width = xywidth*scaling, height = xywidth*scaling,pointsize = 12, bg = "white", res = resolution*scaling) ...... barplot(xrow,col = barcolors,cex.axis=scaling, ylab="mean time till attachment in sec",cex.lab=1.2*scaling) I tried to scale the barplot but there is one strange result: scaling=1 http://biostatistic.de/temp/1.png --- the ylab is ok scaling=2 http://biostatistic.de/temp/2.png --- the ylab is...
2013 Nov 01
1
Package(s) for making waffle plot-like figures?
Dear all, I am trying to make a series of waffle plot-like figures for my data to visualize the ratios of amino acid residues at each position. For each one of 37 positions, there may be one to four different amino acid residues. So the data consist of the positions, what residues are there, and the ratios of residues. The ratios of residues at a position add up to 100, or close to 100 (more on