The data set for "combined" is pretty huge, but a few columns looks like
this, so just picture it with 187 columns:
dw_area vdw_vol vsa_acc vsa_acid vsa_base vsa_donvsa_hyd
1 0.8322680 0.93714800 -0.478551 -0.2791860 -0.724420 1.4647400
2 1.8746300 1.2639 0.23148
It's high time for a small, reproducible example. Don't say, "for
example", *give* us an example in R.
That being said, something like
combined[!names(combined) %in% names(miceSample)]
might be a start...
Addi Wei wrote:
But "miceSample" has multiple columns... For example if nvars=4, I ha
But "miceSample" has multiple columns... For example if nvars=4, I have 4
columns of data to delete from "combined".
Specifically, I have 187 columns in "combined", and "miceSample" only has 4
columns. So the new data frame should have 183 columns.
--
View this message in context:
http://r
On Jul 15, 2010, at 2:37 PM, Addi Wei wrote:
>
> e.g. I have a big data set called "combined", and then a small sample of
> "combined" called "miceSample". I wish to delete "miceSample" from
> "combined" to create a new smaller data set and store it into a new object.
>
> combined <- rbind(sca
e.g. I have a big data set called "combined", and then a small sample of
"combined" called "miceSample". I wish to delete "miceSample" from
"combined" to create a new smaller data set and store it into a new object.
combined <- rbind(scaleMiceTrain, scaleMiceTest)
miceSample <- sample(combined[
5 matches
Mail list logo