Re: [R] 32bit application

2023-06-28 Thread Ivan Krylov
On Wed, 28 Jun 2023 08:54:14 +0530 Venky Vulpine wrote: > [image: image.png] Please copy and paste the error text from the command line window. For historical reasons, you need to use Ctrl+Insert in order to copy text from it and Shift+Insert in order to paste text into it. It seems that the as

Re: [R] 32bit application

2023-06-28 Thread Ivan Krylov
On Wed, 28 Jun 2023 13:02:41 +0530 Venky Vulpine wrote: > C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: skipping > incompatible > c:/rtools42/x86_64-w64-mingw32.static.posix/bin/../lib/gcc/x86_64-w64-mingw32.static.posix/10.4.0/../../../libmingw32.a > when searching for -lmingw32 This

[R] Plotting factors in graph panel

2023-06-28 Thread Anupam Tyagi
Hello, I want to plot the following kind of data (percentage of respondents from a survey) that varies by Income into many small *line* graphs in a panel of graphs. I want to omit "No Answer" categories. I want to see how each one of the categories (percentages), "None", " Equity", etc. varies by

Re: [R] Plotting factors in graph panel

2023-06-28 Thread PIKAL Petr
Hi You probably can use any package including base R for such plots. 1. Posting in HTML scrambles your date so they are barely readable. 2. Use dput(head(yourdata, 20)) and copy the output to your mail to show how your data look like. Although it seems to be not readable, R will consumes it freel

Re: [R] Plotting factors in graph panel

2023-06-28 Thread Jim Lemon
Hi Anupam, Haven't heard from you in a long time. Perhaps you want something like this: at_df<-read.table(text= "Income MF MF_None MF_Equity MF_Debt MF_Hybrid Bank_None Bank_Current Bank_Savings Bank_NA $10 1 3.05 29.76 31.18 36.0 46.54 24.75 25.4 3.307 $25 2 2.29 28.79 32.64 36.27 54.01 24.4 1

[R] Line Directives in Sweave Document

