Hi guys,
Suppose I have 2 data frames ie:
values
one0.32
two0.25
three 0.11
and
values
two0.66
one0.74
three 0.19
nb the first column is the row names in both cases
How can I combine them on the row names column? Ie to make something like
values.
Hi guys,
I want to create variable on the fly: for example
for (i in 1:10) {
cat(paste("VAR",i,sep=""))
}
Will print VAR1, VAR2 etc up to VAR10. However I want to make these into
variables, and then give them a value, for example:
vect = c(10:20)
for (i in 1:10) {
cat(paste("VAR",i,sep
So imagine I have a vector:
zz = c("a","c","d","b")
and another vector:
xx = c("d","c","a","b")
I need to get xx in the same order as zz. I am sure this is very simple but
I can't figure it out from the help pages for order or sort. Perhaps I'm not
trying hard enough but its been bugging me fo
Is there a way of reading in a file in a way that each line becomes a vector:
for example:
meals.txt
breakfastbaconeggssausage
lunchsandwichapplemarsbarcrisps
dinnerchickenricecustardpie
I want to read in this file and end up with 3 different vectors,
4 matches
Mail list logo