Displaying 20 results from an estimated 82 matches for "stervbo".
2018 Jan 28
1
Newbie wants to compare 2 huge RDSs row by row.
...fferences 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 compare two o...
2018 Jan 28
2
Newbie wants to compare 2 huge RDSs row by row.
...om/?q=1020+W.+South+St.+/+Raleigh,+NC+27603&entry=gmail&source=g>
> -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
>...
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() will brin...
2017 Sep 12
2
Load R data files
...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
>
> On...
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 the data....
2017 Aug 26
0
Find maxima of a function
...sum(mc0))
> plot(rv, to.draw.arg="d")
>
> I want output around 672 in first case and in 2nd case around 2.1
> according to the plot.
> your code will not work in both the scenario
>
> Regards
> Niharika Singhal
>
>
> On Sat, Aug 26, 2017 at 12:47 PM, Ulrik Stervbo <ulrik.stervbo at gmail.com>
> wrote:
>
>> Hi,
>>
>> I once found this somewhere on stackoverflow:
>>
>> values <- rnorm(20, mean = c(2.15,2.0,2.9), sd = c(0.1,0.1,0.1))
>>
>> v_dens <- density(values)
>> v_dens_y <- v_dens$y
>...
2018 Jan 27
2
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 if you'd...
2016 Apr 24
2
Inserting a blank row to every other row
...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-help <r...
2018 Jan 28
0
Newbie wants to compare 2 huge RDSs row by row.
...# 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 closely en...
2017 Aug 04
0
define a list with names as variables
...tion(foo, bar) {
> + result <- list(bar)
> + names(result) <- foo
> + result
> + }
>
>> (x <- f("hello", "world"))
> $hello
> [1] "world"
>
>> names(x)
> [1] "hello"
On Fri, Aug 4, 2017 at 12:14 PM, Ulrik Stervbo <ulrik.stervbo at gmail.com> wrote:
> Hi Giovani,
>
> I would create an unnamed list and set the names after.
>
> Best,
> Ulrik
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 Apr 17
0
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-help post....
2016 Apr 24
0
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
>> Ulrik
>...
2017 Aug 04
2
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,
>>
>> I'...
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 Jul 13
2
Help with R script
...any row is missing the ?:?, it will fail.
If the ?:? is not followed by a space character it may fail (I have not checked)
-Don
--
Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062
On 7/13/17, 6:47 AM, "R-help on behalf of Ulrik Stervbo" <r-help-bounces at r-project.org on behalf of ulrik.stervbo at gmail.com> wrote:
Hi Vijayan,
one way going about it *could* be this:
library(dplyr)
library(tidyr)
library(purrr)
ex_dat <- c("FName: fname1", "Fval: Fval1.name1&quo...
2018 Jan 27
0
Newbie wants to compare 2 huge RDSs row by row.
...numeric, 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 your data y...
2018 Apr 17
3
Hacked
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-help post. They are not, however, going through the r-help server.
It also seems that this does not happen to everyone.
I am not sure how you can automatically block the
2017 Jul 14
0
Help with R script
...ollowed by a space character it may fail (I have not
> checked)
>
> -Don
>
> --
> Don MacQueen
>
> Lawrence Livermore National Laboratory
> 7000 East Ave., L-627
> Livermore, CA 94550
> 925-423-1062
>
>
> On 7/13/17, 6:47 AM, "R-help on behalf of Ulrik Stervbo" <
> r-help-bounces at r-project.org on behalf of ulrik.stervbo at gmail.com> wrote:
>
> Hi Vijayan,
>
> one way going about it *could* be this:
>
> library(dplyr)
> library(tidyr)
> library(purrr)
>
> ex_dat <- c("FName: f...
2016 Apr 22
2
clock24.plot/radial plot
...message: "Error in
eval(expr, envir, enclos) : could not find function "days"
I was thinking that if I could run this code, I can see what is doing
and then start trying to see if I can adapt it to solve my problem.
Thank you so much for further assistance.
Ogbos
On 4/22/16, Ulrik Stervbo <ulrik.stervbo at gmail.com> wrote:
> I use ggplot2 for all my plotting needs where you can make plots circular
> with the coord_polar. Maybe this will help you along:
> http://rstudio-pubs-static.s3.amazonaws.com/3369_998f8b2d788e4a0384ae565c4280aa47.html
>
> On Fri, 22 Apr 20...