Displaying 6 results from an estimated 6 matches for "list2df".
Did you mean:
list2
2012 Jan 11
3
turning a list of vectors into a data.frame (as rows of the DF)?
As a newer R practicioner, it seems I stump myself weekly (at least) with issues that have spinning my wheels. Here is yet another... I'm trying to turn a list of numeric vectors (of uneual length) inot a dataframe. Each vector held in the list represents a row, and there are some rows of unequal length. I would like NAs as placeholders for "missing" data in the shorter vectors.
2023 Mar 02
1
transform.data.frame() ignores unnamed arguments when no named argument is provided
...ys be ignored with a warning. My feeling is
that these would more often be usage errors than intentional, e.g.:
> data.frame(a = 1) |> transform(b = 2, a + 2) # "forgetting" a=
a b X3
1 1 2 3
I also think the implicit check.names=TRUE behaviour should be disabled. In
> list2DF(list(`A-1` = 1)) |> transform(B = 2)
A.1 B
1 1 2
transforming B should not touch the other columns.
I'm less sure about some other forms of undocumented behaviour as
described in Comment 6 of the linked PR.
Sebastian Meyer
Am 02.03.23 um 18:49 schrieb Antoine Fabri:
> Dear r-d...
2023 Mar 02
1
transform.data.frame() ignores unnamed arguments when no named argument is provided
Dear r-devel,
See below:
transform(data.frame(a = 1), 2, 3)
#> a
#> 1 1
transform(data.frame(a = 1), b=2, 3)
#> a b X3
#> 1 1 2 3
We need a small modification to make it work consistently, see below:
transform.data.frame <- function (`_data`, ...) {
e <- eval(substitute(list(...)), `_data`, parent.frame())
tags <- names(e)
## NEW LINE
2020 Apr 24
0
R 4.0.0 is released
...files(), normalizePath() and path.expand())
treat this like any other non-existent file, often with a
warning.
* There is a new help document accessed by help("file path
encoding") detailing how file paths with marked encodings are
handled.
* New function list2DF() for creating data frames from lists of
variables.
* iconv() has a new option sub = "Unicode" to translate UTF-8 input
invalid in the to encoding using <U+xxxx> escapes.
* There is a new function infoRDS() providing information about the
serialization fo...
2020 Apr 24
0
R 4.0.0 is released
...files(), normalizePath() and path.expand())
treat this like any other non-existent file, often with a
warning.
* There is a new help document accessed by help("file path
encoding") detailing how file paths with marked encodings are
handled.
* New function list2DF() for creating data frames from lists of
variables.
* iconv() has a new option sub = "Unicode" to translate UTF-8 input
invalid in the to encoding using <U+xxxx> escapes.
* There is a new function infoRDS() providing information about the
serialization fo...
2020 Apr 24
0
R 4.0.0 is released
...files(), normalizePath() and path.expand())
treat this like any other non-existent file, often with a
warning.
* There is a new help document accessed by help("file path
encoding") detailing how file paths with marked encodings are
handled.
* New function list2DF() for creating data frames from lists of
variables.
* iconv() has a new option sub = "Unicode" to translate UTF-8 input
invalid in the to encoding using <U+xxxx> escapes.
* There is a new function infoRDS() providing information about the
serialization fo...