x <- c( "a1", "a10", "a2" )
y <- c( "b10", "b2", "a12", "ca1" )
DF <- expand.grid( x = x, y = y )
# randomize
set.seed( 42 )
DF <- DF[ sample( nrow( DF ) ), ]
# missing from gtools
mixedrank <- function( x ) {
seq.int( length( x ) )[ gtools::mixedorder(x) ]
}
o <- do.call( order, lapply( DF,
???
> y <- sort( c("a1","a2","a10","a12","a100"))
> y
[1] "a1" "a10" "a100" "a12" "a2"
> mixedsort(y)
[1] "a1" "a2" "a10" "a12" "a100"
**Please read the docs!** They say that mixedsort() and mixedorder() both
take a **single vector** as the argument to be sorted or ordered and, as
the
Hi,
Searching for functions that would order strings that mix characters and
numbers in a "natural" way (ie, "a1 a2 a10" instead of "a1 a10 a2"), I found
the mixedsort and mixedorder from the gtools package.
Problems:
1- mixedorder does not work in a "do.call(mixedorder, mydataframe)" call lik
Hello All,
I am facing a unique issue and am unable to find any help in R help pages
or online. I will appreciate your help for the following problem:
I have 2 data-frames, samples below and there is an expected output
R Dataframe1:
C1 C2 C3 C4.. CN
R1
Hello All,
I am facing a unique problem and am unable to find any help in R help pages
or online. I will appreciate your help for the following problem:
I have 2 data-frames, samples below and there is an expected output
R Dataframe1:
C1 C2 C3 C4.. CN
R1
Hello All,
I am facing a unique problem and am unable to find any help in R help pages
or online. I will appreciate your help for the following problem:
I have 2 data-frames, samples below and there is an expected output
R Dataframe1:
C1 C2 C3 C4.. CN
R1
Hi Neha,
This might help:
R<-read.table(text="C1 C2 C3 C4
R1 0 1 0 1
R2 1 0 1 1
R3 1 0 0 0",
header=TRUE)
U<-read.table(text="C1 C2 C3 C4
U1 1 1 0 1
U2 1 1 1 1",
header=TRUE)
# these are matrices - I think this will work for dataframes as well
for(ui in 1:dim(U)[1]) {
for(ri in 1:dim(R)[1]) {
i
cwhmisc package provides essentially the algorithm outlined by Dan.
If you want answers outside your original data (extrapolation) then the
following code at least won't give broken answers, though it is not
necessarily any more "correct" for extrapolation than the approx solution
is.
Regard
> On Mar 11, 2018, at 3:32 PM, Neha Aggarwal wrote:
>
> Hello All,
> I am facing a unique problem and am unable to find any help in R help pages
> or online. I will appreciate your help for the following problem:
> I have 2 data-frames, samples below and there is an expected output
>
> R Datafr
Responses inline.
On Sun, 11 Mar 2018, Neha Aggarwal wrote:
Hello All,
I am facing a unique problem and am unable to find any help in R help pages
or online. I will appreciate your help for the following problem:
I have 2 data-frames, samples below and there is an expected output
R Dataframe1:
On 3/11/2018 3:35 PM, Christofer Bogaso wrote:
But for my reporting purpose, I need to generate a bell curve like
plot based on empirical PDF, that also contains original points.
Any idea would be helpful. Thanks,
Christofer,
something like the following may get you what you want:
## get t
Hello All,
I am facing a unique problem and am unable to find any help in R help pages
or online. I will appreciate your help for the following problem:
I have 2 data-frames, samples below and there is an expected output
R Dataframe1:
C1 C2 C3 C4.. CN
R1
But for my reporting purpose, I need to generate a bell curve like
plot based on empirical PDF, that also contains original points.
Any idea would be helpful. Thanks,
On Mon, Mar 12, 2018 at 3:49 AM, Bert Gunter wrote:
> You need to re-read ?density and perhaps think again -- or do some study --
Hi Christofer,
You may be looking for ecdf (stats) for a start, then working out a
way to translate the cumulative density values into probability
values.
Jim
On Mon, Mar 12, 2018 at 5:45 AM, Christofer Bogaso
wrote:
> Hi,
>
> Let say I have below vector of data-points :
>
> Dat = c(-0.
You need to re-read ?density and perhaps think again -- or do some study --
about how a (kernel) density estimate works. The points at which the
estimate is calculated are *not* the values given, nor should they be!
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people
Hi,
Let say I have below vector of data-points :
Dat = c(-0.444, -0.25, -0.237449799196787, -0.227467046669042,
-0.227454464682363, -0.22, -0.214876033057851, -0.211781206171108,
-0.199891067538126, -0.192920353982301, -0.192307692307692, -0.186046511627907,
-0.184418145956608, -0.
Thank you José María:
You are very kind.
I will study and use your advice.
The first step, takes more information,
but not what I want. (I want the whole data set of "TRM").
I'm going to try with Selenium (RSelenium).
Thank you very much for your help.
Kenneth
- Mensaje original -
De
On Sun, Mar 11, 2018 at 09:12:56AM -0500, KENNETH ROY CABRERA TORRES wrote:
> Hi dear R users:
>
> I'm trying the following code to download an information from the web.
>
> url1 <-
> "http://obieebr.banrep.gov.co/analytics/saw.dll?Go&Path=%2fshared%2fSeries%20Estad%C3%ADsticas_T%2f1.%20Tasa%2
Hi dear R users:
I'm trying the following code to download an information from the web.
url1 <-
"http://obieebr.banrep.gov.co/analytics/saw.dll?Go&Path=%2fshared%2fSeries%20Estad%C3%ADsticas_T%2f1.%20Tasa%20de%20Cambio%20Peso%20Colombiano%2f1.1%20TRM%20-%20Disponible%20desde%20el%2027%20de%20
19 matches
Mail list logo