e, then "She votes" would work,
but the across words made "codes" a more reasonable answer.)
I was impressed that they expected the typical NYT reader to know that R
was a programming language.
-Bill
On Fri, Dec 13, 2024 at 11:40 AM wrote:
> Since this is a discussion about
e other.
>
> -Original Message-
> From: R-help On Behalf Of Erin Hodgess
> Sent: Thursday, December 12, 2024 11:56 AM
> To: Bill Dunlap
> Cc: r-help@R-project.org
> Subject: Re: [R] [off-topic] crossword
>
> [External Email]
>
> RULES!
>
>
> Erin
The New York Times crossword this morning had the clue (51 down, 5 letters)
"Writes in C or R, say".
-Bill
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.
negative:
par(mfrow=c(2,1))
plot(tan(seq(0,10,by=1/4)), type="b")
p(tan(seq(0,10,by=1/4)), predicate = function(dy)dy<0, type="b")
-Bill
On Tue, Feb 13, 2024 at 10:54 AM Duncan Murdoch
wrote:
> It should be pretty easy to generalize my version of the `plot.gamma()`
o-the-conditional-numerical-reproducibility-cnr.html
-Bill
On Wed, Aug 16, 2023 at 8:11 PM Shu Fai Cheung
wrote:
> Hi All,
>
> When addressing an error in one of my packages in the CRAN check at CRAN,
> I found something strange which, I believe, is unrelated to my package.
> I am
grep("Q", d$a),]
[1] a b
<0 rows> (or 0-length row.names)
> d[!grepl("Q", d$a),]
a b
1 one 10
2 two 20
3 three 30
-Bill
On Tue, Jun 13, 2023 at 6:19 AM Rui Barradas wrote:
> Às 17:18 de 13/06/2023, javad bayat escreveu:
> > Dear Rui;
> > Hi. I u
s again (or not doing
assignments inside of function calls).
-Bill
On Thu, May 18, 2023 at 7:38 AM Calboli Federico (LUKE) <
federico.calb...@luke.fi> wrote:
> Hello,
>
> I run a fisher.test() in a loop, with the issue that some of the data will
> not be useable. To protect the lo
reesCW = (pi - Arg(z*1i))/(2*pi)*360)
}
Then use FUN=mean instead of my_fun.
-Bill
On Sat, May 13, 2023 at 7:51 AM Stefano Sofia <
stefano.so...@regione.marche.it> wrote:
> Dear list users,
>
> I have to aggregate wind direction data (wd) using a function that
> requires also
https://bugs.r-project.org/show_bug.cgi?id=16745 (from 2016, still labelled
'UNCONFIRMED") contains some other examples of strsplit misbehaving when
using 0-length perl look-behinds. E.g.,
> strsplit(split="[[:<:]]", "One, two; three!", perl=TRUE)[[1]]
[1] "O" "n" "e" ", " "t" "w" "o" "; "
The HH Size is the problem - it doesn't follow R's rules for a name. Put
backticks around it: `HH Size`.
-Bill
On Tue, Mar 21, 2023 at 9:47 AM Nandini raj
wrote:
> Respected sir/madam
> can you please suggest what is an unexpected symbol in the below code for
> running a m
onment.
> with(environment(wdman::selenium), java_check)
function ()
{
javapath <- Sys.which("java")
if (identical(unname(javapath), "")) {
stop("PATH to JAVA not found. Please check JAVA is installed.")
}
javapath
}
-Bill
On Thu, Jan 19, 2023
grep("^yr", colnames(mydata))]
data frame with 0 columns and 3 rows
> mydata[, !grepl("^yr", colnames(mydata))]
A B
1 1 11
2 2 12
3 3 13
-Bill
On Fri, Jan 13, 2023 at 11:07 PM Eric Berger wrote:
> mydata[, -grep("^yr",colnames(mydata))]
>
> On Sat, Jan 14, 2
return 0;
}
$ gcc -Wall a.c
$ ./a.out
Starting... Done: x=2200, y=110
I don't like that syntax (e.g., commas between expressions instead of the
usual semicolons after expressions). Perhaps John Chambers et all didn't
either.
-Bill
On Fri, Jan 13, 2023 at 2:28 AM Valentin Petzel wrote:
y(L, function(el) el$B, FUN.VALUE = logical(2)) :
values must be length 2,
but FUN(X[[3]]) result is length 0
> vapply(L, function(el){ z <- el$B; if (is.null(z)) rep(NA,2) else z},
FUN.VALUE=logical(2))
[,1] [,2] [,3]
[1,] TRUE FALSE NA
[2,] FALSE FALSE NA
-Bill
On Tue, Dec 27, 202
Note that 3221226505 in base 10 is C409 in hexadecimal. You may have
better luck looking for causes of this by googling the hex representation.
-Bill
On Sun, Dec 18, 2022 at 3:56 PM Mathurin, Gottfried via R-help <
r-help@r-project.org> wrote:
> Hello,
> I currently face
ld be considered a bug.
-Bill
On Fri, Dec 16, 2022 at 10:29 AM Göran Broström
wrote:
> I'm confused:
>
> > x <- 1:2
> > is.na(x) <- 1
> > x
> [1] NA 2
>
> OK, but
>
> > x <- c("A", &qu
summary(Base)
would show if one of columns of Base was read as character data instead of
the expected numeric. That could cause an explosion in the number of dummy
variables, hence a huge design matrix.
-Bill
On Fri, Nov 11, 2022 at 11:30 PM George Brida
wrote:
> Dear R users,
>
>
; new_regexp <- "(.*<[^>]+ data-pos=\")([^\"]*)(@)([[:digit:]]+)(:.*)"
> all.equal( sub(new_regexp, "\\1newname\\3newnumber\\5", s), want)
[1] TRUE
-Bill
On Tue, Oct 25, 2022 at 10:12 AM Duncan Murdoch
wrote:
> An R regular expression pattern can
Do you have another function called "cat" in scope? (with an argument
called "j")? Before calling cat("...") call print(cat) and
print(find("cat")).
-Bill
On Thu, Oct 13, 2022 at 12:35 AM Steven T. Yen wrote:
> I have had an issue with printing (wit
:
plot.new has not been called yet
> f(TRUE)
[1]
"C:\\Users\\willi\\AppData\\Local\\Temp\\Rtmp0wX7rO\\file34843df652c.pdf"
If you remove the pdf() and dev.off() I think you will see that the added
lines do not show up. I think plot.xts fiddles with the coordinate system
before and af
2 0.9261868 1.059799
[3,] 0.9627672 1.0228972 13.9296063 1.0444007 1.051089
[4,] 1.0371084 0.9261868 1.0444007 15.1556199 1.052573
[5,] 0.9832170 1.0597985 1.0510888 1.0525734 15.965351
-Bill
On Tue, Sep 20, 2022 at 4:24 AM Sun, John wrote:
> Dear All,
> Reposting as plain tex
ther form.
> f <- function(x, `2`) x - `2`
> f("2"=7, 18)
[1] 11
> f(`2`=7, 18)
[1] 11
-Bill
On Wed, Sep 7, 2022 at 11:41 PM Richard O'Keefe wrote:
> You DON'T need to use backticks. switch() is much older than backticks.
> Ordinary quotation marks a
unused level as well
> d |> group_by(factorGroup, .drop=FALSE) |> summarize(minX=min(x))
# A tibble: 4 × 2
factorGroup minX
1 Small 101
2 Medium104
3 Large 106
4 X Large Inf
Warning message:
In min(x) : no non-missing arguments to min; returning Inf
-Bill
(pp[[3]], 1) && !identical(pp[[3]], 1L)
or something equivalent would be better.
-Bill
On Sun, Jul 24, 2022 at 5:58 AM Ivan Krylov wrote:
> Sorry for being too terse in my previous e-mail!
>
> On Sun, 24 Jul 2022 23:03:02 +1200
> Rolf Turner wrote:
>
> > The maintaine
"Alabama" "Alaska" "Arizona" "Arkansas"
> eapply(e, identity)
$Alabama
NULL
$Alaska
NULL
$Arizona
NULL
$Arkansas
NULL
-Bill
On Wed, Jul 13, 2022 at 12:20 PM akshay kulkarni
wrote:
> Dear members,
> I am running a l
Is there an environment variable containing that IP address?
as.list(grep(value=TRUE, "172", Sys.getenv())) # as.list to make
printing nicer
If you know which variable is causing the problem you may be able to
override it by setting an R-specific one.
-Bill
On Fri, Jun 17, 2022
]))
> data
tree shrub grass
1 301050
2 105030
3 503010
-Bill
On Sun, May 29, 2022 at 12:29 PM Janet Choate wrote:
> Hi R community,
> I have a data frame with three variables, where each row adds up to 90.
> I want to assign a category of low,
))
> s
[1] " via R-help"
> source(file("Chinese-utf-16.txt", encoding="UTF-16"), encoding="UTF-8")
> s
[1] "永创 via R-help"
> Encoding(s)
[1] "UTF-8"
> charToRaw(s)
[1] e6 b0 b8 e5 88 9b 20 76 69 61 20 52
our
working model faster if you got NA's for the constant columns and then
could drop them all at once (or otherwise deal with them).
-Bill
On Wed, Apr 13, 2022 at 9:40 AM Ebert,Timothy Aaron wrote:
> I suspect that it is because you are looking at two types of error, both
> tellin
Constant columns can be the model when you do some subsetting or are
exploring a new dataset. My objection is that constant columns of numbers
and logicals are fine but those of characters and factors are not.
-Bill
On Wed, Apr 13, 2022 at 9:15 AM Ebert,Timothy Aaron wrote:
> What is the g
, data=d)
Call:
lm(formula = y ~ sexCode, data = d)
Coefficients:
(Intercept) sexCode
3 NA
Calling traceback() after the error would clarify this.
-Bill
On Tue, Apr 12, 2022 at 3:12 PM Neha gupta wrote:
> Hello everyone, I have text data with output variable have three sub
stats::approx can do the job:
> approx(x=df$seq, df$count, xout=1:7, method="constant", f=0)
$x
[1] 1 2 3 4 5 6 7
$y
[1] 4 7 7 3 5 5 2
-Bill
On Tue, Mar 29, 2022 at 7:47 PM Jeff Reichman
wrote:
> R-help
>
> Is there a R function that will insert missing sequence numbe
Floats have 23 bits of precision so the rounding is done there instead of
at 52 bits, hence a different example is needed to show the problem with
floats.
bill@Bill-T490:~$ cat b.c
#include
int main(int argc, char* argv[])
{
float d = 0.4 + 0.4 + 0.4 + 0.4;
printf("0.4+0.4+0.
The base 2 representation of 0.4 repeats the digit sequence 1001
infinitely, hence must be rounded. The problem occurs in C the same as it
does in R.
bill@Bill-T490:~$ cat a.c
#include
int main(int argc, char* argv[])
{
double d = 0.4 + 0.3 + 0.2 + 0.1;
printf("0.4+0.3+0.
> fraction <- 0/0
> if (fraction < .5) TRUE else FALSE
Error in if (fraction < 0.5) TRUE else FALSE :
missing value where TRUE/FALSE needed
-Bill
On Fri, Jan 14, 2022 at 12:55 PM Bert Gunter wrote:
> Unlikely.
>
> > 1/0
> [1] Inf ## not NA
>
> Bert
>
pe, fromType="B", toType="A")
fromTime toTime
1 102105
2 111115
> with(.Last.value, toTime - fromTime)
[1] 3 4
With the dplyr package you can avoid the index 'i' by using lag() inside of
mutate(). E.g.,
> d |> mutate(AtoB = (lag(type)==&qu
And how does one [easily] download those files from sourceforge?
-Bill
On Wed, Jan 5, 2022 at 10:15 AM Chuck Coleman via R-help <
r-help@r-project.org> wrote:
> This is a rather complex error, for which I created
> https://sourceforge.net/projects/rhelp/files/Metro/ to ho
ize should be 'x', not 'rdf'.
Another error in the package is that this function isn't tested.
-Bill
On Fri, Dec 31, 2021 at 6:19 AM Evans, Richard K. (GRC-H000) via R-help <
r-help@r-project.org> wrote:
> Hello R community,
>
> I am a novice R ent
And a fourth thing to do:
* dput(tail(n=20, readBin(".RData", what=raw(), n=file.size(".RData"
This can show if the file got truncated.
-Bill
On Thu, Dec 23, 2021 at 5:25 PM Bill Dunlap
wrote:
> Three things you might try using R (and show the results in this emai
The last will print some hex numbers that others may be able to interpret.
E.g., it may show that this .RData is not from a call to save() or
save.image().
-Bill
On Thu, Dec 23, 2021 at 11:19 AM Rich Shepard
wrote:
> Each time I finish with a session I save the image. Today the saved
"
[15] "C:\\Users\\willi\\AppData\\Local\\GitHubDesktop\\bin"
> table(grepl("$", strsplit(Sys.getenv("PATH"), ";")[[1]])) # c. 2:1
against terminal backslash
FALSE TRUE
15 8
On Mon, Dec 20, 2021 at 9:30 AM Martin Maechler
wrote:
> >
6] "C:\\Program Files\\Pandoc\\"
[7] "C:\\Program Files\\MiKTeX\\miktex\\bin\\x64\\"
[8] "C:\\Program Files\\PuTTY\\"
I did not add those entries by hand; all were added by installer programs.
-Bill
[[alternative HTML version deleted]]
__
On the 'bad' machines, what did you get for
summary(fit)
summary(k)
summary(Z)
summary(gm*gsd^Z)
?
-Bill
On Thu, Dec 2, 2021 at 6:18 AM Labone, Thomas wrote:
> In the code below the first and second plots should look pretty much the
> same, the only difference bein
The following makes degree signs appropriately, as shown in ?plotmath:
plot(68, 20, xlab=expression(degree*F), ylab=expression(degree*C))
If you want the word "degree" spelled out, put it in quotes.
-Bill
On Tue, Nov 30, 2021 at 12:31 PM Rich Shepard
wrote:
> On Tue, 30 N
could use
vapply(yourDataFrame, which.min, FUN.VALUE=NA_real_)
or
vapply(yourDataFrame, min, FUN.VALUE=NA_real_)
instead of colMins.
-Bill
On Tue, Nov 30, 2021 at 10:55 AM Stephen H. Dawson, DSL via R-help <
r-help@r-project.org> wrote:
> Hi,
>
>
> I am working to un
, "\n"); read_csv(file, ...)})
Then look at the first lines of those files and see if they have the
expected column names.
-Bill
On Wed, Nov 24, 2021 at 9:46 AM Rich Shepard
wrote:
> On Wed, 24 Nov 2021, Ivan Krylov wrote:
>
> > This typically happens when you leave a trailing
Try using at=c(1.8, 2.8) to specify the contour levels you want (and omit
the cuts= argument).
-Bill
On Wed, Nov 17, 2021 at 5:41 AM Luigi Marongiu
wrote:
> I have a dataframe of three variables: x, y, z. The value of z are:
> ```
> > unique(df$z)
> [1] 1.0 1.2 1.4 1.6 1.8 2.0
your data.
-Bill
On Thu, Nov 11, 2021 at 5:50 AM Rich Shepard
wrote:
> On Wed, 10 Nov 2021, Avi Gross via R-help wrote:
>
> > I think many here may not quite have enough info to help you.
>
> Avi,
>
> Actually, you've reflected my thinking.
>
> > But the su
idn't try to compute anything.
The others' comments are still valid - you need to read the files named by
these strings to produce R datasets and combine the datasets.
-Bill
On Wed, Nov 3, 2021 at 8:36 AM gabrielle aban steinberg <
gabrielleabansteinb...@gmail.com> wrote:
> Hello,
nvironments and
lists, neither of which is great. You may want your hash table functions
to deal with oddball names explicitly.
-Bill
On Tue, Nov 2, 2021 at 8:52 AM Andrew Simmons wrote:
> If you're thinking about using environments, I would suggest you initialize
> them like
>
>
&
_max rows on the input
interspersed throughout the file. This is convenient (and fast), but not
robust. If the imputation fails, you'll need to increase the guess_max or
supply the correct types yourself.
...
-Bill
On Mon, Nov 1, 2021 at 10:16 AM Rich Shepard
wrote:
>
> On Mon, 1 Nov 2
gctorture(TRUE) helps too, but it will take a long time.
-Bill
On Fri, Oct 22, 2021 at 11:07 AM lampros mouselimis <
mouselimislamp...@gmail.com> wrote:
> Thank you all for your answers,
>
> I'll give it a try using both valgrind (on linux) and the rhub's linux gcc
&
I agree with Stefan. Try using valgrind (on Linux) to check for memory
misuse:
R --debugger=valgrind --debugger-args="--leak-check=full
--track-origins=yes"
...
> yourTests()
> q("no")
-Bill
On Fri, Oct 22, 2021 at 7:30 AM Stefan Evert
wrote:
> Just to add my
istributions" "RVideoPoker""SyNet"
[19] "tsgui" "uHMM" "GGEBiplots"
[22] "decisionSupport""geneticae"
E.g.,
> install.packages("forensim", type="so
Tcl_PkgRequireEx () from
/usr/lib/x86_64-linux-gnu/libtcl8.6.so
#10 0x7f95b96bdbe8 in Rplot_Init (interp=0x5625117460d0) at
tcltkimg.c:465
and when I killed the R subprocess doing the lazyload prep I got a
quasi-infinite stream of error messages:
...
error reading package index file
/home/bill/R-devel/R
I just tried installing forensim on R-devel/Ubuntu 20.04/WSL-2.0 without an
X server (hence DISPLAY was not set). Loading tktcl gives a warning that
Tk is not available because DISPLAY is not set. The installation hung
after the byte-compile message:
installing to
/home/bill/R-devel/R-build/site
uot;)
so I am guessing you can ignore any \Rdversion declarations.
-Bill
On Tue, Sep 28, 2021 at 2:57 PM Rolf Turner wrote:
>
> I just noticed that a help file in one of my packages contains,
> as the second line (just after the \name{ } macro), the line
>
> > \Rdversion{1.1}
On my Windows 10 laptop I see evidence of the operating system caching
information about recently accessed files. This makes it hard to say how
the speed might be improved. Is there a way to clear this cache?
> system.time(L1 <- size.f.pkg(R.home("library")))
user system elapsed
0.482
Hi Paul,
Thanks very much for the pointer!
With that and a bit more investigation, I was able to make the following
functions that seem to work in initial testing.
Thanks,
Bill
library(grid)
# The no_clipping function indicates if a shape is clipped in any dimension
# relative to the entire
ere are many
choices, and since I'm learning, I'm not sure which would be the best to use
as an example.
Thanks,
Bill
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
http
Thanks. If you can still reproduce the problem, what did
rlang::last_trace()
report?
-Bill
On Tue, Sep 7, 2021 at 3:37 AM John Tully
wrote:
> Thank you
>
> I ran:
>
> ```{r}
> rlang::last_error()
> ```
>
> Here is the output:
>
>
> Assigned data `sing
> Run `rlang::last_error()` to see where the error occurred
What did rlang::last_error() show?
-Bill
On Mon, Sep 6, 2021 at 9:19 AM John Tully
wrote:
> Dear colleagues
> >
> > in conducting a meta-analysis (of MRI data) I am running into the
> repeated issue:
> &g
-01 01:15:00
9 2020-11-01 01:30 PDT 20300 16.37 9.2 2020-11-01 01:30:00
10 2020-11-01 01:30 PST 20100 16.31 9.2 2020-11-01 01:30:00
11 2020-11-01 01:45 PDT 20300 16.35 9.2 2020-11-01 01:45:00
12 2020-11-01 01:45 PST 20100 16.29 9.2 2020-11-01 01:45:00
13 2020-11-01 02:00 PST
Is this the kind of thing you are looking for? It separates the scoping
issue from the method dispatch by defining another S3-generic function,
".foo".
> foo <- function(x, ..., data=NULL) with(data, .foo(x, ...))
> .foo <- function(x, ...) UseMethod(".foo")
> .foo.default <- function(x, ...) cat
> z <- tibble(Code=c("NA","NZ",NA), Name=c("Namibia","New Zealand","?"))
> z
# A tibble: 3 x 2
Code Name
1 NANamibia
2 NZNew Zealand
3 ?
> subset(z, Code=="NA")
# A tibble: 1 x 2
Code Name
1 NANamibia
> subset(z, is.na(Code))
# A tibble: 1 x 2
Code Name
1 ?
> su
The packages "officer" and "readxl" both contain functions named
"read_xlsx". It looks like you want the one from readxl so refer to it as
readxl::read_xlsx instead of just read_xlsx.
-Bill
On Thu, Aug 26, 2021 at 12:03 PM Kai Yang via R-help
wrote:
> Hi all,
unlist(strsplit(vect, "\n"))
On Fri, Aug 6, 2021 at 7:13 AM Luigi Marongiu
wrote:
> Hello,
> I have a vector that contains some elements with concatenated values, such
> as:
> ```
> > vect
> [1] "name_1"
> [2] "name_2"
> [3] "name_3\nsurname_3"
> [4] "some other text\netc"
> ```
> How can I crea
> system.time(for(i in 1:100)dnorm(q, log=TRUE))
user system elapsed
4.600.194.78
-Bill
On Tue, Aug 3, 2021 at 11:53 AM Duncan Murdoch
wrote:
> On 03/08/2021 12:20 p.m., Michael Dewey wrote:
> > Short version
> >
> > Apart from the ability to
ggplot2::labs() interprets expressions as plotmath. E.g.,
data.frame(X=1:10,Y=(1:10)^2) %>% ggplot(aes(X,Y)) + geom_point() +
labs(x = expression(beta), y = expression(beta^2))
-Bill
On Mon, Jul 19, 2021 at 4:24 PM Rolf Turner wrote:
>
>
> Thanks to Jeff Newmiller,
Try
matrix(init_l, nrow=4, ncol=4,
dimnames=list(c("X1","X2","X3","X4"),c("X1","X2","X3","X4")))
It doesn't give exactly what your code does, but your code introduces an
extra level of "list", which
Does this do what you want?
> df <- data.frame(check.names=FALSE,
lapply(c(Date="date",netIncome="netIncome",`Gross Profit`="grossProfit"),
function(nm)vapply(ISY, "[[", nm, FUN.VALUE=NA_character_)))
> str(df)
'data.frame': 36 obs. of 3 variables:
$ Date: chr "2020-09-30" "2019-09-30
Use backquotes, `X/Y`, to specify a name, not double quotes.
-Bill
On Wed, Jun 23, 2021 at 11:58 AM Mahmood Naderan
wrote:
> Hi
> I have a column in my data file which is "X/Y". With '/' I want to
> emphasize that values are the ratio of X over Y.
> Problem is t
Note that !! and !!! are special operators involving "quasiquotation" in
the dplyr package.
I would use as.logical(x) instead of !!x since its meaning is clear to any
user.
-Bill
On Wed, Jun 23, 2021 at 11:13 AM Jeff Newmiller
wrote:
> For the record, `!!` is not an operator s
g like 'isYes' instead of 't' might help as
well.
-Bill
On Wed, Jun 23, 2021 at 8:11 AM Phillips Rogfield
wrote:
> I make the same mistake all over again.
>
> In particular, suppose we have:
>
> a = c(1,2,3,4,5)
>
> and a variable that equals 1 for the elemen
Try using unzip(zipfile, files="desiredFile", exdir=tf<-tempfile()), not
unz(zipfile, "desiredFile"), to copy the desired file from the zip file to
a temporary location and use read_fst(tf) to read the desired file.
-Bill
On Wed, Jun 9, 2021 at 11:27 AM Jeff Reichman
um+i instead of num<-num+1,
which was simply an error, not a matter of style. R's vectorization makes
it easy to avoid such errors.]
-Bill
On Wed, Jun 9, 2021 at 2:56 AM Martin Maechler
wrote:
> >>>>> David Carlsonon Sun, 6 Jun 2021 15:21:34 -0400 writes:
>
&g
You didn't say how the values differed. If one in the plot is a rounded
version of the other then adding the ggpur::ggscatter() argument
cor.coeff.args=list(digits=7)
will fix things up.
-Bill
On Sun, May 30, 2021 at 9:18 AM Mahmood Naderan-Tahan <
mahmood.nade...@ugent.be> w
Also, normalizePath("power.pdf").
On Sun, May 9, 2021 at 5:13 PM Bert Gunter wrote:
> ?getwd
>
> Bert Gunter
>
> "The trouble with having an open mind is that people keep coming along and
> sticking things into it."
> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
>
>
> On Su
Does this happen when you start R with the --vanilla flag? When you remove
or rename ./.RData?
-Bill
On Tue, Apr 20, 2021 at 8:37 PM N. Jordan Jameson
wrote:
> I have a 64-bit Windows machine and I've installed R versions 4.0.0 through
> 4.0.5 and only versions 4.0.2 and
R_ext/Utils.h:void R_qsort_int_I(int *iv, int *II, int i, int j);
The last 2 arguments are int, not int*. .C() passes pointers to vectors so
you cannot call this function directly from .C().
-Bill
On Thu, Apr 15, 2021 at 3:15 PM Evangelos Evangelou via R-help <
r-help@r-project.org>
l
arrays, the container size of a vector can be easily increased and
decreased to complement different data storage types. Vectors have a
dynamic structure and provide the ability to assign container size up front
and enable allocation of memory space quickly. Vectors can be thought of as
dynamic array
.
-Bill
On Wed, Mar 31, 2021 at 11:03 PM Mahmood Naderan-Tahan
wrote:
>
> Hi,
>
> I followed the example described at [1] but I don't know why I get the
> following warning
>
>
> > library(ggplot2)
> > library(Hmisc)
> > mydata <- read.csv('test.
Printing the return value of plot_ly and friends works for me in the
following examples:
# make base plot
p0 <- plotly::plot_ly(na.omit(palmerpenguins::penguins), x =
~bill_length_mm, y = ~body_mass_g)
# now add things to base plot
for(vrbl in list(~species, ~island, ~year)) {
tmp <- plotly::add
That error means that fviz_famd_ind has more than one argument that
starts with 'col' and you must type a more complete name to
disambiguate it. Perhaps col.ind=ifelse(...)?
> args(factoextra::fviz_famd_ind)
function (X, axes = c(1, 2), geom = c("point", "text"),
repel = FALSE, habillage = "n
Your original query included
> x <- c(1,0,0,0,2,2,3,4,0,1,1,0,5,5,5,0,1)
... I need 8 10 13.
Did you also want the 1's at the ends to count as local maxima,
so the result would be c(1,8,10,13,17)?
Or do you want the maxima at endpoints only if there are no others?
-BIll
On
Does this happen if you start R with the --vanilla flag? If so it may
be that you have a startup file, .\.Rprofile or %HOME%\.Rprofile that
is calling set.seed(n) for a fixed n.
-Bill
On Mon, Mar 29, 2021 at 12:16 AM Mika Hamari wrote:
>
> Hi!
>
> I have Windows 10 on PC and differ
If you want to accept maxima at the ends of the series, append -Inf to
each end and subtract one from the result. Note that this will make
even a constant sequence have a local maximum at 1.
On Mon, Mar 29, 2021 at 6:52 AM Stefano Sofia
wrote:
>
> Dear Bill, Bert, Greg and Abby,
> I te
== -1,FALSE,FALSE)]+1
}
-Bill
On Fri, Mar 26, 2021 at 8:36 AM Stefano Sofia
wrote:
>
> Dear list users,
> I need to find local maxima and local minima positions in a vector where
> there might be duplicates; in the particular in case of
> - duplicated local maxima, I should tak
Does optim go out of bounds when you specify hessian=FALSE?
hessian=TRUE causes some out-of-bounds evaluations of f.
> optim(c(X=1,Y=1),
> function(XY){print(unname(XY));(XY[["X"]]+1)^4+(XY[["Y"]]-2)^4}, method=
> "L-BFGS-B", lower=c(0.001,0.001), upper=c(1.5,1.5), hessian=TRUE)
[1] 1 1
[1] 1.00
install.packages("hms")
A 'library' is a directory (aka folder) that contains installed
'packages'. I.e., one installs packages into a library, but one does
not install a library.
-Bill
On Wed, Mar 17, 2021 at 10:08 AM Gregory Coats via R-help
wrote:
>
>
The length of the mean vector must match the number of rows and
columns of the sigma matrix. Once you give 3 entries in the mean
vector you will run into the problem that the sigma you are using is
not positive (semi-)definite - a variance must be the product of a
matrix and its transpose.
-Bill
> rutledge_param <- function(p, x, y) ((p$M / (1 + exp(-1*(p$x-p$m)/p$s))) +
> p$B) - y
Did you mean that p$x to be just x? As is, this returns numeric(0)
for the p that nls.lm gives it because p$x is NULL and NULL-aNumber is
numeric().
-Bill
On Sun, Mar 14, 2021 at 9:46 AM Luigi
1 at 11:28 AM Henrik Bengtsson
wrote:
>
> Test with:
>
> clusterCall(cl, function() { suppressWarnings(source("xx.R")) })
>
> If the warnings disappear, then the warnings are produced on the
> workers from source():ing the file.
>
> /Henrik
>
> On Thu, Mar 4,
keCluster(3, type="PSOCK")
> invisible(gc())
> rm(cl)
> invisible(gc())
Warning messages:
1: In .Internal(gc(verbose, reset, full)) :
closing unused connection 6 (<-Bill-T490:11216)
2: In .Internal(gc(verbose, reset, full)) :
closing unused connection 5 (<-Bill-T490:1121
To avoid the warnings from gc(), call parallel::stopCluster(cl) before
removing or overwriting cl.
-Bill
On Thu, Mar 4, 2021 at 1:52 AM Shah Alam wrote:
>
> Hello everyone,
>
> I am using the "parallel" R package for parallel computation.
>
> Code:
>
>
ithout data.
>
>
>
>Why does coef(model) provide zero as the coefficient for treatment
>instead of NA? Is this a bug?
>
>
>
>Thanks,
>
>
>
>Bill
>
>
>
>``` r
>
>library(survival)
>
>library(emmeans)
>
>
>
>my_data <-
>
>
s, but it seems inaccurate to have
the `coef()` method provide zero as the coefficient for the level without
data.
Why does coef(model) provide zero as the coefficient for treatment instead
of NA? Is this a bug?
Thanks,
Bill
``` r
library(survival)
library(emmeans)
my_data &
some other way to tell where the omitted
values are?
-Bill
On Mon, Feb 22, 2021 at 2:54 PM Val wrote:
>
> I Tried that one and it did not work. Please see the error message
> Error in read.table(text = "x1 x2 x3 x4\n1 B12 \n2 C23
> \n322 B32 D34 \n4D44 \n5
Since the columns in the file are separated by a space character, " ",
add the read.table argument sep=" ".
-Bill
On Mon, Feb 22, 2021 at 2:21 PM Val wrote:
>
> Hi all, I am trying to read a messy data but facing difficulty. The
> data has several columns separ
age = "openPrimeR")
> ```
> where stx.fa il the file I wanted to open and that is present in the
> working directly. I get only an empty object.
If "stx.fa" is in fact in the current working directory then use
fasta.file <- "stx.fa"
system.file() is for acce
1 - 100 of 377 matches
Mail list logo