search for: ulrik

Displaying 20 results from an estimated 119 matches for "ulrik".

2018 Jan 28
1
Newbie wants to compare 2 huge RDSs row by row.
...erences in two data.frames... length(which( rowSums( x1 != x2 ) > 0)) gives a count of the # of records in two data.frames that do not match. // ________________________________________ From: Henrik Bengtsson [henrik.bengtsson at gmail.com] Sent: Sunday, January 28, 2018 11:12 AM To: Ulrik Stervbo Cc: Marsh Hardy ARA/RISK; r-help at r-project.org Subject: Re: [R] Newbie wants to compare 2 huge RDSs row by row. The diffobj package (https://cran.r-project.org/package=diffobj) is really helpful here. It provides "diff" functions diffPrint(), diffStr(), and di...
2018 Jan 28
1
Newbie wants to compare 2 huge RDSs row by row.
...6.0 1.8 virginica 127 6.2 2.8 4.8 1.8 virginica What's not show here is that the colored output (supported by many terminals these days) also highlights exactly which elements in those rows differ. /Henrik On Sun, Jan 28, 2018 at 12:17 AM, Ulrik Stervbo <ulrik.stervbo at gmail.com> wrote: > The anti_join from the package dplyr might also be handy. > > install.package("dplyr") > library(dplyr) > anti_join (x1, x2) > > You can get help on the different functions by ?function.name(), so > ?anti_join() w...
2017 Aug 04
1
define a list with names as variables
Hello Thomas, Ulrik, thanks for your suggestions. Giovanni On Fri, Aug 4, 2017 at 12:13 PM, Thomas Mailund <thomas.mailund at gmail.com> wrote: > Do you mean like this? > > >> f <- function(foo, bar) { > + result <- list(bar) > + names(result) <- foo > + result > + }...
2017 Aug 26
1
Find maxima of a function
Please keep the list in cc. Sorry, it didn't work as expected. Maybe someone else have an appropriate solution. Best, Ulrik On Sa., 26. Aug. 2017, 12:57 niharika singhal <niharikasinghal1990 at gmail.com> wrote: > Hi > > Thanks for you mail, > I really appreciate your time on my problem > > I have posted this problem on > > > https://stats.stackexchange.com/questions/29...
2017 Jul 14
1
Help with R script
..., newtst[i]) & grepl("Fval", newtst[i + 1])){ newtst_new[c(j, j + 1)] <- newtst[c(i, i + 1)] i <- i + 2 }else{ newtst_new[c(j, j + 1)] <- c(newtst[c(i)], "Fval: ") i <- i + 1 } j <- j + 2 } newtst_new which is also not very pretty. HTH Ulrik On Thu, 13 Jul 2017 at 16:48 MacQueen, Don <macqueen1 at llnl.gov> wrote: > 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: ", "FN...
2017 Sep 12
1
Load R data files
...> > > It seems for me that the file was loaded to R. But when I typed the data > name, it says that the not found. > > > *datahs0csv2* > > *Error: object 'datahs0csv2' not found* > > > with many thanks > abou > > On Tue, Sep 12, 2017 at 2:53 PM, Ulrik Stervbo <ulrik.stervbo at gmail.com> > wrote: > >> Hi Abou, >> >> You haven't saved the datahs0csv. >> >> When you are done manipulating datahs0csv you can use save(datahs0csv, >> file = 'datahs0csv.rda'). Then you should be able to load t...
2018 Jan 28
1
Newbie wants to compare 2 huge RDSs row by row.
...You can get help on the different functions by ?function.name(), so ?anti_join() will bring you help - and examples - on the anti_join function. It might be worth testing your approach on a small subset of the data. That makes it easier for you to follow what happens and evaluate the outcome. HTH Ulrik Marsh Hardy ARA/RISK <mhardy at ara.com> schrieb am So., 28. Jan. 2018, 04:14: > Cool, looks like that'd do it, almost as if converting an entire record to > a character string and comparing strings. > > -- M. B. Hardy, statistician > work: Applied Research Associa...
2013 Feb 12
6
Private environments and/or assignInMyNamespace
...in my namespace and modify these via assignInMyNamespace (I don''t think that anybody from somewhere else would import that namespace, it''s not that kind of package). Would that be a viable alternative, and would the widgets be found that way? Any further ideas? Best regards, Ulrike -- ***************************************************** * Ulrike Groemping * * BHT Berlin - University of Applied Sciences * ***************************************************** * +49 (30) 39404863 (Home Office) * * +49 (30) 4504 5127 (B...
2017 Sep 04
1
Dataframe Manipulation
Hello Ulrik, Can you please explain this code means how and what this code is doing because I'm not able to understand it, if you can explain it i can use it in future by doing some Lil bit manipulation. Thanks data_help <- data_help %>% mutate(Purchase_ID = 1:n()) %>% group_by(Purchase_I...
2018 Jan 28
1
Newbie wants to compare 2 huge RDSs row by row.
...0 / Raleigh, NC 27615-2963 (919) 582-3329, fax: 582-3301 home: 1020 W. South St. / Raleigh, NC 27603-2162 (919) 834-1245 ________________________________________ From: William Dunlap [wdunlap at tibco.com] Sent: Saturday, January 27, 2018 4:57 PM To: Marsh Hardy ARA/RISK Cc: Ulrik Stervbo; Eric Berger; r-help at r-project.org Subject: Re: [R] Newbie wants to compare 2 huge RDSs row by row. If your two objects have class "data.frame" (look at class(objectName)) and they both have the same number of columns and the same order of columns and the column types match cl...
1998 May 08
1
R-beta: [ajanku@ulrik.uio.no: R-0.61.3 with readline]
This was accidentally sent to R-help-owner instead of R-help [why on earth ??] Can anyone help here? -------------- next part -------------- An embedded message was scrubbed... From: "A. Jan Kutylowski" <ajanku at ulrik.uio.no> Subject: R-0.61.3 with readline Date: Fri, 8 May 1998 12:41:54 +0200 Size: 747 Url: https://stat.ethz.ch/pipermail/r-help/attachments/19980508/27f339b6/attachment.mht
2017 Jul 13
1
Help with R script
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, str...
2018 Apr 17
2
Hacked
I got some spam emails after my last post to the list, and the emails did not seem to go through r-help. The spammers may be subscribed to the r-help, or they get the poster emails from some of the web copies of this list (nabble or similar). Peter On Tue, Apr 17, 2018 at 11:37 AM, Ulrik Stervbo <ulrik.stervbo at gmail.com> wrote: > I asked the moderators about it. This is the reply > > "Other moderators have looked into this a bit and may be able to shed more > light on it. This is a "new" tactic where the spammers appear to reply to > the r-hel...
2017 Aug 04
1
define a list with names as variables
You can wrap the list-creating function call (e.g. lapply) in a call to ?setNames, or you can use the ?map function from the purrr package. -- Sent from my phone. Please excuse my brevity. On August 4, 2017 3:14:44 AM PDT, Ulrik Stervbo <ulrik.stervbo at gmail.com> wrote: >Hi Giovani, > >I would create an unnamed list and set the names after. > >Best, >Ulrik > >On Fri, 4 Aug 2017 at 12:08 Giovanni Gherdovich ><g.gherdovich at gmail.com> >wrote: > >> Hello, >> >&gt...
2018 Jan 27
2
Newbie wants to compare 2 huge RDSs row by row.
...meric, all with "Length:368842" I assume is the # of records. I'd like to know the record number (row #?) of any record where the data doesn't match in the 2 files of what should be the same output. Thanks in advance, M. // ________________________________________ From: Ulrik Stervbo [ulrik.stervbo at gmail.com] Sent: Saturday, January 27, 2018 10:00 AM To: Eric Berger Cc: Marsh Hardy ARA/RISK; r-help at r-project.org Subject: Re: [R] Newbie wants to compare 2 huge RDSs row by row. Also, it will be easier to provide helpful information if you'd describe what in...
2017 Aug 31
1
Dataframe Manipulation
...gather("Foo", "Item") %>% filter(!is.na(Item)) %>% left_join(data_help, by = "Item") %>% group_by(Foo, Purchase_ID) %>% summarise(Item = paste(Item, collapse = ", ")) %>% spread(key = "Foo", value = "Item") HTH Ulrik On Wed, 30 Aug 2017 at 13:22 Hemant Sain <hemantsain55 at gmail.com> wrote: > by using these two tables we have to create third table in this format > where categories will be on the top and transaction will be in the rows, > > On 30 August 2017 at 16:42, Hemant Sain <hemants...
2016 Apr 24
1
Inserting a blank row to every other row
..., > Bert > > > > 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 Sun, Apr 24, 2016 at 8:21 AM, Ulrik Stervbo <ulrik.stervbo at gmail.com> wrote: >> Hi Saba, >> >> I don't know how to do what you want and I also cannot see why. >> >> If you describe what you hope to achieve there might be a different >> solution. >> >> Best wishes >> U...
2016 Apr 24
1
Inserting a blank row to every other row
...s that does not require this kind of artifice. Cheers, Bert 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 Sun, Apr 24, 2016 at 8:21 AM, Ulrik Stervbo <ulrik.stervbo at gmail.com> wrote: > Hi Saba, > > I don't know how to do what you want and I also cannot see why. > > If you describe what you hope to achieve there might be a different > solution. > > Best wishes > Ulrik > > Saba Sehrish via R-he...
2018 Jan 27
1
Newbie wants to compare 2 huge RDSs row by row.
...I assume is the # of records. > > I'd like to know the record number (row #?) of any record where the data > doesn't match in the 2 files of what should be the same output. > > Thanks in advance, M. > > // > ________________________________________ > From: Ulrik Stervbo [ulrik.stervbo at gmail.com] > Sent: Saturday, January 27, 2018 10:00 AM > To: Eric Berger > Cc: Marsh Hardy ARA/RISK; r-help at r-project.org > Subject: Re: [R] Newbie wants to compare 2 huge RDSs row by row. > > Also, it will be easier to provide helpful information...
2017 Oct 09
1
example of geom_contour() with function argument
Hello Ulrik, I apologize, but I can not see how to provide a pdf in place of the density function which calculates a KDE (that is, something from the dataset in the example). Can you please point to the specific example that might help? Here is what I get: require(mvtnorm) require(ggplot2) set.seed(1234) xx...