search for: help&data

Displaying 20 results from an estimated 58 matches for "help&data".

2023 Apr 07
2
R does not run under latest RStudio
...ease call phone number above prior to faxing) On Apr 6, 2023, at 5:30 PM, David Winsemius <dwinsemius at comcast.net> wrote: ? On 4/6/23 03:49, Steven Yen wrote: The RStudio list generally does not respond to free version users. I was hoping someone one this (R) list would be kind enough to help me. I don't think that is true. It is perhaps true that you cannot get personalized help from employed staff, but you can certainly submit to the Q&A forum. -- David Steven from iPhone On Apr 6, 2023, at 6:22 PM, Uwe Ligges <ligges at statistik.tu-dortmund.de> wrote: ?No, but...
2023 Jan 15
2
Removing variables from data frame with a wile card
...k of presenting something that has been shown before, below I demonstrate how a column in a data frame can be dropped using a wild card, i.e. a column whose name starts with "th" using nothing more than base r functions and base R syntax. While additions to R such as tidyverse can be very helpful, many things that they do can be accomplished simply using base R. # Create data frame with three columns one <- rep(1,10) one two <- rep(2,10) two three <- rep(3,10) three mydata <- data.frame(one=one, two=two, three=three) cat("Data frame with three columns\n") mydata...
2017 Aug 22
1
Convert Factor to Date
...g-15 1-Aug-16 Sep-15 1-Aug-16 Oct-15 1-Aug-16 Nov-15 1-Aug-16 Dec-15 1-Aug-16 Jan-16 1-Aug-16 Feb-16 1-Aug-16 Mar-16 1-Aug-16 Apr-16 1-Aug-16 May-16 1-Aug-16 Jun-16 1-Aug-16 Jul-16 1-Aug-16 Aug-16 1-Aug-16 Sep-16 1-Aug-16 Oct-16 1-Aug-16 ________________________________ From: R-help <r-help-bounces at r-project.org> on behalf of Spencer Graves <spencer.graves at effectivedefense.org> Sent: Tuesday, August 22, 2017 2:49 PM To: r-help at r-project.org Subject: Re: [R] Convert Factor to Date On 2017-08-22 1:30 PM, Patrick Casimir wrote: > Dear R Fellows, > &g...
2023 Mar 21
1
Good Will Legal Question
...uess: It I clear from the link that they can use the R logo for commercial purposes. The issue is what to do about the "appropriate credit" and "link to the license." How would I do that on a hoodie? Would they need a web address or something? -----Original Message----- From: R-help <r-help-bounces at r-project.org> On Behalf Of John Fox Sent: Tuesday, March 21, 2023 1:19 PM To: Coding Hoodies <codinghoodies at mail.com> Cc: r-help at r-project.org Subject: Re: [R] Good Will Legal Question [External Email] Dear Arid Sweeting, R-help is probably not the place to...
2023 Jan 16
1
return value of {....}
Richard, A slight addition to your code shows an important aspect of R, local vs. global variables: x <- 137 f <- function () { a <- x x <- 42 b <- x list(a=a, b=b) } f() print(x) ________________________________________ From: R-help <r-help-bounces at r-project.org> on behalf of Richard O'Keefe <raoknz at gmail.com> Sent: Sunday, January 15, 2023 6:39 PM To: Valentin Petzel Cc: R help Mailing list Subject: Re: [R] return value of {....} I wonder if the real confusino is not R's scope rules? (begin .) is no...
2023 Jan 16
2
return value of {....}
...\n") y <- a y2 <- y+b cat("y=",y,"y2=",y2,"\n") } # b is a global variable and will be know to the function, # but should be passed as a parameter as in example above. b <- 100 myNGfunction(y) John ________________________________________ From: R-help <r-help-bounces at r-project.org> on behalf of Sorkin, John <jsorkin at som.umaryland.edu> Sent: Sunday, January 15, 2023 7:40 PM To: Richard O'Keefe; Valentin Petzel Cc: R help Mailing list Subject: Re: [R] return value of {....} Richard, A slight addition to your code shows an im...
2023 Jan 16
1
return value of {....}
...stions about R remains BECAUSE that is how it was done and whether you like it or not, may not change much any time soon. That is why so many people like packages such as in the tidyverse because they manage to make some changes, for better and often for verse. -----Original Message----- From: R-help <r-help-bounces at r-project.org> On Behalf Of Sorkin, John Sent: Sunday, January 15, 2023 8:08 PM To: Richard O'Keefe <raoknz at gmail.com>; Valentin Petzel <valentin at petzel.at> Cc: R help Mailing list <r-help at r-project.org> Subject: Re: [R] return value of {....}...
2024 Apr 22
2
x[0]: Can '0' be made an allowed index in R?
You could have negative indices. There are two ways to do this. 1) provide a large offset. Offset <- 30 for (i in -29 to 120) { print(df[i+Offset])} 2) use absolute values if all indices are negative. for (i in -200 to -1) {print(df[abs(i)])} Tim -----Original Message----- From: R-help <r-help-bounces at r-project.org> On Behalf Of Peter Dalgaard via R-help Sent: Monday, April 22, 2024 10:36 AM To: Rolf Turner <rolfturner at posteo.net> Cc: R help project <r-help at r-project.org>; Hans W <hwborchers at gmail.com> Subject: Re: [R] x[0]: Can '0' be...
2023 Jan 14
1
Removing variables from data frame with a wile card
...a.frame retains common parts till things change. > > For those who like to use the tidyverse, it comes with lots of tools that let you select columns that start with or end with or contain some pattern and I find that way easier. > > > > -----Original Message----- > From: R-help <r-help-bounces at r-project.org> On Behalf Of Steven Yen > Sent: Saturday, January 14, 2023 7:49 AM > To: Andrew Simmons <akwsimmo at gmail.com> > Cc: R-help Mailing List <r-help at r-project.org> > Subject: Re: [R] Removing variables from data frame with a wile card...
2023 Apr 06
2
R does not run under latest RStudio
On 4/6/23 03:49, Steven Yen wrote: > The RStudio list generally does not respond to free version users. I was hoping someone one this (R) list would be kind enough to help me. I don't think that is true. It is perhaps true that you cannot get personalized help from employed staff, but you can certainly submit to the Q&A forum. -- David > > Steven from iPhone > >> On Apr 6, 2023, at 6:22 PM, Uwe Ligges <ligges at statistik.tu-dortmun...
2023 Apr 04
1
Simple Stacking of Two Columns
...= 1:5, right = 6:10) df.combined <- data.frame(comb = c(df$left, df$right)) df left right 1 1 6 2 2 7 3 3 8 4 4 9 5 5 10 df.combined comb 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 -----Original Message----- From: R-help <r-help-bounces at r-project.org> On Behalf Of Heinz Tuechler Sent: Monday, April 3, 2023 4:39 PM To: r-help at r-project.org Subject: Re: [R] Simple Stacking of Two Columns Jeff Newmiller wrote/hat geschrieben on/am 03.04.2023 18:26: > unname(unlist(NamesWide)) Why not: NamesWide <-...
2017 Oct 23
0
R base packages
...ackages? Also; are R > base packages also in CRAN? and are these packages updated only when a new > version of R is released or can the be updated at a different time? Thanks > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML v...
2023 Oct 11
2
Problem with compatible library versions
Is that a method where a program that I write today would still run without changes in 10 years? Tim -----Original Message----- From: R-help <r-help-bounces at r-project.org> On Behalf Of Richard O'Keefe Sent: Wednesday, October 11, 2023 8:08 AM To: Uwe Ligges <ligges at statistik.tu-dortmund.de> Cc: r-help at r-project.org Subject: Re: [R] Problem with compatible library versions [External Email] There is a fairly str...
2017 Oct 23
2
R base packages
I installed R 3.4.2 (Windows) and noticed that 30 folders are under my R_HOME/library folder. I assume all of these are R base packages. Is this correct? Where can I see a list of current R base packages? Also; are R base packages also in CRAN? and are these packages updated only when a new version of R is released or can the be updated at a different time? Thanks [[alternative HTML version
2017 Aug 22
0
Convert Factor to Date
...9;) [1] NA > as.Date(factor('Nov-16'), '%b-%y') [1] NA > as.Date('Nov-16', '%b-%y') [1] NA ????? To convert the first column, I pasted "1-" in front: as.Date(paste0('1-', factor('Nov-16')), '%d-%b-%y') ????? Hope this helps.? Spencer > Much Thanks > > > COL1 COL2 > Apr-16 1-Nov-16 > May-16 1-Nov-16 > Jun-16 1-Nov-16 > Jul-16 1-Nov-16 > Aug-16 1-Nov-16 > Sep-16 1-Nov-16 > Oct-16 1-Nov-16 > Nov-16 1-Nov-16 > Dec-16 1-Nov-16 > Jan-17 1-Nov-16 > Feb-17 1-Nov-16...
2024 Feb 29
2
Initializing vector and matrices
...t I know of to having unused space in a matrix is the amount of memory it takes. One side effect is that your program may have a mistake that you would normally catch with a subscript out of bounds error but with the extra space it now runs without errors. Tim -----Original Message----- From: R-help <r-help-bounces at r-project.org> On Behalf Of Richard O'Keefe Sent: Thursday, February 29, 2024 5:29 AM To: Steven Yen <styen at ntu.edu.tw> Cc: R-help Mailing List <r-help at r-project.org> Subject: Re: [R] Initializing vector and matrices [External Email] x <- numeric(...
2024 Feb 23
1
help - Package: stats - function ar.ols
The data came through fine, the program was a miss. Can you paste the program into a ".txt" document like a notepad file and send that? You could also paste it into your email IF your email is configured to send text and NOT html. TIm -----Original Message----- From: R-help <r-help-bounces at r-project.org> On Behalf Of Pedro Gavronski. Sent: Friday, February 23, 2024 5:00 AM To: Rui Barradas <ruipbarradas at sapo.pt> Cc: r-help at r-project.org; r-help-request at r-project.org Subject: Re: [R] help - Package: stats - function ar.ols [External Email] Hel...
2023 Apr 03
1
Simple Stacking of Two Columns
...> stack(NamesWide)[, 1, drop = FALSE] ? values 1 ? ?Tom 2 ? Dick 3 ?Larry 4 ?Curly which returns a data frame with a single column named 'values'. Regards, Marc Schwartz On April 3, 2023 at 11:08:59 AM, Sparks, John (jspark4 at uic.edu (mailto:jspark4 at uic.edu)) wrote: > Hi R-Helpers, > > Sorry to bother you, but I have a simple task that I can't figure out how to do. > > For example, I have some names in two columns > > NamesWide<-data.frame(Name1=c("Tom","Dick"),Name2=c("Larry","Curly")) > > and I simpl...
2024 Apr 23
1
x[0]: Can '0' be made an allowed index in R?
...s. > 1) provide a large offset. > Offset <- 30 > for (i in -29 to 120) { print(df[i+Offset])} > > > 2) use absolute values if all indices are negative. > for (i in -200 to -1) {print(df[abs(i)])} > > Tim > > > > -----Original Message----- > From: R-help <r-help-bounces at r-project.org> On Behalf Of Peter Dalgaard via R-help > Sent: Monday, April 22, 2024 10:36 AM > To: Rolf Turner <rolfturner at posteo.net> > Cc: R help project <r-help at r-project.org>; Hans W <hwborchers at gmail.com> > Subject: Re: [R] x[0]:...
2017 Aug 22
5
Convert Factor to Date
Dear R Fellows, I Have a dataset( data1) with 2 columns of date showing a class of factor. How to convert them to date? Then compare them, keep the greater date only in a new column. Using as.Date to change the class to Date but the data becomes NA. Much Thanks COL1 COL2 Apr-16 1-Nov-16 May-16 1-Nov-16 Jun-16 1-Nov-16 Jul-16 1-Nov-16 Aug-16 1-Nov-16 Sep-16 1-Nov-16 Oct-16 1-Nov-16