subset-.data.frame: Bugfix for normal data.frame assignment

Description Usage Arguments See Also

Description

See also issue #17504 at R-bugzilla Can be used as a stand-in for the normal data.frame-assignment-method, but works around a bug: When assigning multiple columns and specifying rows, now there is no error thrown. Based on base::'[<-.data.frame' from R-devel, revision 75615 (so also fixes bug 17483)

Usage

1
2
## S3 replacement method for class 'data.frame'
x[i, j] <- value

Arguments

x

The data.frame into which to assign

i, j

Indices for row(s) and column(s)

value

The new values for replacement

See Also

[<-.data.frame


Dans-labs/R-package_EmilMisc documentation built on May 17, 2019, 6:07 a.m.