Hi

data[, -5] without fifth column
data[-5,] without fifth row
 rbind(data[1:2,], NA, data[3:4,]) insert row of NA

Regards

Petr
[EMAIL PROTECTED]

[EMAIL PROTECTED] napsal dne 31.01.2008 13:52:02:

> Hello all,
> 
> I have the following problem. I want to insert blank rows in an data 
frame
> so as to make it comparable with another data frame with more rows. How 
can
> I insert these rows?
> If this is not solvable, then, alternatively, is it easy to delete rows 
from
> a data frame?
> 
> Thanks for helping,
> Eleni
> 
>    [[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to