Re: [R] interactively getting alist of functions for a given package?

2021-06-24 Thread Greg Minshall
Jake and Deepayan, both very nice and useful solutions. thank you. Greg __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

Re: [R] checksums for R src file

2021-06-24 Thread kap4lin
Perfect, Thank you! On Thu, Jun 24, 2021, 1:43 PM peter dalgaard wrote: > Yes, these are in the release announcements. They are deliberately not > kept with the actual files due to security considerations. The easiest > source is > > https://stat.ethz.ch/pipermail/r-announce/2021/date.html > > (

Re: [R] checksums for R src file

2021-06-24 Thread peter dalgaard
Yes, these are in the release announcements. They are deliberately not kept with the actual files due to security considerations. The easiest source is https://stat.ethz.ch/pipermail/r-announce/2021/date.html (because that mailing list doesn't contain much other than release announcements). -

[R] checksums for R src file

2021-06-24 Thread kap4lin
When I download the file, https://cran.r-project.org/src/base/R-4/R-4.1.0.tar.gz (or anything similar) is there a checksum for the file I can compare it to? Thanks PK [[alternative HTML version deleted]] __ R-help@r-project.org mailing list --

Re: [R] empty data frame and POSIXct data types

2021-06-24 Thread Rui Barradas
Hello, Inline. Às 15:27 de 24/06/21, Stefano Sofia escreveu: Thank you Jeff and thank you Andrew 1) Yes, I understand that it is a vector, even though is.vector(c(day1, day2)) is FALSE. Andrew explained to me why: it has attributes 'class' and 'tzone'. 2) I understand now that I created a dat

Re: [R] interactively getting alist of functions for a given package?

2021-06-24 Thread Deepayan Sarkar
On Thu, Jun 24, 2021 at 2:10 PM Greg Minshall wrote: > > Duncan, > > > Bert gave you an answer that depends on ls(). Whether there's > > something like "set" that can return "asset" probably depends on > > your front end, and may be customizable using the facilities described > > in ?rcompgen. >

Re: [R] empty data frame and POSIXct data types

2021-06-24 Thread Stefano Sofia
Thank you Jeff and thank you Andrew 1) Yes, I understand that it is a vector, even though is.vector(c(day1, day2)) is FALSE. Andrew explained to me why: it has attributes 'class' and 'tzone'. 2) I understand now that I created a data frame with only one row, and I am trying to fit a vector of le

Re: [R] interactively getting alist of functions for a given package?

2021-06-24 Thread Jake Elmstedt
Here's something which is perhaps a bit more sophisticated than what's been offered already. Here's a function which classifies and returns all of the objects in the namespace of a package. There are three advantages to this approach over something like ls("package:ggplot2"). 1) You don't

Re: [R] empty data frame and POSIXct data types

2021-06-24 Thread Olivier Crouzet
Hi Stefano, my guess is that you're expecting data recycling to apply but your data frame is only one row long... therefore you can't insert a 2-row vector into a 1-row vector. Recycling won't help. You should specify the number of rows that will be required in your data frame using (e.g) rep().

Re: [R] empty data frame and POSIXct data types

2021-06-24 Thread Jeff Newmiller
1) It _is_ a vector. Why do you think it is not a vector? 2) Your data frame has one row, with an NA in the date_POSIX column. You cannot fit a vector of length 2 as a column into a data frame with only 1 row. What are you trying to do? Do you really want to end up with a 2-row data frame or a

[R] empty data frame and POSIXct data types

2021-06-24 Thread Stefano Sofia
Dear R users, I know that this question is silly (I am not a R newby) but I already wasted quite a lot of energies trying to fill in an empty data frame (with "POSIXct" "POSIXt" data type). Suppose I create mydf <- data.frame(data_POSIX=as.POSIXct(NA), value=as.numeric(NA)) day1 <- as.POSIXct("2

Re: [R] interactively getting alist of functions for a given package?

2021-06-24 Thread Greg Minshall
Duncan, > Bert gave you an answer that depends on ls(). Whether there's > something like "set" that can return "asset" probably depends on > your front end, and may be customizable using the facilities described > in ?rcompgen. thanks. i am just using command line R on linux. i tried setting `