similar to: inequality with NA

Displaying 20 results from an estimated 1000 matches similar to: "inequality with NA"

2012 Oct 20
2
can't find the error in if function... maybe i'm blind?
Hi everybody, the following alway gives me the error "Fehler in if (File$X.Frame.Number[a] + 1 == File$X.Frame.Number[a + 1]) (File$FishNr[a] <- File$FishNr[a - : Fehlender Wert, wo TRUE/FALSE n?tig ist". Maybe its stupid, but i'm not getting why... Maybe someone can help me. Thanks a lot! for (i in unique(BigFile$TrackAll)) { File <-
2008 Aug 13
2
Tiny help for tiny function
I just started to write tiny functions and therefore I appologise in advance if I am asking stupid question. I wrote a tiny function to give me back from the original matrix, a matrix showing only the values smaller -0.8 and bigger 0.8. y<-c(0.1,0.2,0.3,-0.8,-0.4,0.9) x<-c(0.5,0.3,0.9,-0.9,-0.7,0.3) XY<-rbind(x,y) extract.values<-function (x) { if(x>=0.8|x<=-0.8)x
2012 Nov 05
1
Error message in nmkb()
Hallo together, I am trying to use the nmkb() optimizer and I have problems using the function, as it causes the following error message Fehler (error)* in while (nf < maxfeval & restarts < restarts.max & dist > ftol & : Fehlender Wert (missing value)* , wo (where)* TRUE/FALSE n?tig ist (is required)* *translation Do I need to adjust the control ?
2006 May 16
1
survival package - pspline
help Hello, I?m a statistic student in Austria and I have to do a survival analysis in R by using psplines as regressor. My problem is that I sometimes (I think it depends on the choose of the parameters) get a error message, but I do not know what it means. After that I tried the procedure with an example dataset R is providing. Although using the cancer dataset I also get this message. Input:
2010 Oct 03
1
Modifying a data.frame
Hello list members I have a problem with modifying a data.frame. As an example given is a data.frame called ex : ex<-data.frame(id=c(1,2,3,4,5,6),obs=c(14,9,20,36,55,47),eff=c("A","A","B","C","C","C")) After that I would like to modify the object ex with the following short script: for (i in ex) { if(ex[i,3]=="A"||
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 Feb 01
3
playwith error message
Hi, I'am using the playwith library to write my own small GUI application. But I get the following error under Windows and Linux (Ubuntu): Error in if ((modeOK %in% c("Identify", "Brush")) && (actions$ident == : Fehlender Wert, wo TRUE/FALSE n?tig ist Under linux my R program simply continues, but under Windows it stops. Since it is not in my code, has anyone
2008 Feb 16
2
Adding elements to existing lists
Dear everybody! Is there a command to add elements to an existing list, at best excluding the addition of already included ones? Thank you in advance. Yours, Mag. Ferri Leberl
2008 Jan 14
3
problems with .svg
Dear everybody! I am making a graph in R and employ pstoedit to expot the .pdf-output to .svg. When I open the .svg with firefox I get the .svg-code shown wit the following header: "Mit dieser XML-Datei sind anscheinend keine Style-Informationen verkn?pft. Nachfolgend wird die Baum-Ansicht des Dokuments angezeigt." Which information should how be included? Thank you in advance. Yours,
2008 Mar 22
2
intraday OHLC plot
I want to create a open/high/low/last plot of intraday data. I try to use the function plotOHLC from the tsteries package. I create my own multiple time series and then try to plot it. raw Data Format (file eurusd2.csv): "Date (GMT)" "Open" "High" "Low" "Last" 17-03-2008 00:00:00 1,5764 1,5766 1,5747 1,5750 17-03-2008 00:05:00 1,5749 1,5750 1,5741
2010 Feb 07
3
Noval numbers
Dear everybody, How can I transform numbers to a positional system with the base of, e.g., nine, and do further operations with them? Thank you in advance Yours, sincerely Mag. Ferri Leberl
2006 Jul 14
2
Export to LaTeX
Dear Everybody! I want to export data to LaTeX. As I want to employ the data as freely as possible I want to avoid the xtable-command and instead generate some List like \MyOwnPrettyCommand{Adam}{Auer}{17} \MyOwnPrettyCommand{Bertram}{Bauer}{14} \MyOwnPrettyCommand{Christoph}{Huber}{75} \MyOwnPrettyCommand{Damian}{Dorfer}{69} \MyOwnPrettyCommand{Emanuel}{Eder}{43} with \MyOwnPrittyCommand
2009 Jan 07
1
troubles performing Moran.I test
dear R users, I have troubles performing Moran.I test as suggested on http://www.ats.ucla.edu/stat/r/faq/morans_i.htm my spatial data are longitude and lattitide of communities. The calculation of the inverse distance matrix according to the homepage (using my data) datAL <- read.csv2("C:\\Konvergenz AL.csv", header=T) ALdist <- as.matrix(dist(cbind(datAL$L?nge,
2012 Aug 24
1
Fwd: Re: Package cwhmisc and problems
-------- Original-Nachricht -------- Betreff: Re: Package cwhmisc and problems Datum: Fri, 24 Aug 2012 07:34:14 +0100 Von: Prof Brian Ripley <ripley@stats.ox.ac.uk> An: Christian Hoffmann <c-w.hoffmann@sunrise.ch> Kopie (CC): CRAN@r-project.org This is the address for CRAN submissions. Please ask for help on R-help or R-devel. On 23/08/2012 20:16, Christian Hoffmann wrote:
2017 Sep 21
0
List of occuring values
unique(x) will give you the distinct values in x. table(x) will give you the distrinct values and their frequencies as an array with dimnames. data.frame(table(x)) will give you a 2-column data.frame with the distinct values and their frequencies. > values <- c("Small", "Large", "Large", "Large") > unique(values) [1] "Small"
2007 Jul 09
1
making groups
Dear everybody! If I have an array of numbers e.g. the points my students got at an examination, and a key to group the numbers, e.g. the key which interval corresponds with which mark (two arrays of the same length or one 2x(number of marks)), how can I get the array of absolute frequencies of marks? I hope I have expressed my problem clearly. Thank you in advance. Mag. Ferri Leberl
2007 Dec 16
1
Working with ranges of a list
Dear everybody! Please find attached a tiny R-program. It returns: [,1] [,2] [1,] 53.55 NA [2,] 53.55 NA [3,] 53.55 NA How can I manage the first column to show the second component not only of the first list in k??ste but of the second component of every list in k??ste respectively, such as to get the following array returned: [,1] [,2] [1,] 53.55 NA [2,] 53.87 NA [3,] 53.87
2008 Mar 07
3
R-Logo in \LaTeX (Mag. Ferri Leberl)
Dear Mag. Ferri Leberl, I'm using something like: ----------------------- tex.tex --------------------------- \documentclass{article} \usepackage{graphicx} \usepackage{fancyvrb} \newcommand{\Rlogo}{\protect\includegraphics[height=1.8ex,keepaspectratio]{Rlogo.pdf}} \newcommand{\myinput}[1] {\begin{scriptsize} \VerbatimInput[frame=single,label=#1]{#1} \end{scriptsize}} \title{The R logo,
2008 Mar 07
3
R-Logo in \LaTeX (Mag. Ferri Leberl)
Dear Mag. Ferri Leberl, I'm using something like: ----------------------- tex.tex --------------------------- \documentclass{article} \usepackage{graphicx} \usepackage{fancyvrb} \newcommand{\Rlogo}{\protect\includegraphics[height=1.8ex,keepaspectratio]{Rlogo.pdf}} \newcommand{\myinput}[1] {\begin{scriptsize} \VerbatimInput[frame=single,label=#1]{#1} \end{scriptsize}} \title{The R logo,
2013 Mar 30
1
normal mixture EM not working?
Hi, I am currently working on fitting a mixture density to financial data. I have the following data: http://s000.tinyupload.com/?file_id=00083355432555420222 I want to fit a mixture density of two normal distributions. I have the formula: f(l)=πϕ(l;μ1,σ21)+(1−π)ϕ(l;μ2,σ22) my R code is: normalmix<-normalmixEM(dat,k=2,fast=TRUE) pi<-normalmix$lambda[1] mu1<-normalmix$mu[1]