search for: nonnumeric

Displaying 18 results from an estimated 18 matches for "nonnumeric".

2010 Feb 04
2
Unable to update a CentOS 4 : urlopen error nonnumeric port: 8080
Hi, I am trying to update a CentOS 4.4 but the yum update gives me error messages Setting up Update Process Setting up repositories http://mirror.centos.org/centos/4/updates/i386/repodata/repomd.xml: [Errno 4] IOError: <urlopen error nonnumeric port: '8080?'> Trying other mirror. Cannot open/read repomd.xml file for repository: update failure: repodata/repomd.xml from update: [Errno 256] No more mirrors to try. Error: failure: repodata/repomd.xml from update: [Errno 256] No more mirrors to try. I can access the web from this m...
2007 Dec 09
4
Arguments become nonnumeric
Dear Everybody, Enclosed are the tiny beginning of a program and its output. As a pity, if I load the image <load("kanal.RData")> the elements of <de.dd> are non numerical; <de.dd[2]+de.dd[3]> returns <Fehler in de.dd[2] + de.dd[3] : nicht-numerisches Argument f??r bin??ren Operator>. How can I keep the numbers numerical? Thank you in advance. hopefully, Mag.
2010 Oct 29
2
what´s wrong with this code?
...reduced form. g<- function(x){ integrand<-function(y) {exp(-x^2)*y} g<-integrate(integrand,0,1) } h<-function(x) log((g(x))) g is an object of the class function, but g(2) is a integrate object, I can print(g(2)) an get a result, but if I try h(2) R says is a nonnumeric argument for a mathematical function. My goal is to maximize h. what?s wrong? thanks
2011 Jul 12
3
"as.numeric"
Dear R user, After I imported data (csv format) in R, I called it out. But it is in non-numeric format. Then using "as.numeric" function. However, the output is really awful !!!!! > PE[1,90:99] V90 V91 V92 V93 V94 V95 V96 V97 V98 V99 1 16.8467742 17.5853166 19.7400328 21.7277241
2004 Apr 16
2
type.convert (PR#6781)
...(or omitted), it works as advertised: > type.convert( c("abc","-"), na.strings="-" ) [1] abc <NA> Levels: abc > type.convert( c("6","-"), na.strings="-" ) [1] 6 NA (2) When na.strings is omitted, blank strings in nonnumeric vectors are not converted into NAs (regardless of the value of as.is). > type.convert(c("6",""," ")) # OK: gives 6 NA NA [1] 6 NA NA > type.convert(c("A",""," ")) # gives a factor with 3 levels and no NAs [1] A...
2005 Jun 02
1
how to rectify t.test( ) error
Hi All, I get the following error when i perform a t.test. studentt<-apply(tlr, 1, function(x) t.test(x[2:6], x[7:11],var.equal=TRUE)$p.value) # tlr is a table of 11 columns and 22500 rows. I am not able to post tlr due to its size. Error in if (stderr < 10 * .Machine$double.eps * max(abs(mx), abs(my))) stop("data are essentially constant") : missing value where
2010 Nov 17
2
Drop non-integers
Hello all, I have a fairly simple data manipulation question. Say I have a dataframe like this: dat <- as.data.frame(runif(7, 3, 5)) dat$cat <- factor(c("1","4","13","1","4","13","13A")) dat runif(7, 3, 5) cat 1 3.880020 1 2 4.062800 4 3 4.828950 13 4 4.761850 1 5 4.716962 4 6
2002 Jul 15
2
Transpose and NA's
I noticed some odd behavior when I transpose a data frame containing NA's. It seems to cast all the elements as "character" including the NA's. Bug? > t(data.frame(x=1:10,y=1:10,z=rep(NA,10))) 1 2 3 4 5 6 7 8 9 10 x " 1" " 2" " 3" " 4" " 5" " 6"
2017 Apr 24
7
[Bug 2710] New: remote ls -l <name> produces inconsistent info
https://bugzilla.mindrot.org/show_bug.cgi?id=2710 Bug ID: 2710 Summary: remote ls -l <name> produces inconsistent info Product: Portable OpenSSH Version: 7.5p1 Hardware: ix86 OS: Linux Status: NEW Severity: normal Priority: P5 Component: sftp Assignee: unassigned-bugs at
2009 May 01
3
factor level
Hi All, I have problem about the factor features. I read in a .cvs file, a column which is supposed to be numeric, but it becomes factor level data after reading in. mydata[,"newXaxis"] [1] 0 0.430010601 11.23198508 25.00940297 37.75338045 45.98289639 [7] 48.92328133 52.51142822 61.12359751 63.85832121 70.98927949 77.16550181 [13] 97.73545713 113.6588007 118.6588007
2009 Mar 04
3
Diff btw percentile and quantile
To calculate Percentile for a set of observations Excel has percentile() function. R function quantile() does the same thing. Is there any significant difference btw percentile and quantile? Regrads, -- View this message in context: http://www.nabble.com/Diff-btw-percentile-and-quantile-tp22328375p22328375.html Sent from the R help mailing list archive at Nabble.com.
2007 Sep 14
6
replace NA value with 0
Hi, how can I replace NA value with 0: 1991 217 119 103 109 137 202 283 240 146 NA 1992 270 174 149 144 166 239 278 237 275 NA 1993 146 111 104 89 98 131 153 148 175 NA 1994 177 123 146 124 121 200 266 191 240 106 1995 145 98 95 89 95 130 183 161 164 129 1996 145 98 89 90 93 138 158 131 161 161 1991 217 119 103 109 137 202 283 240 146 0 1992 270 174 149 144 166 239 278 237
2012 Mar 20
1
overriding "summary.default" or "summary.data.frame". How?
...ry.data.frame ncw <- function(x) { z <- nchar(x, type="w") if (any(na <- is.na(z))) { # FIXME: can we do better z[na] <- nchar(encodeString(z[na]), "b") } z } if (!is.data.frame(dat)) dat <- as.data.frame(dat) ##treat any nonnumeric as a factor factors <- sapply(dat, function(x) {!is.numeric(x) }) ##If only one factor, need drop=FALSE. datf <- dat[ , factors, drop = FALSE] if (alphaSort) datf <- datf[ , sort(colnames(datf)), drop = FALSE] z <- lapply(datf, summary.factor, numLevels=numLevels) nv <-...
2012 Aug 08
3
help, please! matrix operations inside 3 nested loops
hello, this is my script: #1) read in data: daten<-read.table('K:/Analysen/STRUCTURE/input_STRUCTURE_tab_excl_5_282_559.txt', header=TRUE, sep="\t") daten<-as.matrix(daten) #2) create empty matrix: indxind<-matrix(nrow=617, ncol=617) indxind[1:20,1:19] #3) compare cells to each other, score: for (s in 3:34) { #walks though the matrix colum by colum, starting at
2011 Jun 03
4
Problem using read.xls - Everything converted to factors
Hallo, I would like to use to read.xls function from the gdata package to read data from Microsoft Excel files but I experienced a problem: For example I used the following code: testfile<-read.xls("/home/.../wsjecon0603.xls", #file path header=F, dec=",", na.strings="n.a.", skip=5, sheet=2,
2011 Nov 10
3
Error in matrix, not ordered vectors or numerical value, and SIAR.
Help! model1 <- siarmcmcdirichletv4(data, source, tef, concdep=0, 500000, 50000) Error in matrix(1, ncol = (numsources + numiso) * numgroups, nrow = (siardata$iterations - : invalid 'ncol' value (too large or NA) In addition: Warning message: In Ops.ordered((numsources + numiso), numgroups) : '*' is not meaningful for ordered factors Previous message, but more problems:
2011 May 05
1
Question about error of "non-numeric argument to binary operator"
I have been trying to do a nls model and gives me the error of a nonnumeric argument table(file="c:/tt2.txt",header=T) > fit.model <- nls(TT~60*(1+alpha*(v/c)^beta),data=tt2, start=list(alpha=1, beta=3, v=1000)) Error in v/c : non-numeric argument to binary operator > is.numeric(tt2) [1] FALSE > is.character(tt2) [1] FALSE > as.numeric(...
2010 Oct 31
1
R-help Digest, Vol 92, Issue 31
...integrand<-function(y) {exp(-x^2)*y} > g<-integrate(integrand,0,1) > } > h<-function(x) log((g(x))) > > g is an object of the class function, but g(2) is a integrate object, > I can print(g(2)) an get a result, but > if I try h(2) R says is a nonnumeric argument for a mathematical > function. R> print(g(2)) 0.00915782 with absolute error < 1.0e-16 Indeed print(g(2)) gives an output, but it is obviously not just a numeric number but something formatted, presumably based on the class of the returned object from g(2) and the values that t...