search for: ulrik

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

2005 Nov 18
3
Method for $
...sing" Error in rematchDefinition(definition, fdef, mnames, fnames, signature) : methods can add arguments to the generic only if '...' is an argument to the generic My searches for a solution of this problem have not been successful. Can someone help? Thanks and regards, Ulrike Gr??mping, Berlin
2017 Aug 04
0
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 > + }...
2010 Sep 04
3
Levels in returned data.frame after subset
Dear List, When I subset a data.frame, the levels are not re-adjusted (see example). Why is this? Am I missing out on some basic stuff here? Thanks Ulrik > m <- data.frame(gender = c("M", "M","F"), ht = c(172, 186.5, 165), wt = c(91,99, 74)) > dim(m) [1] 3 3 > levels(m$gender) [1] "F" "M" > s <- subset(m, m$gender == "M") > dim(s) [1] 2 3 > levels(s$gender) [1]...
2018 Jan 28
2
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 Associates,...
2018 Jan 28
1
Newbie wants to compare 2 huge RDSs row by row.
...of differences 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 diffChr() to compa...
2017 Sep 12
2
Load R data files
...s/1-R/1-R_new/chapter4-Entering_Data/datahs0csv2.rda")* > 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 the data. > HTH > Ulrik >...
2018 Jan 28
0
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 26
0
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/299590/to-find-max...
2017 Jul 13
2
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...
2017 Aug 04
4
define a list with names as variables
Hello, I'm having troubles defining a list where names are variables (of type character). Like this, which gives "foo" instead of "world" (the way I meant it is that "world" is the value of the variable foo). Any hint? > f <- function(foo, bar) { list(foo = bar) } > x <- f("hello", "world") > names(x) [1] "foo"
2017 Sep 12
0
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...
2017 Jul 14
0
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...
2007 Jan 15
2
Whine in dual core Windows PC if R uses full CPU capacity
...nt, I can get rid of the whine by using the mainboard tool „AI Gear“ to reduce the processor’s speed from 2.4GHz to 1.7GHz when I want to concentrate – then the whine is gone (but the simulation is slower). Does anyone have any idea – or hints regarding what else I could think about ? Regards, Ulrike ****************************** Prof. Dr. Ulrike Grömping Fachbereich II TFH Berlin Luxemburger Str. 10 13353 Berlin mail: groemping@tfh-berlin.de www: www.tfh-berlin.de/~groemp/ ****************************** ------- End of Forwarded Message ------- ****************************** Prof....
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
2016 Apr 24
2
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
2
Newbie wants to compare 2 huge RDSs row by row.
...2" 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 y...
2018 Jan 28
0
Newbie wants to compare 2 huge RDSs row by row.
...s Rd., # 6000 / 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...
2006 Mar 05
2
Wishlist: merge and subset to keep attributes (PR#8658)
Full_Name: Ulrike Gr?mping Version: 2.2.1 OS: Windows Submission from: (NULL) (84.190.139.94) When importing data from SPSS, it is a nice feature of the package foreign that it allows (option use.value.labels=F) to work with the original SPSS codes while keeping the value labels as information in an attribute. Un...
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...
2009 Jul 24
1
Wishlist: install.packages to look for the newest version of a package (PR#13851)
Full_Name: Ulrike Groemping Version: 2.9.0 (and older) OS: Windows Submission from: (NULL) (84.190.173.190) When using an older version of R, packages are not found although they are available for newer versions of R and do work when installed with the old version. For example, installing DoE.base on R 2.8.1 inst...