If I have DF1 as such:
a <- c(5,10,15)
b <- c(5,10,15)
c <- c(5,10,15)
DF1 <- data.frame(a,b,c)
DF1
a b c
1 5 5 5
2 10 10 10
3 15 15 15
How would I remove the bottom right half of the square such that the result looks like:
a b c
1 5 5 5
2 10 10 NA
3 15 NA NA