Re: [R] Help with r script

2018-09-05 Thread ruipbarradas
-project.org Assunto: [R] Help with r script  To the R Project: I am using R Studio and I need help sum product exponents with R Script.  Every time I type at the very start in the R Script window like 25* 30 nothing happens.  Where can I go to find the complete commands for basic functions in the r

Re: [R] Help with r script

2018-09-04 Thread Jeff Newmiller
On Tue, 4 Sep 2018, Nathan D Jennings wrote: ?To the R Project: This is the R-help mailing list, populated by various people who use R including the occasional R-core developer. I am using R Studio and I need help sum product exponents with R Script. a) This is the R-help mailing list,

[R] Help with r script

2018-09-04 Thread Nathan D Jennings
 To the R Project: I am using R Studio and I need help sum product exponents with R Script.  Every time I type at the very start in the R Script window like 25* 30 nothing happens.  Where can I go to find the complete commands for basic functions in the r script window? Sincerely, Nathan

Re: [R] Help with R script

2017-07-14 Thread Vijayan Padmanabhan
<r-help@r-project.org> Date: 14-07-2017 10:39 Subject:Re: [R] Help with R script @Don your solution does not solve Vijayan's scenario 2. I used spread and gather for that. An alternative solution to insert mising Fval - picking up with Don's newtst - is newtst <- c(&

Re: [R] Help with R script

2017-07-13 Thread Ulrik Stervbo
@Don your solution does not solve Vijayan's scenario 2. I used spread and gather for that. An alternative solution to insert mising Fval - picking up with Don's newtst - is newtst <- c("FName: fname1", "Fval: Fval1.name1", "FName: fname2", "Fval: Fval2.name2", "FName: fname3", "FName: fname4",

Re: [R] Help with R script

2017-07-13 Thread MacQueen, Don
Using Ulrik’s example data (and assuming I understand what is wanted), here is what I would do: ex.dat <- c("FName: fname1", "Fval: Fval1.name1", "Fval: ", "FName: fname2", "Fval: Fval2.name2", "FName: fname3") tst <- data.frame(x = ex.dat, stringsAsFactors=FALSE) sp <- strsplit(tst$x, ':',

Re: [R] Help with R script

2017-07-13 Thread Ulrik Stervbo
Hi Vijayan, one way going about it *could* be this: library(dplyr) library(tidyr) library(purrr) ex_dat <- c("FName: fname1", "Fval: Fval1.name1", "Fval: ", "FName: fname2", "Fval: Fval2.name2", "FName: fname3") data.frame(x = ex_dat) %>% separate(x, c("F1", "F2"), sep = ": ") %>%

[R] Help with R script

2017-07-13 Thread Vijayan Padmanabhan
Dear R-help Group Scenario 1: I have a text file running to 1000 of lines...that is like as follows: [922] "FieldName: Wk3PackSubMonth" [923] "FieldValue: Apr" [924] "FieldName: Wk3PackSubYear" [925] "FieldValue: 2017" [926] "FieldName: Wk3Code1" [927] "FieldValue: " [928]