search for: rowns

Displaying 17 results from an estimated 17 matches for "rowns".

Did you mean: owns
2009 Mar 30
3
Calculating First Occurance by a factor
I'm having difficulty finding a solution to my problem that without using a for loop. For the amount of data I (will) have, the for loop will probably be too slow. I tried searching around before posting and couldn't find anything, hopefully it's not embarrassingly easy. Consider the data.frame, Data, below Data Sub Tr IA FixInx FixTime p1 t1 1 1 200 p1 t1 2
2010 Sep 10
4
for loop help please!
Hi Everyone, I have a 2-dim data.matrix(e.g., table1) in which row1 specifies a range of values. row2 - rown specify the number of times I want to replicate each corresponding value in row1. I can do this with the following function: rep(c(table1[1,]),c(table1[X,])) #where X would go from 2 - n. Now, I can do this manually by changing the values of X and save each resulting array/vector in
2023 May 02
1
Reg: Help regarding ggplot2
It's not clear what you want but ... On 02/05/2023 10:57, Upananda Pani wrote: > Dear All, > > I have a dataset which contains date and 12 other countries data. I > have extracted the data as xts object. > > I am not able to recall all the series in the Y axis. My data set > looks like this > > index crepub finland france germany italy netherlands norway poland >
2006 Oct 24
0
plot(all.effects)
Dear r-helpers, plot(all.effects()) uses trellis for its output, and often produces several effect plots in a layout. Can anyone tell me how to set the arguments to plot.effect which default to row=1, col=1, nrow=1, ncol=1, more=FALSE so that I can plot multiple effect plots on one layout? I was hoping that a call like last <- rep(c(TRUE, FALSE), c(3, 1)) lay <-matrix(c(1:4,), 2, 2,
2008 Sep 18
4
Strange ! characters inserted into emails
I have never encountered anything like this before, so thought I'd post here and see if anyone can help. We have a java application that sends out notification emails to end-users. The body of the email is some boilerplate text and HTML that is pulled from a database. When the emails are received there are random instances of " !" (that's a space and a bang symbol) inserted
2007 Nov 12
1
update matrix with subset of it where only row names match
I guess this has a simple solution: I have matrix 'mat1' which has row and column names, e.g.: A B C row1 0 0 0 row2 0 0 0 .... rown 0 0 0 I have a another matrix 'mat2', essentially a subset of 'mat1' where the rownames are all in 'mat1' e.g.: B row3 5 row8 6 row54 7 I want to insert the values of matrix mat2 for column B (in reality it could be some or
2006 Apr 18
2
questioin about cluster in R
Hi,All.Sorry for the group mail. I recently met a question and I have struggled on that for a while but failed to found the solution. I have a distance matrix as below. --- 0 35 33 9 36 35 0 10 32 51 33 10 0 30 49 9 32 30 0 35 36 51 49 35 0 ------------------- I want to do cluster with average method. ---- rown<-c("A",
2013 Mar 25
3
nested 'while' loops
Hi everyone, I'm using the following code to go over every element of a data frame (row wise). The problem I am facing is that the outer 'x' variable is not incrementing itself, thus, only one row of values is obtained, and the program does not proceed to the next row. This is the code: while(x<=coln) { while(y<=rown) { n<-as.numeric(df[[y]][x]);
2009 Dec 15
2
read dataset in R language.
Hi, Could you please help me in solving the following error message: Error in `[.data.frame`(mytestdata, fp_temp == 1) : undefined columns selected when I use scan instead on read.table, I reicieve this message: Error in names(ret2) <- rowns : 'names' attribute [172] must be the same length as the vector [152] Many thanks, Nancy _________________________________________________________________ [[alternative HTML version deleted]]
2012 Nov 29
1
Coerce rownames to factor for ordering
...imply want to sort my data frame's rownames by a defined vector so that the plots I generate from that vector are in the desired order Consider the test data below: #Create test data DataToPlot.. <- data.frame("Location1" = c(100,200),"Location2" = c(200,400)) #Name rowns rownames(DataToPlot..) <- c("Fall","Summer") #Attempt to coerce row names to factors rownames(DataToPlot..) <- as.factor(rownames(DataToPlot..)) #Attenmpt to sort rownames by defined vector rownames(DataToPlot..)<- reorder(as.factor(rownames(DataToPlot..)), new.or...
2010 Jun 24
1
help in SVM
...assification", kernel="radial", probability = TRUE, cost=bestc, gamma=bestg, cross=10) # model fitting svm.pred<-predict(svm.fit, hh, decision.values = TRUE, probability = TRUE) # find the probability. * Error in matrix(ret$dec, nrow = nrow(newdata), byrow = TRUE, dimnames = list(rowns, : invalid 'ncol' value (too large or NA)* > head(all_h) DD HK HQ IL LP NE NP TA TP WA WC 1 0.00543 0 0 0.00815 0.00272 0.00543 0.00000 0.00000 0.00000 0.00000 0 3 0.00000 0 0 0.00890 0.00890 0.00712 0.00534 0.00000...
2023 May 02
5
Reg: Help regarding ggplot2
Dear All, I have a dataset which contains date and 12 other countries data. I have extracted the data as xts object. I am not able to recall all the series in the Y axis. My data set looks like this index crepub finland france germany italy netherlands norway poland <date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
2009 Apr 01
0
smv() in "e1071" and the BreastCancer data from "mlbench"
...8.1 year 2008 month 12 day 22 svn rev 47281 language R version.string R version 2.8.1 (2008-12-22) > tobj <- tune.svm(Class ~ ., data=BC, gamma=seq(0.0001,0.2,length=3), + cost=seq(1,100,length=3)) Error in names(ret2) <- rowns : 'names' attribute [70] must be the same length as the vector [68] Sorry, but could someone tell me what the error is trying to get at? thanks, Brandon ----------------------------------------------------------- This e-mail was sent by GlaxoSmithKline Services Unlimited (register...
2006 Jan 20
1
Samba printing
I have a Red Hat 9 Linux box running Samba version:2.2.7a-8.9.0-security-rollup-fix and Hylafax acting as a fax server. I print from my Windows XP machine to the Samba shared printer hoping the file name would be passed to Hylafax to use as the outbound phone number but Samba is submitting the job to Hylafax with a job name like: smbprn.000117.JrVPBv Hylafax can't process the job since
2015 Feb 24
2
Current 6.8 git build issues on HP-UX
On Tue, Feb 24, 2015 at 2:20 PM, Darren Tucker <dtucker at zip.com.au> wrote: > On Wed, Feb 25, 2015 at 09:13:22AM +1100, Darren Tucker wrote: > > On Wed, Feb 25, 2015 at 09:04:57AM +1100, Darren Tucker wrote: > > > On Tue, Feb 24, 2015 at 12:11:16PM -0800, Kevin Brott wrote: > > > > ld: Unsatisfied symbol "xstrdup" in file > > > >
2009 Apr 01
0
回复: R-help Digest, Vol 73, Issue 32
Dear sir,    How to do bilinear time series in R?Is there any functions or packages?  thank you! -----Sincerely yours Kuangnan Fang 方匡南 敬上 department of statistics ,Economics school,Xia men University. Fujian Province (361005) China Mobile Phone:15860721915 SKYPE: ruiqwy MSN Messenger: ruiqwy@hotmail.com QQ:39863401 --- 09年3月31日,周二, r-help-request@r-project.org
2000 Aug 31
3
help with data import/export
how can I import/export data from ms excel? also is there a way to import/export data of the hdf format? is there a way to import/export hdf format for ms excel as well? thank you very much in advance. /js ###################################################################### This e-mail message has been scanned and cleared by MailMarshal http://www.marshalsoftware.com