Displaying 2 results from an estimated 2 matches for "let1".
Did you mean:
let
2010 Mar 31
1
position of mismatches in all.equal()?
...The reason I do that is that I got 2 datasets from two different methods
and I would like to be sure that each method used the same data (3D
images) to extract 2 different sets of 3D parameters. Is it clear so far?
So I thought about using all.equal() like this:
test1 <- data.frame(num=1:10, let1=letters[1:10], let2=letters[1:10])
test2 <- data.frame(num=1:10, let1=letters[1:10], let2=letters[c(1:6, 6,
8:10)])
Since I want to compare only some columns, I do this:
> all.equal(test1[,1:2], test2[,1:2])
[1] TRUE
> all.equal(test1[,1:3], test2[,1:3])
[1] "Component 3: Attribut...
2013 Mar 13
5
string split at xth position
Hi,
I have a vector of strings like:
c("a1b1","a2b2","a1b2") which I want to spilt into two parts like:
c("a1","a2","a2") and c("b1","b2,"b2"). So there is
always a first part with a+number and a second part with b+number.
Unfortunately there is no separator I could use to directly split
the vectors.. Any idea