Displaying 20 results from an estimated 20 matches for "ikwsimmo".
2024 Oct 25
1
readLines() and unz() and non-empty final line
...it
> was explicitly opened before passed to readLines(). Should this be fixed or
> documented?
>
>
>
> Best,
>
>
>
> Mikko
>
>
>
> *From:* Bert Gunter <bgunter.4567 at gmail.com>
> *Sent:* Thursday, 24 October 2024 18:13
> *To:* Iris Simmons <ikwsimmo at gmail.com>
> *Cc:* Marttila Mikko <mikko.marttila at orionpharma.com>;
> r-help at r-project.org
> *Subject:* Re: [R] readLines() and unz() and non-empty final line
>
>
>
> You don't often get email from bgunter.4567 at gmail.com. Learn why this is
> importan...
2025 Jan 06
1
Extracting specific arguments from "..."
...tion(...)
{ pos <- match('a',...names())
if (is.na(pos))
stop("a is missing.")
(function(a,...) substitute(a)) (...)
}
Regards,
Jorgen Harmse.
Message: 8
Date: Sun, 5 Jan 2025 11:17:02 -0800
From: Bert Gunter <bgunter.4567 at gmail.com>
To: Iris Simmons <ikwsimmo at gmail.com>
Cc: R-help <R-help at r-project.org>
Subject: Re: [R] Extracting specific arguments from "..."
Message-ID:
<CAGxFJbROnopt-boDF6sRPP79bWUcPPOO3+ycDGN3y-YTDU5b6Q at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Thanks, Iris.
That i...
2024 Oct 24
3
readLines() and unz() and non-empty final line
...:
> zip("hello.zip", "hello.txt")
updating: hello.txt (stored 0%)
> readChar(unz("hello.zip","hello.txt"),100)
[1] "hello"
I leave it to you and other wiser heads to figure out.
Cheers,
Bert
On Thu, Oct 24, 2024 at 8:57?AM Iris Simmons <ikwsimmo at gmail.com> wrote:
> Hi Mikko,
>
>
> I tried running a few different things, and it seems as though
> explicitly using `open()` and opening a blocking connection works.
>
> ```R
> cat("hello", file = "hello.txt")
> zip("hello.zip", &quo...
2025 Jan 06
1
Extracting specific arguments from "..."
...("a is missing.")
>
> (function(a,...) substitute(a)) (...)
>
> }
>
>
>
> Regards,
>
> Jorgen Harmse.
>
>
>
> Message: 8
> Date: Sun, 5 Jan 2025 11:17:02 -0800
> From: Bert Gunter <bgunter.4567 at gmail.com>
> To: Iris Simmons <ikwsimmo at gmail.com>
> Cc: R-help <R-help at r-project.org>
> Subject: Re: [R] Extracting specific arguments from "..."
> Message-ID:
> <
> CAGxFJbROnopt-boDF6sRPP79bWUcPPOO3+ycDGN3y-YTDU5b6Q at mail.gmail.com>
> Content-Type: text/plain; charset="ut...
2025 Jan 06
2
Extracting specific arguments from "..."
...("a is missing.")
>
> (function(a,...) substitute(a)) (...)
>
> }
>
>
>
> Regards,
>
> Jorgen Harmse.
>
>
>
> Message: 8
> Date: Sun, 5 Jan 2025 11:17:02 -0800
> From: Bert Gunter <bgunter.4567 at gmail.com>
> To: Iris Simmons <ikwsimmo at gmail.com>
> Cc: R-help <R-help at r-project.org>
> Subject: Re: [R] Extracting specific arguments from "..."
> Message-ID:
> <
> CAGxFJbROnopt-boDF6sRPP79bWUcPPOO3+ycDGN3y-YTDU5b6Q at mail.gmail.com>
> Content-Type: text/plain; charset="ut...
2023 Aug 06
1
Stacking matrix columns
...4
> ## in painful and unnecessary detail as dim() should be used instead
> attr(x, "dim") <- NULL
> is.matrix(x)
[1] FALSE
> x
[1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
## well, you get it...
-- Bert
On Sat, Aug 5, 2023 at 5:21?PM Iris Simmons <ikwsimmo at gmail.com> wrote:
>
> You could also do
>
> dim(x) <- c(length(x), 1)
>
> On Sat, Aug 5, 2023, 20:12 Steven Yen <styen at ntu.edu.tw> wrote:
>
> > I wish to stack columns of a matrix into one column. The following
> > matrix command does it. Any other...
2025 Jan 07
1
Extracting specific arguments from "..."
...stitute(a)) (...)
>>
>> }
>>
>>
>>
>> Regards,
>>
>> Jorgen Harmse.
>>
>>
>>
>> Message: 8
>> Date: Sun, 5 Jan 2025 11:17:02 -0800
>> From: Bert Gunter <bgunter.4567 at gmail.com>
>> To: Iris Simmons <ikwsimmo at gmail.com>
>> Cc: R-help <R-help at r-project.org>
>> Subject: Re: [R] Extracting specific arguments from "..."
>> Message-ID:
>> <
>> CAGxFJbROnopt-boDF6sRPP79bWUcPPOO3+ycDGN3y-YTDU5b6Q at mail.gmail.com>
>> Content-Type: text...
2025 Jan 07
1
Extracting specific arguments from "..."
...> >>
> >> Regards,
> >>
> >> Jorgen Harmse.
> >>
> >>
> >>
> >> Message: 8
> >> Date: Sun, 5 Jan 2025 11:17:02 -0800
> >> From: Bert Gunter <bgunter.4567 at gmail.com>
> >> To: Iris Simmons <ikwsimmo at gmail.com>
> >> Cc: R-help <R-help at r-project.org>
> >> Subject: Re: [R] Extracting specific arguments from "..."
> >> Message-ID:
> >> <
> >> CAGxFJbROnopt-boDF6sRPP79bWUcPPOO3+ycDGN3y-YTDU5b6Q at mail.gmail.com>
&g...
2024 Oct 25
1
readLines() and unz() and non-empty final line
...t")
> updating: hello.txt (stored 0%)
>> readChar(unz("hello.zip","hello.txt"),100)
> [1] "hello"
>
> I leave it to you and other wiser heads to figure out.
>
> Cheers,
> Bert
>
> On Thu, Oct 24, 2024 at 8:57?AM Iris Simmons <ikwsimmo at gmail.com> wrote:
>
>> Hi Mikko,
>>
>>
>> I tried running a few different things, and it seems as though
>> explicitly using `open()` and opening a blocking connection works.
>>
>> ```R
>> cat("hello", file = "hello.txt")...
2023 Aug 06
1
Stacking matrix columns
...) should be used instead
> > attr(x, "dim") <- NULL
> > is.matrix(x)
> [1] FALSE
> > x
> [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
>
> ## well, you get it...
>
> -- Bert
>
> On Sat, Aug 5, 2023 at 5:21?PM Iris Simmons <ikwsimmo at gmail.com> wrote:
> >
> > You could also do
> >
> > dim(x) <- c(length(x), 1)
> >
> > On Sat, Aug 5, 2023, 20:12 Steven Yen <styen at ntu.edu.tw> wrote:
> >
> > > I wish to stack columns of a matrix into one column. The following
>...
2023 Aug 06
1
Stacking matrix columns
...) should be used instead
> > attr(x, "dim") <- NULL
> > is.matrix(x)
> [1] FALSE
> > x
> [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
>
> ## well, you get it...
>
> -- Bert
>
> On Sat, Aug 5, 2023 at 5:21?PM Iris Simmons <ikwsimmo at gmail.com> wrote:
> >
> > You could also do
> >
> > dim(x) <- c(length(x), 1)
> >
> > On Sat, Aug 5, 2023, 20:12 Steven Yen <styen at ntu.edu.tw> wrote:
> >
> > > I wish to stack columns of a matrix into one column. The following
>...
2023 Aug 06
1
Stacking matrix columns
...im") <- NULL
> > > is.matrix(x)
> > [1] FALSE
> > > x
> > [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
> >
> > ## well, you get it...
> >
> > -- Bert
> >
> > On Sat, Aug 5, 2023 at 5:21?PM Iris Simmons <ikwsimmo at gmail.com> wrote:
> > >
> > > You could also do
> > >
> > > dim(x) <- c(length(x), 1)
> > >
> > > On Sat, Aug 5, 2023, 20:12 Steven Yen <styen at ntu.edu.tw> wrote:
> > >
> > > > I wish to stack columns of a m...
2025 Jan 18
1
Parser For Line Number Tracing
Hi Ivo,
I maintain 'package:this.path' that I believe does what you want. I
regularly add this to my own code when I need to:
warning(sprintf("remove this later at %s#%d",
this.path::try.this.path(), this.path::LINENO()), call. = FALSE,
immediate. = TRUE)
Of course, modify as needed.
Regards,
Iris
On Sat, Jan 18, 2025 at 6:41?PM Ivo Welch <ivo.welch at gmail.com>
2025 Jan 07
2
Extracting specific arguments from "..."
...rch;
Division of Gerontology and Paliative Care,
10 North Greene Street
GRECC (BT/18/GR)
Baltimore, MD 21201-1524
Cell phone 443-418-5382
________________________________________
From: Jorgen Harmse <JHarmse at roku.com>
Sent: Tuesday, January 7, 2025 1:47 PM
To: r-help at r-project.org; ikwsimmo at gmail.com; Bert Gunter; Sorkin, John; jdnewmil at dcn.davis.ca.us
Subject: Re: Extracting specific arguments from "..."
Interesting discussion. A few things occurred to me.
Apologies to Iris Simmons: I mixed up his answer with Bert's question.
Bert raises questions about promise...
2023 Aug 06
2
Stacking matrix columns
You could also do
dim(x) <- c(length(x), 1)
On Sat, Aug 5, 2023, 20:12 Steven Yen <styen at ntu.edu.tw> wrote:
> I wish to stack columns of a matrix into one column. The following
> matrix command does it. Any other ways? Thanks.
>
> > x<-matrix(1:20,5,4)
> > x
> [,1] [,2] [,3] [,4]
> [1,] 1 6 11 16
> [2,] 2 7 12 17
> [3,]
2024 Sep 07
1
Reading a txt file from internet
That looks like a UTF-16LE byte order mark. Simply open the connection
with the proper encoding:
read.delim(
'https://online.stat.psu.edu/onlinecourses/sites/stat501/files/ch15/employee.txt',
fileEncoding = "UTF-16LE"
)
On Sat, Sep 7, 2024 at 3:57?PM Christofer Bogaso
<bogaso.christofer at gmail.com> wrote:
>
> Hi,
>
> I am trying to the data from
>
2024 Jul 20
2
Using the pipe, |>, syntax with "names<-"
It should be written more like this:
```R
z <- data.frame(a = 1:3, b = letters[1:3])
z |> names() |> _[2] <- "foo"
z
```
Regards,
Iris
On Sat, Jul 20, 2024 at 4:47?PM Bert Gunter <bgunter.4567 at gmail.com> wrote:
>
> With further fooling around, I realized that explicitly assigning my
> last "solution" 'works'; i.e.
>
>
2025 Jan 07
1
Extracting specific arguments from "..."
...rth Greene Street
> GRECC (BT/18/GR)
> Baltimore, MD 21201-1524
> Cell phone 443-418-5382
>
>
>
>
> ________________________________________
> From: Jorgen Harmse <JHarmse at roku.com>
> Sent: Tuesday, January 7, 2025 1:47 PM
> To: r-help at r-project.org; ikwsimmo at gmail.com; Bert Gunter; Sorkin, John; jdnewmil at dcn.davis.ca.us
> Subject: Re: Extracting specific arguments from "..."
>
> Interesting discussion. A few things occurred to me.
>
> Apologies to Iris Simmons: I mixed up his answer with Bert's question.
>
>...
2025 Jan 07
1
Extracting specific arguments from "..."
...0 North Greene Street
> GRECC (BT/18/GR)
> Baltimore, MD 21201-1524
> Cell phone 443-418-5382
>
>
>
>
> ________________________________________
> From: Jorgen Harmse <JHarmse at roku.com>
> Sent: Tuesday, January 7, 2025 1:47 PM
> To: r-help at r-project.org; ikwsimmo at gmail.com; Bert Gunter; Sorkin, John; jdnewmil at dcn.davis.ca.us
> Subject: Re: Extracting specific arguments from "..."
>
> Interesting discussion. A few things occurred to me.
>
> Apologies to Iris Simmons: I mixed up his answer with Bert's question.
>
> Ber...
2025 Jan 07
1
Extracting specific arguments from "..."
Interesting discussion. A few things occurred to me.
Apologies to Iris Simmons: I mixed up his answer with Bert's question.
Bert raises questions about promises, and I think they are related to John Sorkin's question. A big difference between R and most other languages is that function arguments are computed lazily. match.call & substitute tell us what expressions will be evaluated