r

Convert English numbers to Persian numbers for ggplot

删除回忆录丶 提交于 2021-02-10 04:14:48
问题 The bounty expires in 3 days . Answers to this question are eligible for a +50 reputation bounty. markus wants to draw more attention to this question. I am working on a data visualization project using ggplot2 . All numbers obtained in the plot (Includes axis-x and axis-y and numbers inside the plot) are in English format like the below plot: but I want the numbers in all plots to be Persian (e.g., ۲۰۱۵ instead of 2015). I have many plots with different numbers. Can anyone help me to convert

How can I tokenize a text column in R? unnest function not working

[亡魂溺海] 提交于 2021-02-10 04:02:44
问题 I am a new R user. Will really appreciate if you can help me with solving the tokenization problem: My task in brief: I am trying to import a text file in into R. One of the text columns is Headline. The dataset is basically a collection of news articles related to a disease. Issue: I have tried many times to tokenize it using the unnest_tokens function. It is showing me the following error messages: Error in UseMethod("unnest_tokens_") : no applicable method for 'unnest_tokens_' applied to

How can I tokenize a text column in R? unnest function not working

强颜欢笑 提交于 2021-02-10 04:01:49
问题 I am a new R user. Will really appreciate if you can help me with solving the tokenization problem: My task in brief: I am trying to import a text file in into R. One of the text columns is Headline. The dataset is basically a collection of news articles related to a disease. Issue: I have tried many times to tokenize it using the unnest_tokens function. It is showing me the following error messages: Error in UseMethod("unnest_tokens_") : no applicable method for 'unnest_tokens_' applied to

How can I tokenize a text column in R? unnest function not working

末鹿安然 提交于 2021-02-10 04:01:27
问题 I am a new R user. Will really appreciate if you can help me with solving the tokenization problem: My task in brief: I am trying to import a text file in into R. One of the text columns is Headline. The dataset is basically a collection of news articles related to a disease. Issue: I have tried many times to tokenize it using the unnest_tokens function. It is showing me the following error messages: Error in UseMethod("unnest_tokens_") : no applicable method for 'unnest_tokens_' applied to

Creating Dummy Variables from List

北慕城南 提交于 2021-02-10 03:21:15
问题 So I'm trying to create dummy variables to attach to a data frame based on whether or not a specific column of the frame has specific words in it. The column would look something like this: dumcol = c("good night moon", "good night room", "good morning room", "hello moon") and I'd be creating dummy variables based on which words are contained in each row, e.g. for the first one, it contains "good", "night", and "moon" , but not "room", "morning" or "hello" . The way I've been going about it

Creating Dummy Variables from List

瘦欲@ 提交于 2021-02-10 03:21:05
问题 So I'm trying to create dummy variables to attach to a data frame based on whether or not a specific column of the frame has specific words in it. The column would look something like this: dumcol = c("good night moon", "good night room", "good morning room", "hello moon") and I'd be creating dummy variables based on which words are contained in each row, e.g. for the first one, it contains "good", "night", and "moon" , but not "room", "morning" or "hello" . The way I've been going about it

Creating Dummy Variables from List

杀马特。学长 韩版系。学妹 提交于 2021-02-10 03:18:27
问题 So I'm trying to create dummy variables to attach to a data frame based on whether or not a specific column of the frame has specific words in it. The column would look something like this: dumcol = c("good night moon", "good night room", "good morning room", "hello moon") and I'd be creating dummy variables based on which words are contained in each row, e.g. for the first one, it contains "good", "night", and "moon" , but not "room", "morning" or "hello" . The way I've been going about it

Creating Dummy Variables from List

瘦欲@ 提交于 2021-02-10 03:17:41
问题 So I'm trying to create dummy variables to attach to a data frame based on whether or not a specific column of the frame has specific words in it. The column would look something like this: dumcol = c("good night moon", "good night room", "good morning room", "hello moon") and I'd be creating dummy variables based on which words are contained in each row, e.g. for the first one, it contains "good", "night", and "moon" , but not "room", "morning" or "hello" . The way I've been going about it

Problem with Rcmd.exe when installing packages

被刻印的时光 ゝ 提交于 2021-02-10 03:16:41
问题 I'm getting the following error when installing packages from github: > devtools::install_github("pmartinezarbizu/pairwiseAdonis/pairwiseAdonis") Downloading GitHub repo pmartinezarbizu/pairwiseAdonis@HEAD Erro: Failed to install 'pairwiseAdonis' from GitHub: System command 'Rcmd.exe' failed, exit status: -1, stdout + stderr empty With find_rtools, I get the following message (I was reading these posts, but couldn't solve my problem: https://github.com/r-lib/devtools/issues/2031 and R CMD

Problem with Rcmd.exe when installing packages

两盒软妹~` 提交于 2021-02-10 03:15:24
问题 I'm getting the following error when installing packages from github: > devtools::install_github("pmartinezarbizu/pairwiseAdonis/pairwiseAdonis") Downloading GitHub repo pmartinezarbizu/pairwiseAdonis@HEAD Erro: Failed to install 'pairwiseAdonis' from GitHub: System command 'Rcmd.exe' failed, exit status: -1, stdout + stderr empty With find_rtools, I get the following message (I was reading these posts, but couldn't solve my problem: https://github.com/r-lib/devtools/issues/2031 and R CMD