Hello, again.
Inline.
Em 15-07-2012 16:17, Charles Stangor escreveu:
Rui,
Since you are so generous, may I ask you one more question? What is the
deal with the text after the semicolon in the statement below? Is this
an ifelse or something? Why is it needed ?
obrigado.
df1 <- read.table(te
Hello,
Thank you, I'm gald it helped. Two notes.
1. I don't believe 1t's a problem with the documentation, though many
times, and R is not an exception, there are books that explain in
simpler terms what the docs alreay explain well. Check out the
"contributed" link in http://cran.r-project.o
OK, I need help!!
I've been searching, but I don't understand the logic of some this
dataframe addressing syntax.
What is this type of code called?
test [["v3"]] [is.na(test[["v2"]])] <-10 #choose column v3 where column v2
is == 4 and replace with 10
and where is it documented?
The code belo
Hello,
It's more simple than you believe it is. One thing at a time.
First, in order to lighten the instructions, create index vectors.
test2 <- test # save 'test' for later
na.v1 <- is.na(test[["v1"]])
na.v2 <- is.na(test[["v2"]])
na.v3 <- is.na(test[["v3"]])
Now use them.
test[[ "result
4 matches
Mail list logo