Displaying 2 results from an estimated 2 matches for "newmydata".
Did you mean:
newdata
2018 May 08
2
Dinamic variables in loop
Hello,
I am a newbie in R and I have a problem.
I want this line:
newMyData <-MyData[!(is.na(col1)) | !(is.na(col2)) | !(is.na(col3)) | !(
is.na(col4)) | !(is.na(col5)),]
write in for loop. The number of col[number] may be different from 3 to 8
Is there any ideas?
Thank you
Laura
[[alternative HTML version deleted]]
2018 May 08
0
Dinamic variables in loop
...en body
of data. ~ John Tukey
///////////////////////////////////////////////////////////////////////////////////////////
2018-05-08 13:57 GMT+02:00 Laura Ringien? <lauraringiene at gmail.com>:
> Hello,
>
> I am a newbie in R and I have a problem.
> I want this line:
>
> newMyData <-MyData[!(is.na(col1)) | !(is.na(col2)) | !(is.na(col3)) | !(
> is.na(col4)) | !(is.na(col5)),]
>
> write in for loop. The number of col[number] may be different from 3 to 8
>
> Is there any ideas?
>
> Thank you
> Laura
>
> [[alternative HTML version delete...