First of all, thanks for your help an other once, and I hope I will understandable (I'm French PhD Student). I hope I ask the question in the correct section.
I give you my R code and I explain my problem :
a9g_test = a9g
numLine = 1
for (line in a9g_test$Differency.Time) {
if (is.character(a9g_test[numLine, 2]) == "N/A") {
a9g_test = a9g_test[-c(numLine), ]
}
numLine = numLine + 1
}
This above code doesn't works. When I run it, it don't remove lines with "N/A". I don't understand why.
My objective : I want to remove all lines with "N/A" in my dataframe (the text "N/A" is in my second column).
a9g_test <- data.frame(col1=seq(1:9), col2=c(
"Yesterday",
"All my troubles seemed so far away",
"Now it looks as though they're here to stay",
"Oh, I believe in yesterday",
"Verse 2, N/A",
"Suddenly",
"I'm not half the man I used to be",
"There's a shadow hanging over me",
"Oh, yesterday came suddenly")
)