search for: ulhaqz

Displaying 5 results from an estimated 5 matches for "ulhaqz".

2016 Apr 18
3
Sum of Numeric Values in a DF Column
Hi, I request help with the following: INPUT: A data frame where column "Lower" is a character containing numeric values (different count or occurrences of numeric values in each row, mostly 2) > dput(dd) structure(list(State = c("Alabama", "Alaska", "Arizona", "Arkansas", "California"), Lower = c("R 72?33",
2016 Apr 18
2
Sum of Numeric Values in a DF Column
...ta > > AA <- stringr::str_extract_all(dd[[2]],"[[:digit:]]+") > BB <- lapply(AA, as.numeric) > ## I think you are looking for one of the following two expressions > sum(unlist(BB)) > sapply(BB, sum) > > > On Mon, Apr 18, 2016 at 12:48 PM, Burhan ul haq <ulhaqz at gmail.com> wrote: >> Hi, >> >> I request help with the following: >> >> INPUT: A data frame where column "Lower" is a character containing numeric >> values (different count or occurrences of numeric values in each row, >> mostly 2) >>...
2016 Apr 18
0
Sum of Numeric Values in a DF Column
## Continuing with your data AA <- stringr::str_extract_all(dd[[2]],"[[:digit:]]+") BB <- lapply(AA, as.numeric) ## I think you are looking for one of the following two expressions sum(unlist(BB)) sapply(BB, sum) On Mon, Apr 18, 2016 at 12:48 PM, Burhan ul haq <ulhaqz at gmail.com> wrote: > Hi, > > I request help with the following: > > INPUT: A data frame where column "Lower" is a character containing numeric > values (different count or occurrences of numeric values in each row, > mostly 2) > >> dput(dd) > structur...
2016 Apr 18
0
Sum of Numeric Values in a DF Column
...r::str_extract_all(dd[[2]],"[[:digit:]]+") >> BB <- lapply(AA, as.numeric) >> ## I think you are looking for one of the following two expressions >> sum(unlist(BB)) >> sapply(BB, sum) >> >> >> On Mon, Apr 18, 2016 at 12:48 PM, Burhan ul haq <ulhaqz at gmail.com> wrote: >>> Hi, >>> >>> I request help with the following: >>> >>> INPUT: A data frame where column "Lower" is a character containing numeric >>> values (different count or occurrences of numeric values in each row, &gt...
2013 Nov 28
1
Relative Cumulative Frequency of Event Occurence
Hi, My objective is to calculate "Relative (Cumulative) Frequency of Event Occurrence" - something as follows: Sample.Number 1st.Fly 2nd.Fly Did.E.occur? Relative.Cum.Frequency.of.E 1 G B No 0.000 2 B B Yes 0.500 3 B G No 0.333 4 G B No 0.250 5 G G Yes 0.400 6 G B No 0.333 7 B B Yes 0.429 8 G G Yes 0.500 9 G B No 0.444 10 B B Yes 0.500 Please refer to the code below: