search for: na

Displaying 20 results from an estimated 14734 matches for "na".

Did you mean: an
2013 Apr 09
3
count by value
Hello all! I have a big problem now. I want a data frame like this: dput(head(test,100)) structure(c(NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA...
2003 Mar 18
3
Tukey's HSD
...39;s HSD. These are not reported by the function TukeyHSD. When I apply the following code to the data, which I store as PROLE4.TXT, several unexpected things happen. First, the function TukeyHSD works for all the comparisons but the function simint doesn't. Second, after the application of na.omit def2$EL and def4$EL report factor values which have been omitted. Please inform me what I am doing wrong. Thank you very much. Peter B. dat0 <- read.table("prole4.txt",header=T) nrow(dat0) attach(dat0) dat <- data.frame(PRO,GRA,SOL,CEN,LAC,factor(NP),factor(TP),factor(SC),f...
2011 Jul 19
2
strang behaviour of mice package
...ckage for multiple imputation. For one data (attached), mice doesn't impute all missing values. Specifically, some variables were not imputed at all. the reproducible code library(mice) test.df<-read.table(c:\\test.txt',header=T,sep=',') mi<-mice(test.df,maxit=10,m=5) sum(is.na(complete(mi,1))) >129 and x41, x50... were not imputed at all. Any suggestion? Weidong Gu -------------- next part -------------- "x1","x2","x3","x4","x5","x6","x7","x8","x9","x10","x11&qu...
2024 Jan 30
1
R interpreting numeric field as a boolean field
...4.3.2, and I have a .xlsx file that has 46 sheets on it. I basically combined all 46 sheets and read them as a single dataframe in R using package rio. I read a solution using package readlx, as suggested in a StackOverflow discussion as follows: df <- read_excel(path = filepath, sheet = sheet_name, guess_max = 100000). Now, when you have so many sheets (46 in my case) in an Excel file, the rio methodology is more practical. This is what I did: path = "C:/Users/myuser/Documents/DataScienceF/Forecast_and_Econometric_Analysis_FIGI (4).xlsx" figidat = import_list(path, rbind = TRUE)...
2013 Apr 06
5
arrange data
Hello all! I have a problem to arrange data in another form. My initial data is like this: 'data.frame': 421 obs. of 58 variables: $ 01A: num NA NA NA NA NA NA NA NA NA NA ... $ 01B: num NA NA NA NA NA NA NA NA NA NA ... $ 03A: num NA NA NA NA NA NA NA NA NA NA ... $ 03B: num NA NA NA NA NA NA NA NA NA NA ... $ 05A: num NA NA NA NA NA NA NA NA NA NA ... $ 05B: num NA NA NA NA NA NA NA 3.64 2.48 1.87 ... $ 07A: num NA NA NA NA NA...
2011 Feb 04
1
read.table error
R experts, I am working with a fairly large data set comprised of 563 rows by 116 columns including several different modes. I have been unable to read in the data set completely using the read.table function and the RGui (i.e. nearly half the total number of rows are missing from the data set along with the column names). The data does read in fully using Tinn-R's Rterm; however, at several points in the data frame a single line of...
2005 May 06
3
conversion factor into numeric
Thank you all for your (fast) comments. Unfortunately I could not make the advise work: > mass [1] 800 800 800 800 800 800 800 800 800 800 800 800 800 800 800 800 800 800 910 910 910 910 910 910 910 [26] 910 910 910 910 910 910 910 910 910 910 910 910 910 910 1,020 1,0...
2013 May 15
1
x and y lengths differ
...I want to create the plot I have this problem: Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ. I try this code: library(dplR) df.rwi <- detrend(rwl = df, method = "Spline",nyrs=NULL) write.table(df.rwi,file="rwi.txt",quote=FALSE,row.names=TRUE) df.crn <- chron(df.rwi, prefix = "RGE",prewhiten = TRUE) write.table(df.crn,file="crn.txt",quote=FALSE,row.names=TRUE) ##confidence interval library(boot) ci.func <- function(y) { y <- y[!is.na(y)] mean.fun <- function(y,i) { m <- mean(y[i])...
2002 Dec 18
1
problem with 'gnls'
...e = c(174.267493382104, 173.412740072763 : >> Coefficient matrix not invertible Here is my R-code: data <- d.plabutsch.neu # calculating the starting coeficients: r.CO2.rlm <- rlm(EF.CO2 ~ pLKW.total + Sat + Sun + Fz.total, data = data, method = "MM", na.action = na.exclude) START <- coef(r.CO2.rlm); names(START) <- letters[1:5] # 'gnls': r.CO2.gnls <- gnls(log(EF.CO2) ~ log(a + b * pLKW.total) + c * Sat + d * Sun + e * Fz.total,start = START, data = data, correlation=cor...
2009 Feb 25
1
read and reshape time series table with empty items
...blem to read data (daily precipitation). The data are formated in months by columns wich leads to empty items in months with less then 31 days. What i did was reading the file and try to reshape the object a<- read.table("nds.txt", header=TRUE, sep=";", dec = ".", na.string="NA") ar<-reshape(a, timevar="month",varying=list(c("Jan","Febr","M?rz","April","Mai","Juni","Juli","Aug","Sept","Okt","Nov","Dez")),direction="...
2012 Jul 11
3
unable to subtract dates in R
...acter to date > #intakeDS$IntakeDate <- as.character(intakeDS$IntakeDate) > intakeDS$IntakeDate_d <- as.Date(intakeDS$IntakeDate_c, "%Y%m%d") > > intakeDS$intake_age <- intakeDS$DOB - intakeDS$IntakeDate_d > intakeDS$intake_age Time differences in days [1] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA [61] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA N...
2009 Jun 23
7
first value...
Hi, I've a vector like this: > inc [1] NA NA NA NA NA NA NA [8] NA NA NA NA NA NA NA [15] NA NA NA NA NA NA NA [22] NA NA NA NA NA NA NA [29]...
2009 Sep 16
1
Can someone please explain why the last tick mark on this chart is not showing?
Hi all, I'm trying to log chart but with natural looking tick marks. My specifications are very specific -- it must indicate the lowest number's tick as well as the maximum. I've attached sample code and data for a particular case (and there are a few more like this) where the bottom tickmarks on the chart are not set to where I wa...
2013 Aug 01
3
Problemas con NA y sub-selección por índice
Estimados compañeros de lista, estábamos trabajando con unos datos que adjunto y queríamos hacer una selección mediante índices pero nos deparamos con algún problema. Por ejemplo si hacemos solamente: data[data$PESO==76] me da algo como: > str(data[data$PESO==76,]) 'data.frame': 2475 obs. of 10 variables: $ PUREZA_A: Factor w/ 1 level "pi": 1 NA NA NA NA NA NA NA NA...
2012 May 21
1
Changing selected elements of an array
Hi! I have a matrix defined on geographical positions (through) row and column names. I need to change a number of elements in this matrix using the information of a data.frame containing geographical positions and a number of variables. Changing the value of one specific element is easy, but changing on a number of selected positions seems more difficult. When I use the geo...
2005 Jun 01
2
Different versions, different results ?
Dear all, I wrote the following batch script on a iMac, and ran it on a linux mosix cluster. tu <- read.table("cage.mm5.tags.rna_lib.CAA-CAJ.tu-reshape.table") tu_reshaped <- t(reshape(tu[1:50,], direction="wide", timevar="tu", idvar=c("rna","lib"))) write.table(tu_reshaped, "cage.mm5.tags.rna_lib.CAA-CAJ.tu-reshaped.table") q(sav="no") (I will remove the [...
2012 Feb 13
2
see NA
Dear All I want to chose just spacial columns in R. (read table) data1<- read.table("/home/Documents/data.txt",header=F,sep = "\t", as.is =F) data.2<-data1[sub.data[,1],] The dimension of data.2 is correct but my data are transformed NA head(data.2) V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 V13 V14 V15 V16 V17 V18 V19 V20 V21 V22 V23 V24 NA <NA> NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA.1 <NA> NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA...
2013 Apr 07
1
R ecuatia error
Dear all! I have a problem when I use this equation with R. mpr <- 843.75*exp(-1.119*pg) Error in FUN(left, right) : non-numeric argument to binary operator pg 01 02 03 04 05 06 07 08 09-236 10-63T 11 12 13 14 15 16 17-234 18 19 20 23 1592 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 1593 NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA 1594 NA NA NA NA NA NA NA NA NA NA NA...
2009 Apr 14
4
cbind
I have a list of numbers with NAs as below: > A[,1] [1] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA [19] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA [37] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA [55] NA NA NA NA NA NA NA NA NA...
2011 Oct 24
4
Lm function: Error in model.frame.default
...0.5000000 [50] 0.5000000 0.5000000 0.5000000 0.7142857 0.5000000 0.0050000 0.3500000 [57] 0.5000000 0.3500000 0.0000000 0.5000000 0.2500000 0.2500000 1.0000000 [64] 0.2500000 0.1000000 0.2500000 0.5000000 0.2500000 0.5500000 NA [71] 0.2500000 0.4000000 0.3500000 0.3500000 0.2500000 0.0000000 0.8888889 [78] 0.5000000 0.2500000 0.5000000 0.5000000 0.5000000 0.2500000 0.2000000 [85] 0.4000000 0.0000000 0.3500000 0.0250000 0.4000000 0.5000000 0.3500000 [92]...