Hi
OK, thanks for sending dput result.
I am still not sure what exactly you want. Using ?ave you can get result of
x/max(x)
dat$prob <- ave(dat$value, paste(dat$id, dat$i), FUN= function(x) x/max(x))
however in case max(x) is zero the result is NA
You can change it to zero
Dear all,
please could you advise about a method to scale 2 plots of LOESS curves.
More specifically, we do have 2 sets of 5C data, and the loess plots
reflect the relationship between INTENSITY and DISTANCE (please see the R
code below).
I am looking for a method/formula to scale these 2 LOESS
Hi
Why do you post the same question without following Sarah's advice?
You can clearly see that due your HTML posting your data are terrible mess and
we do not have slightest idea what you really want.
So again. Please copy to next mail result of
dput(head(df, 20))
and explain what shall be
apology for re sending the Email, I changed the format to plain text as I have
been advised
the data is as follow
thanks Sarah,
I used pdut, and here is the data as written on R..I attached the dput result
structure(list(Measure_id = c(1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3,
3, 1, 1, 1, 1, 1, 2,
Hola Marcos,
échale un vistazo al paquete ggsn:
https://cran.rstudio.com/web/packages/ggsn/ &
http://oswaldosantos.github.io/ggsn/
Saludos
Paco
El 04/09/2015 a las 18:51, Marcos Bermejo escribió:
> Hola a tod@s,
>
> Este es el c�digo principal que utilizo para dise�ar mi zona de estudio
>
What is the access time for R lists given a name of list element, is it
linear, log, or constant?
Than what are to rules for names in R-lists
That reusing names is possible makes me wonder.
tmp <- as.list(c(1,2,3,4))
names(tmp) = c("a","a","b","b")
tmp
tmp$a
What I am looking for is a
Hi!
I have the following dataset with the variables ID (this is a unique ID per
farmer), year, and another variable t1.
I now would like to have a fourth variable which is the lag value of t1 for
each farm ID.
I found a code on the internet that does exactly what I need, but it does
not work for
Hello all
last week I create a script with R
This script connect to Oracle database and retreave some data.
This is a sample of the code
dbName <- sqlQuery(con, "SELECT instance_name, host_name from
v$instance",errors=FALSE)
title (main = paste0("Mapa de los dblinks del entorno: ",
Hi Rosa,
I think all you need is the split.screen commands but this will show you
where each screen number is located:
split.screen(figs=matrix(c(0,0.8,0,1,0.8,1,0,1),ncol=4,byrow=TRUE))
split.screen(figs=matrix(c(0,0.5,0.5,1,0.5,1,0.5,1,0,0.5,0,0.5,0.5,1,0,0.5),
ncol=4,byrow=TRUE),screen=1)
Dear R enthusiasts, I would like to announce nhanesA, a package that
enables easy retrieval of the data tables that are available at the
National Health and Nutritional Examination Survey (NHANES).
NHANES data are used in over 10,000 peer-reviewed journal publications
every year. In addition to
Hi,
I started using R recently and everything was going perfect until I stoped
seeing my output results in the R console.
Now, instead of showing ">" on the console before the command, it shows
"+". It doesn't even close the program now. I'm using the 64bit 3.2.2
version.
E.g.:
+ 1
+ q()
Thanks!
Hi
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of
> rbalasus
> Sent: Monday, September 07, 2015 1:19 PM
> To: r-help@r-project.org
> Subject: [R] values in date format from .xls as label on x-line
>
>
> hello , I am very new to R, till now I was
You will get better answers on the R-sig-db mailing list.
You don't say which package you are using, but I don't think RODBC supports
non-SELECT statements.
---
Jeff NewmillerThe .
press ESC.
You may have entered a command that was missing a parenthesis or something
else that R needs before it can make sense out of your code (e.g., entering
"sum(X" without the closing paren will give you that pattern). ESC brings
back the command line and you can try again.
-Dan
--
hello , I am very new to R, till now I was working with lineplots reading
their data from .xls files. All was working as expected,
now I want to label the data-values with "date"-values on the x line. But I
have absolute no clue how to read and interprete these values as date-values
not just
Hi everyone,
I am developing a text classification code in R using 'maxent' package. I
see that there is a limit on number of unique class labels that can be
modeled, which is 255. Can someone please help me understand why this limit
is present?
The data I am working on has about 400 labels (data
You puzzle me. Why does someone who cannot figure out how to post an email in
plain text after so many messages on this mailing list get all worried about
access time for string indexing?
Environment objects have those properties. They do not solve all problems
though, because they are rather
On Mon, Sep 7, 2015 at 11:34 AM, Witold E Wolski wrote:
> What is the access time for R lists given a name of list element, is it
> linear, log, or constant?
Try it and see?
> Than what are to rules for names in R-lists
>
> That reusing names is possible makes me wonder.
>
Hi
You probably already found what is wrong. You entered syntactically correct
expression but without proper closing part. R expects this closing part of an
expression. You can stop it by menu Misc/Stop all computation or simply
pressing ESC.
Cheers
Petr
> -Original Message-
> From:
Hi Jeff
yes I use RODBC, and I think you're write... Only "select" statments... I have
a solution I think.
When I'll be sure, I'll share the info into the list.
Thanks a lot !
Tecnocom
Luis Diaz
Arquitecto Bases de Datos Oracle
Email: luis.d...@tecnocom.es
http://www.tecnocom.es
No rex, but not much less complicated, than your original but a different
approach:
> i <- seq(1, nchar(str), 2)
> paste0(mapply(substr, str, i, i), collapse="")
[1] "ACEG"
-
David L Carlson
Department of Anthropology
Texas A University
College Station, TX
# or:
strsplit("junk",split=NULL)[[1]][(1:nchar("junk"))%%2==1]
strsplit("junk",split=NULL)[[1]][(1:nchar("junk"))%%2==0]
--
View this message in context:
http://r.789695.n4.nabble.com/extracting-every-nth-character-from-a-string-tp4711908p4711962.html
Sent from the R help mailing list
# as a complete function
StrSubset<-function(junk,n){
ifelse(n==1,junk,
paste(strsplit(junk,split=NULL)[[1]][(1:nchar(junk))%%n==1],collapse=''))
}
--
View this message in context:
http://r.789695.n4.nabble.com/extracting-every-nth-character-from-a-string-tp4711908p4711963.html
Sent from
If
Jeff Newmiller wrote
> There are lots of them. You might be having trouble searching because you
> don't know how to spell "interpolate".
Hi Jeff,
If you re-read my original post you will see the word interpolate, spelled
correctly. I also used the made-up word "intrapolate" (I thought that
Sorry, I did not see your use of the correct term, and I did not see any
distinction between interpolate and the process you were describing so
"intrapolate" just looked out of place.
If Google isn't helping, try
library(sos)
findFn("interpolate")
I am not seeing an option with
$ ./configure --help
to include libcurl. The Release Notes say:
=
It is now easier to use secure downloads from https:// URLs on builds
which support them: no longer do non-default options need to be
selected to do so. In particular, packages can be installed
... But This list has a *no homework* policy, and this sounds like homework.
Cheers,
Bert
Bert Gunter
"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
-- Clifford Stoll
On Mon, Sep 7, 2015 at 12:17 PM, John Kane wrote:
>
> On Sep 7, 2015, at 1:20 PM, Jon BR wrote:
>
> Hi John,
> Thanks for the reply; I'm pasting here the output from dput, with a
> 'df <-' added in front:
>
> df <- structure(list(rowNum = c(1, 2, 3), first = structure(c(NA, 1L,
> 2L), .Label = c("AD=2;BA=8",
Right R-3.2.2 has the new default, but requires, for example, libcurl
suppport in order to be able to deal with https. See the reelase Notes.
Otherwise, http works as before.
Best,
Uwe Ligges
On 07.09.2015 17:08, Bennet Fauber wrote:
I recently compiled and installed R 3.2.2 on an RHEL 6.5
I have never even heard of the package but it might be just that that is the
default maximum number of labels programmed in.
Have a look at the manual and/or the actual function. If you don't get an
answer in a day or so, email the author or maintainer.
John Kane
Kingston ON Canada
>
Hi John,
Thanks for the reply; I'm pasting here the output from dput, with a
'df <-' added in front:
df <- structure(list(rowNum = c(1, 2, 3), first = structure(c(NA, 1L,
2L), .Label = c("AD=2;BA=8", "AD=9;BA=1"), class = "factor"),
second = structure(c(2L, 1L, NA), .Label =
Hi
what about xlim or ylim?
Cheers
Petr
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Bogdan
> Tanasa
> Sent: Monday, September 07, 2015 8:00 AM
> To: r-help
> Subject: [R] scaling loess curves
>
> Dear all,
>
> please could you advise about a
The R-CRAN project under FreeBSD 10.2 ports is quite obsolete being blocked at
version 3.0.2 while at the moment the project is at version 3.2.2.
Modifying the /usr/ports/math/R port I'm trying to upgrade R to that last
version. When I issue the 'make' command I get the following error
I recently compiled and installed R 3.2.2 on an RHEL 6.5 system. Upon
installation, I tried
$ R-3.2.2/bin/R
R version 3.2.2 (2015-08-14) -- "Fire Safety"
> update.packages()
--- Please select a CRAN mirror for use in this session ---
Error in download.file(url, destfile = f, quiet = TRUE)
Some suggestions on how to ask a question on the R-help list
John Kane
Kingston ON Canada
> -Original Message-
> From: ghada.f...@gmail.com
> Sent: Mon, 7 Sep 2015 16:57:19 +0300
> To: r-help@r-project.org
> Subject: [R] please help me for my project
>
> Hello dears member
> I have
Hi all,
I've read in a large data frame that has formatting similar to the one
in the small example below:
df <-
data.frame(c(1,2,3),c(NA,"AD=2;BA=8","AD=9;BA=1"),c("AD=13;BA=49","AD=1;BA=2",NA));
names(df) <- c("rowNum","first","second")
> df
rowNum first second
1 1
I'm not making a lot of sense of the data, it looks like you want more recodes
than you have mentioned but in any case you might want to look at the recode
function in the car package. It "should" do what you want thought there may be
faster ways to do it.
BTW, for supplying sample data
Hello dears member
I have project to analysis clusters algorithm in R
"K-mean, Hierarchical, Density based and EM"
I want to calculate
Cluster instance , number of iteration , sum of squared error SSE and the
accuracy for each cluster algorithms that i mention above
And the log likelihood for EM
38 matches
Mail list logo