search for: 0's

Displaying 20 results from an estimated 491 matches for "0's".

2010 Feb 16
1
RODBC missing values in integer columns
Hello, We are having some strange issues with RODBC related to integer columns. Whenever we do a sql query the data in a integer column is 150 actual data points then 150 0's then 150 actual data points then 150 0's. However, our database actually has numbers where the 0's are filled in. Furthermore, other datatypes do not have this problem: double and varchar are correct and do not alternate to null. Also, if we increase the...
2012 Sep 19
2
Trap an error from a function
Window 7 R 2.15 I am writing a simulation which generates sample sized estimates from simulated data. When I run the function shown below, power.t.test(delta=14.02528,sd=1.945226,power=0.8,sig.level=0.05) I get an error message: > power.t.test(delta=14.02528,sd=1.945226,power=0.8,sig.level=0.05) Error in uniroot(function(n) eval(p.body) - power, c(2, 1e+07)) : f() values at end points not of opposite sign The fact that the function can not return...
2012 May 04
1
samba(3.6.4), with LDAP backend and sambapasswordhistory issue
We would like to have password history working in our setup which is samba with Sun Directory Services 7.0 on the backend. Everything else seems to be working ok, but I notice that the sambapasswordhistory entry for any particular user is filled with 0's. If I set the password for the account, then it's 16 0's, followed by a copy of the password hash, and the rest 0's. If I change the...
2012 Jun 12
2
Error in sort(abs(diff(genomdat)))[1:n.keep] : only 0's may be mixed with negative subscripts
Hello everyone, I`m trying to normalize and analize an illumina SNP array. But when i`m trying to segmentate i`m getting an error: Error in sort(abs(diff(genomdat)))[1:n.keep] : only 0's may be mixed with negative subscripts. I`ve tried everything to fix this but the error still occours. Can anybody give me a tip? Thanks in advance! -- View this message in context: http://r.789695.n4.nabble.com/Error-in-sort-abs-diff-genomdat-1-n-keep-only-0-s-may-be-mixed-with-negative-s...
2006 Aug 01
2
Extracting a row number from a matrix
Hi all, I have a matrix with each column containing a large number of integers (0 and above). in each column beyond a certain row (say row 120 in column 1, row 134 in column 2, 142 in column 3...) there are only 0's. I want to find, for each column the row number of the last row which contains a positive integer beyond which there are 10 or more 0's. so in the followi...
2006 Apr 19
3
isoMDS and 0 distances
Hi, I'm trying to do a non-metric multidimensional scaling using isoMDS. However, I have some '0' distances in my data, and I'm not sure how to deal with them. I'd rather not drop rows from the original data, as I am comparing several datasets (morphology and molecular data) for the same individuals, and it's interesting to see how much morphological variation can be associ...
2004 Oct 28
1
plot.baysian error = only 0's may mix with negative subscripts
Dear R users and developers After upgrading to Windows XP and R 1.9.1 and 2.0, I retried to execute plot.baysian() to a data set that I had used previously to plot with no problem in win2000 R1.8. The error I get is: Error in points(Mbar[-index], lods[-index], pch = ".") : only 0's may mix with negative subscripts Thanx in advance Dino P.S. I allre...
2008 Mar 04
1
Sampling letters
I have a binary matrix of size N x 300. I then create the following: > set.seed(1234) > (key_file <- sample(letters[1:4], 300, replace=TRUE)) [1] "a" "c" "c" "c" "d" "c" "a" "a" "c" "c" "c" "c" "b&quo...
2010 Nov 08
1
RMark error: only 0's may be mixed with negative subscripts
...trying to analyse a simulated data set using the Robust Design (two primary periods with three secondary sessions in each) to estimate apparent survival. On specifying the time intervals (that tell R about the primary and secondary sampling sessions), this is the error I get: > time.int <- c(0,0,1,0,0) > model <- mark(dat, model = "Robust", time.intervals = time.int) Error in time.intervals[1:(i - 1)] : only 0's may be mixed with negative subscripts This is what I tried to do overall: ################### library(RMark) dat <- import.chdata("/home/umesh/D...
2008 May 12
5
Format integer
Hi, What's one way to convert an integer to a string with preceding 0's? such that '13' becomes '00000000013' to be put into a string I've tried formatC, but they removes all the zeros and replace it with blanks Thanks -- Regards, Anh Tran [[alternative HTML version deleted]]
2008 Oct 17
2
question
I am trying to increment a filename in a script example name is 000001.txt and I need to keep the leading 0's. I have no problem if the name was 1.txt, 2.txt etc... var=`expr $var + 1` however how do I keep the leading 0's? Thanks, Jerry
2005 Apr 15
1
treatment of zero and negative elements in matrix indices
...eturned values when there is no error message). Is this the intended behavior? I couldn't see any comments about zeros or negative values in matrix indices in either ?"[" or Section 3.4.2 "Indexing matrices and arrays" of the "R Language Definition" (Version 2.0.1), or in Section 5.3 "Index arrays" of "An Introduction to R" (Version 2.1.0). (It looks like the special treatment of zeros and negative indices is being applied to the vector indices after they are derived by standard indexing arithmetic from the matrix indices -- so zero...
2008 Jul 24
4
Dividing by 0
I'm trying to calculate the percent change for a time-series variable. Basically the first several observations often look like this, x <- c(100, 0, 0, 150, 130, 0, 0, 200, 0) and then later in the life of the variable they're are generally no more 0's. So when I try to calculate the percent change from one observation to the next, I end up with a lot of NA/Nan/INF, and sometimes 0's which is what I want, in the beginning. I...
2010 May 18
1
proportion of treatment effect by a surrogate (fitting multivariate survival model)
...n's MULCOX2, SAS, and S-plus. Is this the way to fit such a model in R? Suppose I have variables: time, delta, treatment, and surrogate. Should I repeat the dataset (2x) and stack, creating the variables: time1 (time repeated 2x), delta1 (delta repeated 2x), treatment1 (same as treatment, but 0's for the 2nd set), treatment2 (0's in first set, then same as treatment), and surrogate2 (0's in first set, then same as treatment), and id (label the subject, so each id should have 2 observations). Thus, a dataset with n observations will become 2n observations. To fit, do fit <...
2010 Feb 19
3
Deleting colmuns with 0's and also writing multple csv files
Dear R helpers,   I have two queries.   (1) If the dataset contains some variables having all the entries = 0 and while analysing I want to delete those pericular columns, how do acheive this. i.e.   dataset1   sr_no    var1      var2       var3        var4        var5 1           5           0          3              1           0 2           3           0          2              9           0 3          ...
2007 Feb 14
2
frame of silence
Okay, you've answered part of my question, which is "What value equals silence?". I assume then that a (decoded) frame of silence would be a buffer the size of my frame (320 bytes) full of 0's. Passing this frame (a frame of all 0's) through the encoder causes it to blowup though.. In response to your answer below, I don't think I want to overwrite the decoded audio output since I don't want to lose any "voice", I only want to interpo...
2007 Nov 20
1
Vectorization/Speed Problem
Hi, I cannot find a 'vectorized' solution to this 'for loop' kind of problem. Do you see a vectorized, fast-running solution? Objective: Take the value of X at each timepoint and calculate the corresponding value of Y. Leading 0's and all 1's for X are assigned to Y; otherwise Y is incremented by the number of 0's adjacent to the last 1. The frequency and distribution of X vary widely and may have ~100 repeated 0's or 1's in a vector of 10k timepoints. Example: time 1 2 3 4 5 6 7 8 9...
2009 Aug 26
1
Batch replacement, by factor, of values in a data frame
Dear List, I'm wondering if there is a better/cleaner/more efficient way of replacing 0 values in a variable with the minimum of the non-missing and non-zero values of that same variable, but doing it within the levels of a factor? Consider the dummy example data presented at the end of my message. Within each 'Site' there are some 0 values and possibly some NA's. I can c...
2009 Jun 23
1
Error in .subset(x, j) : only 0's may be mixed with negative subscripts
I have a data set called datastep4 with 211484 rows and 95 columns > dim(datastep4) [1] 211484 95 The first few column names are given below, note the first one is "RESPONDED" > names(datastep4)[1:5] [1] "RESPONDED" "VAR_30" "VAR_31" "VAR_32" "VAR_33" A table of RESPONDED shows mostly zeros > table(datastep4$RESPONDED) 0 1 210582 902 I reduce the data set by pulling out the RESPONDED column, then verify all is well > test <- data...
2008 Jun 13
6
[LLVMdev] VFCmp failing when unordered or UnsafeFPMath on x86
...e and using an unordered compare. Could someone look into this? While I'm at it, is there any reason why only the most significant bit of the return value of VFCmp is defined (according to the documentation)? Both AltiVec and SSE set the components of the result to either all 1's or all 0's. Having only the most significant bit doesn't seem useful to me at all, and (arithmetic) shifting vectors to replicate the bit isn't supported. Thanks! Nicolas Capens -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pip...