Or, something to that effect. Following is an example of what I'm
working with basic ABO blood type ML estimation from observed type
(phenotypic) frequencies. First, I generate a log-likelihood function.
mu[1] -> mu[2] are allele freqs for A and B alleles, respectively. Since
freq of O allele i
David - the startup directory for Terminal.app shouldn't affect where R
looks for .Rprofile. If R is started from the command line, it should
look in whatever is the user's current directory (which will be ~/ if
Terminal was just launched), and then ~/ . It shouldn't be looking in
/Applications/
On Sep 18, 2014, at 10:28 AM, davide.chi...@gmail.com wrote:
I tried with a different mirror, but nothing changed...
Any other idea?
Post to the r-SIG--debian mailing list?
Search that list's Archives?
--
David.
Thanks anyway
-- Davide
2014-09-17 10:39 GMT-04:00 Jeff Newmiller :
Try a
Dear Gang Chen;
The .Rprofile is loaded from the startup directory. Terminal.app will
start up in /Applications/ while your R.app session appears to be
starting in a different directory. (We don't know what your startup
directories are.) I'm using R.app in /Applications/ so my .Rprofile
Dear all, I would like to draw something similar to the following picture, does
anyone know a better strategy to start?
http://www.psrd.hawaii.edu/WebImg/Pyx-thermometer.gif
Eve
[[alternative HTML version deleted]]
___
r code for the packages cstmr ,gRain,gRc,gRim,gRbase using probability models,
On Friday, September 19, 2014 7:05 AM, Henrik Bengtsson
wrote:
As a start, make sure you specify the 'colClasses' argument. BTW,
using that you can even go to the extreme and read one column at the
time, if it c
here is a reproducible example, mostly from ?withReplicates. i think
something would have to be done using return.replicates=TRUE to manually
compute survey-adjusted residuals, but i'm not really sure what nor whether
the pseudo r^2 would be meaningful :/
library(survey)
library(quantreg)
data
As a start, make sure you specify the 'colClasses' argument. BTW,
using that you can even go to the extreme and read one column at the
time, if it comes down to that.
To read a 10% subset of the rows, you can use R.filesets as:
library(R.filesets)
db <- TabularTextFile(pathname)
n <- nbrOfRows(d
Dear All,
I have a table of 4 columns and many millions rows separated by tab-delimited.
I don't have enough memory to read.table in that 1 Gb file. And actually I have
12 text files like that. Is there a way that I can just randomly read.table()
in 10% of rows ? I was able to do that using col
The only reason that *should* happen is if there's an .Rprofile in the
directory you're in when you start R.
Where *exactly* is the .Rprofile file you want loaded, what directory are you
starting from, and what does R say is the user's home directory? Did you make
*any* changes to Rprofile.site
Just wanted to acknowledge this. It's a known issue, and one that has been
tricky to solve, because it's platform-specific, so it's probably some sort
of bug in the abstraction (GDK).
On Wed, Sep 17, 2014 at 12:26 AM, François Rebaudo <
francois.reba...@legs.cnrs-gif.fr> wrote:
> Hi,
> The follow
On Sep 18, 2014, at 3:42 PM, Duncan Murdoch wrote:
> On 18/09/2014 2:35 PM, Marc Schwartz wrote:
>> On Sep 18, 2014, at 4:36 AM, Pasu wrote:
>>
>> > Hi
>> >
>> > I would like to know how to use R in our commercial business application
>> > which we plan to host in cloud or deploy on customer's
On 18/09/2014 2:35 PM, Marc Schwartz wrote:
On Sep 18, 2014, at 4:36 AM, Pasu wrote:
> Hi
>
> I would like to know how to use R in our commercial business application
> which we plan to host in cloud or deploy on customer's premise.
>
> 1. Using R and its package, does it enforce that my commer
Hi,
On Sep 18, 2014, at 10:13 AM, Doreen Mueller wrote:
> Hi!
>
> I want to have a function that assigns NAs to certain values of my
> variable "var" in the dataset "d". This doesn't work:
>
>> missings=function(x) x[x==998|x==999]<-NA
>> missings(d$var)
>> table(d$var, useNA="always")
>
>
Frank,
Dates are extremely difficult. I recommend you do not attempt to do
your own data computations with paste().
Use the lubridate package.
> install.packages(lubridate)
> library(lubridate)
Read the end section of
> vignette("lubridate")
>From that you will most likely be wanting one of thes
On Sep 18, 2014, at 4:36 AM, Pasu wrote:
> Hi
>
> I would like to know how to use R in our commercial business application
> which we plan to host in cloud or deploy on customer's premise.
>
> 1. Using R and its package, does it enforce that my commercial business
> application should be distri
You need to assign the output of missings() to something. For that
matter, missings() needs some output.
d <- data.frame(a=1:5, b=6:10, var=c(1, 1, 998, 999, 2))
missings <- function(x) {
x[x==998|x==999]<-NA
x
}
d$var <- missings(d$var)
> d
a b var
1 1 6 1
2 2 7 1
3 3 8 NA
I tried with a different mirror, but nothing changed...
Any other idea?
Thanks anyway
-- Davide
2014-09-17 10:39 GMT-04:00 Jeff Newmiller :
> Try a different mirror? Precise is getting kind of old... they may not be
> keeping all of the old files on that mirror.
>
> ---
Hi!
I want to have a function that assigns NAs to certain values of my
variable "var" in the dataset "d". This doesn't work:
> missings=function(x) x[x==998|x==999]<-NA
> missings(d$var)
> table(d$var, useNA="always")
0 1 999
220 752 321 5264
I don't get any error messages, but
Hi to all members of the list,
I have a data frame with subjects who can get into a certain study from
2010-01-01 onwards. Small example:
DF <- data.frame(id=as.factor(1:3), born=as.Date(c("1939/10/28", "1946/02/23",
"1948/02/29")))
id born
1 1 1939-10-28
2 2 1946-02-23
3 3 1948
It is hard to say because we do not have enough information. R has
approximately 6,000 packages and you have not told us which ones you are using.
You have not told us much about your data and you have not told us where to
find the query from August 2006. The basic problem is that your "fit" is
Hi
I would like to know how to use R in our commercial business application
which we plan to host in cloud or deploy on customer's premise.
1. Using R and its package, does it enforce that my commercial business
application should be distributed under GPL, as the statistical derivation
(output) b
I am dealing with data frames that have thousands of columns and hundreds of
thousands of rows and only need a few specific columns from the data. The data
take various formats, but normally are tab-delimited.
I have written the following which is working as expected. However, because I�m
so ne
When R starts in GUI (e.g., /Applications/R.app/Contents/MacOS/R) on
my Mac OS X 10.7.5, the startup configuration in .Rprofile works fine.
However, when R starts on the terminal (e.g.,
/Library/Frameworks/R.framework/Resources/bin/R), it does not work at
all. What could be the reason for the failu
Hi,
I am a new user of r software. I intend to do quantile regressions with
complex survey data using replicate method. I have ran the following
commands successfully:
mydesign
<-svydesign(ids=~IDSCHOOL,strata=~IDSTRATE,data=TUN,nest=TRUE,weights=~TOTWGT)
bootdesign <- as.svrepdesign(myd
Thank you, it is exactly that.
I have followed your idea of chunks (1 GB chunks, on the safe side), and
appended them. Worked like charm, thank you.
--Maxime
From: "Stefan Evert (Mailing Lists)"
mailto:stefa...@collocations.de>>
Date: mercredi 17 septembre 2014 15:39
To: Maxime Vall�e mailto
On 2014-09-16 12:35, PIKAL Petr wrote:
So if result of menu is 0 (you did not choose anything) you can either
stay with 0, then switch does not return anything or add 1 and let
evaluate something meaningful specified in second and following
positions of switch command.
Thanks for your explana
Hello!
I am trying to figure out how to extract the model equation when using deriv3
with nls.
Here is my example:
#
# Generate derivatives
#
Puro.fun2 <- deriv3(expr = ~(Vmax + VmaxT*state) * conc/(K + Kt * state + conc),
name = c("Vmax","VmaxT","K","Kt"),
Thanks Max and Dennis. Based on the syntax change I got the result for the
PCA part also.
training2 <- training[,grepl("^IL",names(training))]
preProc <- preProcess(training2,method="pca",thresh=0.8)
test2 <- testing[,grepl("^IL",names(testing))]
trainpca <- predict(preProc, training2)
testp
Oh. I understand now. There is nothing wrong with the logic. It is the
syntax.
> library(AppliedPredictiveModeling)
*Warning message:*
*package ‘AppliedPredictiveModeling’ was built under R version 3.1.1 *
> set.seed(3433)
> data(AlzheimerDisease)
> adData = data.frame(diagnosis,predictors)
30 matches
Mail list logo