Displaying 20 results from an estimated 1346 matches for "ggrothendieck".
Did you mean:
grothendieck
2023 Nov 14
1
data.frame weirdness
On Tue, 14 Nov 2023 at 09:41, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
>
> Also why should that difference result in different behavior?
That's justifiable, I think; consider:
> d1 = data.frame(a = 1:4)
> d2 = d3 = data.frame(b = 1:2)
> row.names(d3) = c("a", "b")
> data.frame(d1, d2)
a b
1 1 1
2 2...
2023 Nov 14
1
data.frame weirdness
Also why should that difference result in different behavior?
On Tue, Nov 14, 2023 at 9:38?AM Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
>
> In that case identical should be FALSE but it is TRUE
>
> identical(a1, a2)
> ## [1] TRUE
>
>
> On Tue, Nov 14, 2023 at 8:58?AM Deepayan Sarkar
> <deepayan.sarkar at gmail.com> wrote:
> >
> > They differ in whether the row na...
2023 Nov 14
1
data.frame weirdness
...eepayan.sarkar at gmail.com> wrote:
>
> They differ in whether the row names are "automatic":
>
> > .row_names_info(a1)
> [1] -3
> > .row_names_info(a2)
> [1] 3
>
> Best,
> -Deepayan
>
> On Tue, 14 Nov 2023 at 08:23, Gabor Grothendieck
> <ggrothendieck at gmail.com> wrote:
> >
> > What is going on here? In the lines ending in #### the inputs and outputs
> > are identical yet one gives a warning and the other does not.
> >
> > a1 <- `rownames<-`(anscombe[1:3, ], NULL)
> > a2 <- anscombe[1:3, ]
>...
2019 Oct 11
1
New matrix function
Also note that the functionality discussed could be regarded as a generalization
of matrix multiplication where * and + are general functions and in this case
we have * replaced by == and + replaced by &.
On Fri, Oct 11, 2019 at 10:46 AM Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
>
> Using the example in the link here are two one-liners:
>
> A <- c(2,3,4,1,2,3,4,1,1,2)
> x <- c(1,2)
>
> # 1 - zoo
> library(zoo)
> which( rollapply(A, length(x), identical, x, fill = FALSE, align = "left") )
> ##...
2024 Sep 08
2
Inconsistency between row and nrow
...2-dimensional case.
To my read then, the difference in behavior appears to be intentional and expected.
Regards,
Marc Schwartz
?-----Original Message-----
From: R-devel <r-devel-bounces at r-project.org <mailto:r-devel-bounces at r-project.org>> on behalf of Gabor Grothendieck <ggrothendieck at gmail.com <mailto:ggrothendieck at gmail.com>>
Date: Sunday, September 8, 2024 at 7:31 AM
To: "r-devel at r-project.org <mailto:r-devel at r-project.org>" <r-devel at r-project.org <mailto:r-devel at r-project.org>>
Subject: [Rd] Inconsistency between row and...
2016 Jun 27
1
stack problem
...PM, Michael Lawrence
<lawrence.michael at gene.com> wrote:
> I'll add the drop argument but I'm wondering about the order of the
> levels. Should we set the levels to unique(names(x)) or sort them,
> too?
>
> On Mon, Jun 27, 2016 at 10:39 AM, Gabor Grothendieck
> <ggrothendieck at gmail.com> wrote:
>> stack() seems to drop empty levels. Perhaps there could be a
>> drop=FALSE argument if one wanted all the original levels. In the
>> example below, we may wish to retain level "b" in s$ind even though
>> component LL$b has length 0.
>...
2024 Sep 08
1
Inconsistency between row and nrow
...n, the difference in behavior appears to be intentional and expected.
>
> Regards,
>
> Marc Schwartz
>
>
> ?-----Original Message-----
> From: R-devel <r-devel-bounces at r-project.org <mailto:r-devel-bounces at r-project.org>> on behalf of Gabor Grothendieck <ggrothendieck at gmail.com <mailto:ggrothendieck at gmail.com>>
> Date: Sunday, September 8, 2024 at 7:31 AM
> To: "r-devel at r-project.org <mailto:r-devel at r-project.org>" <r-devel at r-project.org <mailto:r-devel at r-project.org>>
> Subject: [Rd] Inconsistency...
2010 Nov 24
4
R encoding question
Hi,
I am using RpgSQL to retrieve data from a PostgreSQL database wich is
with encoding UTF8, and I have some Chinese character in one of the
columns, unfortunately R can't show it correctly.
> df <- dbGetQuery(con, "select * from test")
> df
a b
1 1 ????????\xa2
2 2 ???? EURO\xa1
I see the following option, do I need to change the encoding option to
show
2018 Jan 26
2
Portable R in zip file for Windows
...back to you.
Nevertheless, having a installer and a "portable" version is something
pretty common (R Studio, Notepad++ and 7Zip pop to my mind now) and pretty
helpful to deal with security restrictions, so I thought R had one,
somewhere.
On Fri, Jan 26, 2018, 00:49 Gabor Grothendieck <ggrothendieck at gmail.com>
wrote:
> Can you clarify what the nature of the security restriction is?
>
> If you can't run the R installer then how it is that you could run R?
> That would still involve running an external exe even if it came
> in a zip file.
>
> Could it be that the...
2024 Jul 22
3
Extract
...d.table( text = _, fill = TRUE, header = FALSE, na.strings = "") |>
> (\(x)'names<-'(x,paste0("s", seq_along(x))))() |>
> (\(x)cbind(dat, x))()
>
> -- Bert
>
>
> On Sun, Jul 21, 2024 at 11:30?AM Gabor Grothendieck
> <ggrothendieck at gmail.com> wrote:
> >
> > Fixing col.names=paste0("S", 1:5) assumes that there will be 5 columns and
> > we may not want to do that. If there are only 3 fields in string, at the most,
> > we may wish to generate only 3 columns.
> >
> > On Sun, Ju...
2016 Jun 27
2
stack problem
....
> LL <- list(a = 1:3, b = list())
> s <- stack(LL)
> str(s)
'data.frame': 3 obs. of 2 variables:
$ values: int 1 2 3
$ ind : Factor w/ 1 level "a": 1 1 1
--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com
2024 Jul 22
1
Extract
Thanks.
I found this to be quite informative and a nice example of how useful
R-Help can be as a resource for R users.
Best,
Bert
On Mon, Jul 22, 2024 at 4:50?AM Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
>
> Base R. Regarding code improvements:
>
> 1. Personally I find (\(...) ...)() notation hard to read (although by
> placing (\(x), the body and )() on 3 separate lines it can be improved
> somewhat). Instead let us use a named function. The name of the
&g...
2018 Jan 25
6
Portable R in zip file for Windows
....
I cant execute exes. But I can unzip files.
Thanks Gabor, I had that in mind, but can't execute the exe due to security
restrictions.
Geez, really, treating people who ask questions this way just makes you
don't want to ask a single one.
On Thu, Jan 25, 2018, 11:19 Gabor Grothendieck <ggrothendieck at gmail.com>
wrote:
> I believe that the ordinary Windows installer for R can produce a
> portable result by choosing the appropriate configuration options from the
> offered screens when you run the installer Be sure to enter the desired
> path in the Select Destination Location...
2024 Jul 21
1
Using the pipe, |>, syntax with "names<-"
...ignments, as discussed in Deepayan's
> > response.
> >
> > Maybe someone could offer a better Tidydata piping solution just for
> > completeness?
> >
> > Best,
> > Bert
> >
> > On Sun, Jul 21, 2024 at 7:48?AM Gabor Grothendieck
> > <ggrothendieck at gmail.com> wrote:
> > >
> > > This
> > > - is non-destructive (does not change z)
> > > - passes the renamed z onto further pipe legs
> > > - does not use \(x)...
> > >
> > > It works by boxing z, operating on the boxed version an...
2024 Jul 21
1
Extract
...-
dat$string |>
read.table( text = _, fill = TRUE, header = FALSE, na.strings = "") |>
(\(x)'names<-'(x,paste0("s", seq_along(x))))() |>
(\(x)cbind(dat, x))()
-- Bert
On Sun, Jul 21, 2024 at 11:30?AM Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
>
> Fixing col.names=paste0("S", 1:5) assumes that there will be 5 columns and
> we may not want to do that. If there are only 3 fields in string, at the most,
> we may wish to generate only 3 columns.
>
> On Sun, Jul 21, 2024 at 2:20?PM Bert Gun...
2018 Jan 26
0
Portable R in zip file for Windows
...nzip files.
> Thanks Gabor, I had that in mind, but can't execute the exe due to security
> restrictions.
> Geez, really, treating people who ask questions this way just makes you
> don't want to ask a single one.
>
>
> On Thu, Jan 25, 2018, 11:19 Gabor Grothendieck <ggrothendieck at gmail.com>
> wrote:
>>
>> I believe that the ordinary Windows installer for R can produce a
>> portable result by choosing the appropriate configuration options from the
>> offered screens when you run the installer Be sure to enter the desired
>> path in the...
2023 Nov 14
1
data.frame weirdness
They differ in whether the row names are "automatic":
> .row_names_info(a1)
[1] -3
> .row_names_info(a2)
[1] 3
Best,
-Deepayan
On Tue, 14 Nov 2023 at 08:23, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
>
> What is going on here? In the lines ending in #### the inputs and outputs
> are identical yet one gives a warning and the other does not.
>
> a1 <- `rownames<-`(anscombe[1:3, ], NULL)
> a2 <- anscombe[1:3, ]
>
> ix <- 5:8
>
>...
2024 Jul 21
1
Extract
...s no?
>
> string <- read.table(text = dat$string, fill = TRUE, header =
> FALSE, na.strings = "",
> col.names = paste0("s", 1:5))
> dat <- cbind(dat, string)
>
> -- Bert
>
> On Sun, Jul 21, 2024 at 10:16?AM Gabor Grothendieck
> <ggrothendieck at gmail.com> wrote:
> >
> > We can use read.table for a base R solution
> >
> > string <- read.table(text = dat$string, fill = TRUE, header = FALSE,
> > na.strings = "")
> > names(string) <- paste0("S", seq_along(string))
> > c...
2013 May 19
1
Generate positive definite matrix with constraints
Hi, I have a question for my simulation problem:
I would like to generate a positive (or semi def positive) covariance
matrix, non singular, in wich the spectral decomposition returns me the same
values for all dimensions but differs only in eigenvectors.
Ex.
sigma
[,1] [,2]
[1,] 5.05 4.95
[2,] 4.95 5.05
> eigen(sigma)
$values
[1] 10.0 0.1
$vectors
[,1]
2018 Jul 24
2
oddity in transform
...BF87185B/www.dans.knaw.nl>
> DANS is an institute of the Dutch Academy KNAW <http://knaw.nl/nl> and funding organisation NWO <http://www.nwo.nl/>.
>
> ?On 23/07/2018, 16:52, "R-devel on behalf of Gabor Grothendieck" <r-devel-bounces at r-project.org on behalf of ggrothendieck at gmail.com> wrote:
>
> Note the inconsistency in the names in these two examples. X.Time in
> the first case and Time.1 in the second case.
>
> > transform(BOD, X = BOD[1:2] * seq(6))
> Time demand X.Time X.demand
> 1 1 8.3 1...