Greetings,
I'm using v2.2 here (not CRAN due to issue #17 ) and just noticed that colnames does not appear to be taking. A test:
> library(ascii)
> sessionInfo()
R version 3.3.0 (2016-05-03)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Arch Linux
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=C
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] ascii_2.2
> dat <- data.frame(id = letters[1:3], val = 1:3)
> dat
id val
1 a 1
2 b 2
3 c 3
> ascii(dat)
|====================
1.1+| h| id h| val
| 1 | a | 1.00
| 2 | b | 2.00
| 3 | c | 3.00
|====================
> ascii(dat, colnames = c("col1", "col2"))
|====================
1.1+| h| id h| val
| 1 | a | 1.00
| 2 | b | 2.00
| 3 | c | 3.00
|====================
I believe I supplied this correctly based on the docs:
colnames
Character vector (replicated or truncated as necessary) indicating colnames of the corresponding columns. If NULL (default) the column names are not modified
Is this on my end or a legitimate issue?
Greetings,
I'm using v2.2 here (not CRAN due to issue #17 ) and just noticed that
colnamesdoes not appear to be taking. A test:I believe I supplied this correctly based on the docs:
Is this on my end or a legitimate issue?