Displaying 20 results from an estimated 1314 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") )
> ##...
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.
>...
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...
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
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...
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
>
>...
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...
2018 Jul 29
2
odd behavior of names
...he second does
not. Though not wrong, it seems inconsistent.
list(a = 1, b = 2)
## $`a`
## [1] 1
##
## $b
## [1] 2
R.version.string
## [1] "R version 3.5.1 Patched (2018-07-02 r74950)"
--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com
2006 Mar 11
6
is there a formatted output in R?
something like "sprintf" in C?
so I can do:
print(sprintf("the correct result is %3.4f\n", myresult));
-------
Also, I am desperately looking for a "clear console screen" function in
R...
thanks a lot!
[[alternative HTML version deleted]]
2010 Jul 26
7
Bug on r-bc?
Dear All,
The following code should return 1, but it returns 0:
source("http://r-bc.googlecode.com/svn/trunk/R/bc.R")
bc("9 % 2")
Do you confirm this bug?
Paul
2011 Sep 12
5
Hourly data with zoo
I have date data as a numeric and hourly data in 0 to 2300 hours in a dataframe.
d <- rep(20110101,24)
h <- seq(from = 0, to = 2300, by = 100)
df <- data.frame(LST_DATE = d, LST_TIME = h, data = rnorm(24, 0, 1))
S <- chron(dates. = as.character(df$LST_DATE), times. =
paste(as.character(df$LST_TIME/100), ":0:0", sep = ""),
format =
2015 May 22
1
returnValue()
...(presidents, order = c(1, 0, 0))
Tracing optim(init[mask], armafn, method = optim.method, hessian =
TRUE, .... on exit
Error in str(returnValue()) : could not find function "returnValue"
--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com
2018 Sep 23
1
Recall
.../4)
## Error in my.compose2(sin, cos, tan)(pi/4) : unused argument (tan)
Seems like a bug in R.
This is taken from:
https://stackoverflow.com/questions/52463170/a-recursive-compose-function-in-r
--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com
2008 Nov 29
2
Using grep() to subset lines of text
I have two vectors, a and b. b is a text file. I want to find in b those
elements of a which occur at the beginning of the line in b. I have the
following code, but it only returns a value for the first value in a, but I
want both. Any ideas please.
a = c(2,3)
b = NULL
b[1] = "aaa 2 aaa"
b[2] = "2 aaa"
b[3] = "3 aaa"
b[4] = "aaa 3 aaa"