D.R.
I think it would be ok to take her w/you to the funeral. I remember going to funerals when I was a little girl around the same age. My parents talked w/me & explained to me before about it. I was ok & I went up to the casket to say good bye. I think leave it up to her to go up to the casket or not. But I don't think she is too young to go to a funeral. She is old enough to understand now.
My son is 6 yrs old & if someone was to pass away that he knew, I would take him to their funeral. He is already well aware of people die & their spirits go up to heaven. We always talk about it because I have an older brother who died when I was in 4th grade. So he is always asking about his "Uncle Rene."
I pray the best for you & family.