teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

sessionInfo()の結果を追記

2019/12/27 08:38

投稿

luluca
luluca

スコア23

title CHANGED
File without changes
body CHANGED
@@ -22,4 +22,37 @@
22
22
 
23
23
  調べるとこの問題って結構議論されているのですが、現状に適した解決策は分かりませんでした。
24
24
 
25
- お手数をおかけしますが、よろしくお願いします。
25
+ お手数をおかけしますが、よろしくお願いします。
26
+
27
+ 以下、環境情報を追記しました。
28
+ ```R
29
+ sessionInfo()
30
+ R version 3.6.2 (2019-12-12)
31
+ Platform: x86_64-w64-mingw32/x64 (64-bit)
32
+ Running under: Windows >= 8 x64 (build 9200)
33
+
34
+ Matrix products: default
35
+
36
+ Random number generation:
37
+ RNG: Mersenne-Twister
38
+ Normal: Inversion
39
+ Sample: Rounding
40
+
41
+ locale:
42
+ [1] LC_COLLATE=Japanese_Japan.932 LC_CTYPE=Japanese_Japan.932 LC_MONETARY=Japanese_Japan.932
43
+ [4] LC_NUMERIC=C LC_TIME=Japanese_Japan.932
44
+
45
+ attached base packages:
46
+ [1] stats graphics grDevices utils datasets methods base
47
+
48
+ other attached packages:
49
+ [1] openxlsx_4.1.4 gtools_3.8.1 rjson_0.2.20 data.table_1.12.8 dplyr_0.8.3 stringi_1.4.3
50
+ [7] stringr_1.4.0 readxl_1.3.1 hash_2.2.6.1
51
+
52
+ loaded via a namespace (and not attached):
53
+ [1] Rcpp_1.0.3 rstudioapi_0.10 magrittr_1.5 tidyselect_0.2.5 R6_2.4.1 rlang_0.4.2
54
+ [7] fansi_0.4.0 tools_3.6.2 utf8_1.1.4 cli_2.0.0 yaml_2.2.0 assertthat_0.2.1
55
+ [13] tibble_2.1.3 crayon_1.3.4 zip_2.0.4 purrr_0.3.3 vctrs_0.2.1 zeallot_0.1.0
56
+ [19] glue_1.3.1 pbdZMQ_0.3-3 compiler_3.6.2 pillar_1.4.2 cellranger_1.1.0 backports_1.1.5
57
+ [25] pkgconfig_2.0.3
58
+ ```

1

2019/12/27 08:38

投稿

luluca
luluca

スコア23

title CHANGED
File without changes
body CHANGED
@@ -14,7 +14,7 @@
14
14
  - R studioの文字環境として「**UTF-8**」と「**Shift-JIS**」の両方で試しました。
15
15
  - Excelを読み込むライブラリとして**openxlsx**, **readxl**で試しましたが、ダメでした。
16
16
 
17
- 以下のようコードを書くとスクリプトからの実行でも変換できました。
17
+ Excelからではなく、以下のように直接変換するコードを書くとスクリプトからの実行でも変換できました。
18
18
  ```R
19
19
  str_replace_all("11〜12", "〜", "@")
20
20
  ```