2023-06-28 Thread Iris Simmons
Hello, I'm trying to demonstrate the behaviour of my R package and how line directives change that behaviour. So I've got an R chunk like this: <>= { #line 1 "file1.R" fun <- function() { pkg::fun() } #line 1 "file2.R" fun() } @ but when it is rendered, the line directives

Re: [R] 32bit application

2023-06-28 Thread Venky Vulpine
After doing "make clean". I entered the "make all recommended MULTI=32" and got the following error: make all recommended MULTI=32 make[1]: 'MkRules' is up to date. make --no-print-directory -C front-ends Rpwd make -C ../../include -f Makefile.win version make Rpwd.exe gcc -std=gnu99 -m32 -I../../

Re: [R] 32bit application

2023-06-28 Thread Venky Vulpine
After running " pacman -S mingw-w64-i686-gcc", it installed 15 packages. Then I ran the " make all recommended MULTI=32" command. But it still shows the same issue. It will be great if somewhere I get a 32bit installer for newer R versions. But it seems it is discontinued. Anyway, thanks @Ivan Kryl

Re: [R] Line Directives in Sweave Document

2023-06-28 Thread Duncan Murdoch
On 28/06/2023 1:39 a.m., Iris Simmons wrote: Hello, I'm trying to demonstrate the behaviour of my R package and how line directives change that behaviour. So I've got an R chunk like this: <>= { #line 1 "file1.R" fun <- function() { pkg::fun() } #line 1 "file2.R" fun(

Re: [R] 32bit application

2023-06-28 Thread Ivan Krylov
В Wed, 28 Jun 2023 13:25:21 +0530 Venky Vulpine пишет: > After running " pacman -S mingw-w64-i686-gcc", it installed 15 > packages. Then I ran the " make all recommended MULTI=32" command. > But it still shows the same issue. Here's what I've been able to find out. In addition to mingw-w64-i686

[R] horizontal grouped stacked plots and removing space between bars

2023-06-28 Thread Ana Marija
I have code like this: data <- read.csv("test1.csv", stringsAsFactors=FALSE, header=TRUE) # Graph myplot=ggplot(data, aes(fill=condition, y=value, x=condition)) + geom_bar(position="dodge", stat="identity", width=0.5) + scale_fill_manual(values=c("#7b3294", "#c2a5cf", "#a6dba0", "#0088

[R] replacing unicode characters

2023-06-28 Thread Adrian Dușa
Dear list, Building on the example from ?iconv: x <- "fa\xE7ile" xx <- iconv(x, "latin1", "UTF-8") # "façile" and: iconv(xx, "UTF-8", "ASCII", "Unicode") # "faile" This is the type of result I sometimes get from an R script that I cannot reproduce here, because it depends on a terminal process

[R] Processing a hierarchical string name

2023-06-28 Thread Kevin Zembower via R-help
Hello, all I'm trying to process the names of the variables in the US Census database, that I'm retrieving with tidycensus. My end goal is to produce nicely formatted tables with natural labels. The labels as downloaded from the US Census look like this: ## Get the P1 table for block group 3 i

Re: [R] Processing a hierarchical string name

2023-06-28 Thread Ivan Krylov
On Wed, 28 Jun 2023 20:29:23 + Kevin Zembower via R-help wrote: > I think my algorithm for the labels is: > 1. keep everything from the last "!!" up to and including the last > character > 2. for everything remaining, replace each "!!.*:" group with a single > space. If you remove the initia

Re: [R] Processing a hierarchical string name

2023-06-28 Thread Bert Gunter
I probably misunderstand what you want to do, but for: test <- c(" !!Total:", " !!Total:!!Population of one race:", " !!Total:!!Population of one race:!!White alone", " !!Total:!!Population of one race:!!Black or African American alone", " !!Total:!!Population of one race:!!American Indian and Alas

[R] Fwd: Processing a hierarchical string name

2023-06-28 Thread Bert Gunter
Sorry, not cc'ed to the list. -- Forwarded message - From: Bert Gunter Date: Wed, Jun 28, 2023 at 4:18 PM Subject: Re: [R] Processing a hierarchical string name To: Ivan Krylov Cc: Kevin Zembower via R-help I probably misunderstand what you want to do, but for: test <- c(" !!T

[R] LINUX SuSE15.4 (GNU & Intel) compiler problem in "configure" file

2023-06-28 Thread Jannie Pretorius
Dear R-Support Team: I am fully aware that you are all extremely busy and forward this request as brief and clear as possible: Thank you for the comprehensive Documentation for R-4.3.1 (very helpful) A limitation seems to have emerged, using SuSE SP15.4 (kernel: 5.14.21-150400.22) on an I

Re: [R] replacing unicode characters

2023-06-28 Thread Iris Simmons
Hiya! You can do this by specifying sub="c99" instead of "Unicode": ```R x <- "fa\xE7ile" xx <- iconv(x, "latin1", "UTF-8") iconv(xx, "UTF-8", "ASCII", "c99") ``` produces: ``` > x <- "fa\xE7ile" > xx <- iconv(x, "latin1", "UTF-8") > iconv(xx, "UTF-8", "ASCII", "c99") [1] "fa\\u00e7ile" > ```

Re: [R] Plotting factors in graph panel

2023-06-28 Thread Anupam Tyagi
Thanks, Pikal and Jim. Yes, it has been a long time Jim. I hope you have been well. Pikal, thanks. Your solution may be close to what I want. I did not know that I was posting in HTML. I just copied the data from Excel and posted in the email in Gmail. The data is still in Excel, because I have no

Re: [R] LINUX SuSE15.4 (GNU & Intel) compiler problem in "configure" file

2023-06-28 Thread Ivan Krylov
On Wed, 28 Jun 2023 16:55:33 +0500 Jannie Pretorius wrote: > ./configure: line 24446: ${}: bad substitution > ## Export LD_LIBRARY_PATH or equivalent. > if eval "test -z \"\*${*${Rshlibpath_var}*}*\""; then > eval "${Rshlibpath_var}=\"${R_LD_LIBRARY_PATH}\"" > else

Re: [R] horizontal grouped stacked plots and removing space between bars

2023-06-28 Thread PIKAL Petr
Hi Anamaria Thanks for the data. See in line. > -Original Message- > From: R-help On Behalf Of Ana Marija > Sent: Wednesday, June 28, 2023 6:00 PM > To: r-help > Subject: [R] horizontal grouped stacked plots and removing space between > bars > > I have code like this: > > data <

Re: [R] Plotting factors in graph panel

2023-06-28 Thread PIKAL Petr
Hi Anupam Using Jim's data library(reshape2) at_long <- melt(at_df) at_long$innum <- as.numeric(as.factor(at_long$Income)) ggplot(at_long, aes(x=innum, y=value)) + geom_path() + facet_wrap(~variable, ncol=1) is probably close to what you want. You need to fiddle with labels, facets variable n