Displaying 20 results from an estimated 212 matches for "ulrike".
Did you mean:
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
> + }
>
>> (x <- f("hello", "world"))
> $hello
>
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 ==
2018 Jan 28
2
Newbie wants to compare 2 huge RDSs row by row.
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() 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
2018 Jan 28
1
Newbie wants to compare 2 huge RDSs row by row.
Thanks, I think I've found the most succinct expression 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;
2017 Sep 12
2
Load R data files
Dear All:
It was saved, but there was a space somewhere. So it works for me now.
I do have another similar problem.
I saved an R data file
save(datahs0csv,file="
F:\Fall_2017\5-STA574\2-Notes\1-R\1-R_new\chapter4-Entering_Data/datahs0csv2
.rda")
*The new R data file "*datahs0csv2.rda*" is in the directory.*
I tried to load the file "" to R, but I got an error
2018 Jan 28
0
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 compare two object 'x' and 'y' and provide
neat colorized summary output.
Example:
> iris2 <- iris
> iris2[122:125,4] <- iris2[122:125,4] + 0.1
> diffobj::diffPrint(iris2, iris)
< iris2
>
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
>
>
>
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, stringsAsFactors=FALSE)
sp <- strsplit(tst$x, ':', fixed=TRUE)
chk <-
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
The object you load has the same name as the object you saved. In this case
datahs0csv and not the name of the file sans .rda
On Di., 12. Sep. 2017, 21:26 AbouEl-Makarim Aboueissa <
abouelmakarim1962 at gmail.com> wrote:
> Dear All:
>
>
> It was saved, but there was a space somewhere. So it works for me now.
>
> I do have another similar problem.
>
> I saved an R
2017 Jul 14
0
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("FName: fname1", "Fval: Fval1.name1", "FName: fname2", "Fval:
Fval2.name2", "FName: fname3", "FName: fname4", "Fval: fval4.fname4")
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:
2016 Apr 24
2
Inserting a blank row to every other row
Well, something like this would work (there may be slicker solutions):
> z <- data.frame(a=1:3,b = letters[1:3])
> i <- seq_len(nrow(z)) *2
> z <-rbind(z,z)
> z[i, ] <- matrix(NA, nr=nrow(z),nc=ncol(z))
> z
a b
1 1 a
2 NA <NA>
3 3 c
4 NA <NA>
5 2 b
6 NA <NA>
But I agree with you that there is probably a way to handle the
underlying
2018 Jan 27
2
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 closely enough (use all.equal(x1, x2) for that), then
you can try
which( rowSums( x1 != x2 ) > 0)
E.g.,
> x1 <- data.frame(X=1:5, Y=rep(c("A","B"),c(3,2)))
> x2 <-
2018 Jan 28
0
Newbie wants to compare 2 huge RDSs row by row.
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, S. E. Div.
8537 Six Forks Rd., # 6000 / Raleigh, NC 27615-2963
(919) 582-3329, fax: 582-3301
home: 1020 W. South St. / Raleigh, NC 27603-2162
(919) 834-1245
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. Unf...
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_ID) %>%
do(split_items(.))
cat_help %>% gather("Foo",
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 insta...