Dear all,
Maybe the "easiest" solution: Is there anything that speaks against generalizing
cumsum from base to cope with matrices (as is done in matlab)? E.g.:
"cumsum(Matrix, 1)"
equivalent to
"apply(Matrix, 1, cumsum)"
The main advantage could be optimized code if the Matrix is extreme nonsqua
Le 14/10/10 20:28, lord12 a écrit :
I need help with RJava. So I run this R code:
library(rJava) #load the rJava library
.jinit(classpath="c:/Documents and Settings/GV/workspace/Test/src",
parameters="-Xmx512m")
#the above is to load the Java virtual machine,
x = runif(1000)
y = runif(1000)
#t
I found 2 problems with this method:
- There is only one line for predicted dose at 5 mg.
- The different doses are 5, 7, and 10 mg but somehow there is a legend for
5,6,7,8,9,10.
- Is there a way to make the line smooth?
- The plots are also getting a little crowded and I was wondering if there a
I recently found the ?bestglm? package while trolling CRAN for a
function to save some keystrokes with simple (k<10) nested models. I
am interested in using the best of several nested linear models which
I have explored using lm(), glm() and now bestglm(). When I compare
the AIC values fo
cheers mate that worked fine
thanks a bunch
--
View this message in context:
http://r.789695.n4.nabble.com/convert-factor-data-to-numeric-tp1012855p2996495.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing
nvm, i figured it out.
dfm <- data.frame(x=1:10)
testfunc <- function(data="dfm")
{
dat <- eval.parent(as.symbol(data))
sum(dat$x)
}
print(testfunc())
--
View this message in context:
http://r.789695.n4.nabble.com/specify-data-frame-by-name-tp2996534p2996541.html
Sent from t
I'd like to be able to specify a data frame by name in a function call. Any
ideas how this can be done?
dfm <- data.frame(x=1:10)
testfunc <- function(data="dfm")
{
dat <- data
sum(dat$x)
}
print(testfunc())
--
View this message in context:
http://r.789695.n4.nabble.com/spec
I assume you mean regression of x on y...
here's the code:
missing = is.na(x)
predicted = predict(lm(x~y))
x[missing] = predicted[missing];
Should work but please check.
Peter
On Thu, Oct 14, 2010 at 10:14 PM, Jumlong Vongprasert
wrote:
> Dear all
> I have data (x,y) with data x is missing i
Dear all
I have data (x,y) with data x is missing in 5 record of 100 record.
I want to impute data x by use regression.
How I can do this.
THX
Jumlong
--
Jumlong Vongprasert Assist. Prof.
Institute of Research and Development
Ubon Ratchathani Rajabhat University
Ubon Ratchathani
THAILAND
34000
Hi:
Here's a toy example: the first part is to create files and write them out
to the current directory.
# Create a dummy file and run it five times, creating five new .csv files
file <- data.frame(x = rnorm(5), y = rnorm(5))
fnames <- paste('file', 1:5, '.csv', sep = '')
# last column is an indi
Dear everyone,
I'm trying to figure out how to use the na.pass option for na.action
when building a lmer object. Basically there are NA values in some
observations of the data set, and I want the model to retain these
observations instead of tossing them out, so that the size of the data
set will
On Thu, Oct 14, 2010 at 8:41 PM, andreas wrote:
>
> cheers for the quick reply.
>
> Sorry I am getting a bit confused I have never used the anything else any
> from of extension on read.csv what I did was:
>
> 1. enter the data into excel and save it as comma delimited
> 2. then used: s1 <- read.c
I guess you could simply read the files into a loop and write into the
aggregated files using write.table with append = true in the same loop
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of aenea...@priest.com
Sent: 15 October 2010
I recently found the "bestglm" package while trolling CRAN for a function to
save some keystrokes with simple (k<10) nested models. I am interested in
using the best of several nested linear models which I have explored using
lm(), glm() and now bestglm(). When I compare the AIC values for the 'b
cheers for the quick reply.
Sorry I am getting a bit confused I have never used the anything else any
from of extension on read.csv what I did was:
1. enter the data into excel and save it as comma delimited
2. then used: s1 <- read.csv("book1.csv")
If i try to run this
s1 <- read.table(textC
Hi,
This feels like a kinda dumb basic question, but I haven't been able to figure
it out.
I have a bunch of csv files I'd like to put into one csv using R.
I have tried cat, append, join, aggregate, and a bunch of other things, but
none of them really work for combining the data. If it's one
Hi Joe,
Just to follow up David's advice a bit (and it is excellent
advice...there was an instance where a poster only got a response
because he or she used dput()). One sticky point for you might be how
to apply a function that finds the minimum to each day individually.
David showed you a nice
Dirk, thanks.
On Thu, Oct 14, 2010 at 9:42 AM, Dirk Eddelbuettel wrote:
>
> On 14 October 2010 at 11:21, Dirk Eddelbuettel wrote:
> | On 14 October 2010 at 08:49, Saptarshi Guha wrote:
> | | Hello,
> | | I have this script which will be invoked as
> | |
> | | Rscript a.r < a.r
> | |
> | | a.r fol
Apologies for the duplicate post. I'm caught between different misbehaving
email clients on different computers at the moment. Didn't see my original
post, nor Greg's reply, nor any evidence in my "sent" folder that my
original message ever went out. I've got them now.
--Chris Ryan
On Thu, Oct 14
On Thu, Oct 14, 2010 at 10:56 PM, Chris Howden
wrote:
> Thanks for the suggestion and code Gabor,
>
> I've tried creating 2 indices:
>
> 1) just for the variable I intend to merge on
> 2) on the entire data set I am merging (which I think is the one I should
> be using??)
>
> However neither seeme
This is a duplicate, right? You're not posting again after what Greg
Snow already explained what needed to be done, are you?
--
David.
On Oct 14, 2010, at 11:20 PM, Christopher W Ryan wrote:
R version 2.11.1 on WinXP
How do I get 3 scatterplots with marginal boxplots (from the
car package) o
R version 2.11.1 on WinXP
How do I get 3 scatterplots with marginal boxplots (from the
car package) onto a single plot?
I have a data frame called bank
> dim(bank)
[1] 46 5
head(bank)
x1x2 x3 x4 pop
1 -0.45 -0.41 1.09 0.45 0
2 -0.56 -0.31 1.51 0.16 0
3 0.06 0.02 1.01 0.40
Hi,
Assuming the data is in a data.frame named "D", something like
library(ggplot2) # May need install.packages("ggplot2") first
ggplot(D, aes(x=Time, y=Concentration, color=Dose) +
geom_point() +
geom_line(aes(y = PredictedConcentration, group=1)) +
facet_wrap(~ID, scales="free", ncol=3)
should
Here's one way to do it:
Use unlist() to change the function's output from a list to a vector.
> f <- function(x) {return(lapply(1:6, function(z) z + x))}
> f(2)
[[1]]
[1] 3
[[2]]
[1] 4
[[3]]
[1] 5
[[4]]
[1] 6
[[5]]
[1] 7
[[6]]
[1] 8
> x <- seq(0,1, by=0.1)
> result <- matrix(0, nrow=6, nco
Thanks for the suggestion and code Gabor,
I've tried creating 2 indices:
1) just for the variable I intend to merge on
2) on the entire data set I am merging (which I think is the one I should
be using??)
However neither seemed to work. The first was still going after 2 hours,
and the second aft
you probably want to use 'unlist'; can not test since you did not
provide a reproducible script:
for (i in 1:length(x)){result[,i] <- unlist(f(x[i]))}
On Thu, Oct 14, 2010 at 5:50 PM, li li wrote:
> Dear all,
> I have a function f(x) which return a list as result.
>
> $T1
> [1] 0.03376190
> $T
If you read the data as posted in your email with read.csv, you
probably got this:
> s1 <- read.csv(textConnection("treat absorb
+ 0 1.8052
+ 0.5 2.07075
+ 1.0 2.2345"))
> closeAllConnections()
> s1
treat...absorb
1 0 1.8052
2 0.5 2.07075
3 1.0 2.2
On Oct 14, 2010, at 8:56 PM, joeman3285 wrote:
Hi,
So I have a set of data, hourly temperature, where each temperature
is set
up like this:
Time Temp
1.048
1.0810
etc. Where "1" corresponds to a day (say monday is "1", tuesday is
"2") and
the decimal value correspo
Hello-- I have a data for small population who took 1 drug at 3 different
doses. I have the actual drug concentrations as well as predicted
concentrations by my model. This is what I'm looking for:
- Time vs Concentration by ID (individual plots), with each subject
occupying 1 plot -- there is to
I have yet another novice 'converting factors to numeric problem'.
The problem is as described by others: read data (using read.csv) in from
excel.csv file and it turns out to be a factor in R. The data in execl only
has 4 rows:
treat absorb
0 1.8052
0.5 2.07075
1.0 2.2345
Hi,
So I have a set of data, hourly temperature, where each temperature is set
up like this:
Time Temp
1.048
1.0810
etc. Where "1" corresponds to a day (say monday is "1", tuesday is "2") and
the decimal value corresponds to an the hour of the day.
I have several thousa
Dear all,
I have a function f(x) which return a list as result.
$T1
[1] 0.03376190
$T2
[1] 0.04725
$T3
[1] 0.3796071
$T4
[1] 0.3713452
$T5
[1] 0.4523651
$T6
[1] 0.4575873
I now find the result for a vector of x values at one time. I want to
store the reuslt
for each xi value in a column of a
On Thu, Oct 14, 2010 at 6:59 PM, Gabor Grothendieck
wrote:
> On Thu, Oct 14, 2010 at 9:59 AM, Santosh Srinivas
> wrote:
>> Wow! That’s Amazing! Many thanks!
>>
>> When I do the below ... why do the column names get thrown off? Ticker is a
>> factor / character ... I tried both
>>
>>> temp <- head
Hi Rainer,
Great - many thanks for that. Yes, I'm using OSX
I initially tried to use install.packages to get get a pre-built
binary of earthmovdist from Rforge, but it failed with...
In getDependencies(pkgs, dependencies, available, lib) :
package ‘earthmovdist’ is not available
When I tried
Hi:
On Thu, Oct 14, 2010 at 3:58 PM, Eugenio Larios
wrote:
> Hi Everyone,
>
> I am trying to analyze a split plot experiment in the field that was
> arranged like this:
> I am trying to measure the fitness consequences of seed size.
>
> Factors (X):
> *Seed size*: a continuous variable, normally
On Thu, Oct 14, 2010 at 5:21 PM, Paul Rigor (ucla) wrote:
> Hi all,
>
> I would like to use the fpc and cluster packages for clustering. However, I
> would like to create a custom dissimilarity object using a library in
> python. Has anyone attempted or know of a work-around for creating a
> diss
Hi all,
I would like to use the fpc and cluster packages for clustering. However, I
would like to create a custom dissimilarity object using a library in
python. Has anyone attempted or know of a work-around for creating a
dissimilarity object from a csv file containing pair-wise distance measure
On Thu, Oct 14, 2010 at 9:59 AM, Santosh Srinivas
wrote:
> Wow! That’s Amazing! Many thanks!
>
> When I do the below ... why do the column names get thrown off? Ticker is a
> factor / character ... I tried both
>
>> temp <- head(MF_Data_Sub)
>> temp
> Date Ticker Price
> 1 2008-04-01 1062
Hi Everyone,
I am trying to analyze a split plot experiment in the field that was
arranged like this:
I am trying to measure the fitness consequences of seed size.
Factors (X):
*Seed size*: a continuous variable, normally distributed.
*Water*: Categorical Levels- wet and dry.
*Density*: Categoric
If unlisting was the only issue, then this should also work, and will
save you the trouble of initializing a matrix, creating x, and using a
for loop.
## Brian's Function
f <- function(x) {
r <- as.list(rnorm(6))
names(r) <- paste("T",1:6,sep="")
r
}
sapply(seq(0,1, by=0.1),
Thanks for the kind help!
Hannah
2010/10/14 Brian Diggs
> On 10/14/2010 2:53 PM, li li wrote:
>
>> Dear all,
>> I have a function f(x) which return a list as result.
>>
>> $T1
>> [1] 0.03376190
>> $T2
>> [1] 0.04725
>> $T3
>> [1] 0.3796071
>> $T4
>> [1] 0.3713452
>> $T5
>> [1]
On 10/14/2010 2:53 PM, li li wrote:
Dear all,
I have a function f(x) which return a list as result.
$T1
[1] 0.03376190
$T2
[1] 0.04725
$T3
[1] 0.3796071
$T4
[1] 0.3713452
$T5
[1] 0.4523651
$T6
[1] 0.4575873
I now find the result for a vector of x values at one time. I want to
store the r
Dear Hannah,
Well one issue is that you are trying to assign a list to a matrix
column. This is a hazardous move, and may well be your problem. Try:
lapply(x, f)
that should give you some nice results, and can probably be fairly
easily converted to a matrix if you want. It is really hard to g
Dear all,
I have a function f(x) which return a list as result.
$T1
[1] 0.03376190
$T2
[1] 0.04725
$T3
[1] 0.3796071
$T4
[1] 0.3713452
$T5
[1] 0.4523651
$T6
[1] 0.4575873
I now find the result for a vector of x values at one time. I want to
store the reuslt
for each xi value in a column of a
Ron Michael yahoo.com> writes:
>
> Awaiting some suggestion. Was my question not very understandable?
> Please let me know how can I offer more
> elaborate clarification.
> Additionally, I would like to solve the determinant of "p1"
> for the values of "z" (I am working with some
> multivariat
I know this thread is from a while back, but hopefully I can still get some
help on this.
I also used RODBC to connect to a SQL Server, and my stored procedure
returns a results set (that is not stored as a temp or permanent table).
So I was wondering if there was a way to access this results se
I found the imgConvolve tool in the biOps package, but since I'm
primarily working on OSX computers, wondered if there are any other
2-dimensional convolution functions out there?
And, yes, I'm going to ask r-sig-mac whether biOps will compile from
source under OSX.
I did find one convolution
Still doesn't work, any ideas?
Error in sqlTables(channel1) :
first argument is not an open RODBC channel
In addition: Warning messages:
1: In odbcDriverConnect(con, tabQuote = c("[", "]"), ...) :
[RODBC] ERROR: state IM002, code 0, message [Microsoft][ODBC Driver
Manager] Data source name n
R works great on my Mac. In fact, the user interface in some ways
seems to be more friendly (ex. you type an open parenthesis, it
automatically includes a close parenthesis; color coding for coding
files, etc.)
Andrew Miles
On Oct 14, 2010, at 2:49 PM, David Cross wrote:
I have had no p
Hello,
I am currently running multivariate analysis to find prediction
equations for a specific event. Currently, we do this by using the
combination of LDA and SIR through the dr package. The advantage of
SIR is that we are giving constants for which weigh the importance of
the factors, as
thank you guys, R CMD BATCH seems the way to go, and I will nudge my
admin to install screen /byobu
Thanks heaps,
Martin
On 10/14/2010 7:21 PM, Uwe Ligges wrote:
On 14.10.2010 18:07, Martin Tomko wrote:
Dear all,
I am sure this has been solved before, googling did not help much,.
Warning, I
To be clear, this:
>> How can I get the output to show all 3 groups that I have inputted? There
>> are only group 2 and group 3 on the output, group 1 is missing. Also there
>> is a subgroup (subgroup 1) of the total 9 subgroups missing. I would like
>> to see the p-value of the missing group a
Hi Robert,
In R, the default treatment contrasts for factor class variables in
regression treats the first level as the reference group when creating
the contrast matrix for the regression, so it is not really a matter
of changing the formula.
This might provide some insight:
http://www.ats.ucla.
Greg Snow imail.org> writes:
>
> It is not clear what exactly you want. Try looking at the functions
TkPredict, TkSpline, and TkApprox in the
> TeachingDemos package to see if any of those do what you want.
>
> If not, give a bit more of a description and include some sample data.
>
You coul
I have the following formula for a linear model:
z <- lm(y~x + factor(a) + factor(b), data=NT2010)
where a (groups) and b (Sub-groups) are categorical variables (factors), x
is a continuous covariate, and y the response variable. Since b is nested
within a, the formula can also be written as:
Awaiting some suggestion. Was my question not very understandable? Please let
me know how can I offer more elaborate clarification.
Additionally, I would like to solve the determinant of "p1" for the values of
"z" (I am working with some multivariate time series modelling). When I use
det() func
I have had no problems with R on my Mac ... just download, install,
and run ... let me know if you have any problems.
Cheers
David Cross
d.cr...@tcu.edu
www.davidcross.us
On Oct 14, 2010, at 11:25 AM, Tiffany Kinder wrote:
Hello,
Is R very compatible with a Mac? A colleague of mine indi
I need help with RJava. So I run this R code:
library(rJava) #load the rJava library
.jinit(classpath="c:/Documents and Settings/GV/workspace/Test/src",
parameters="-Xmx512m")
#the above is to load the Java virtual machine,
x = runif(1000)
y = runif(1000)
#the above are two vectors to convolve
Or here (kill R feature):
stem(islands, width=NULL)
It may looks like a bug.
2010/10/14 Marcin Kozak :
> Could anyone pleaase clarify what is going on here?
--
Miłego dnia
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-
Hi
Thanks for the reply. I managed to find a simpler solution using RJDBC. All
I needed to do was install RJDBC, DBI and download oracle driver for JDBC.
Regards
Siddharth
On Thu, Oct 14, 2010 at 5:32 PM, Marc Schwartz wrote:
> On Oct 14, 2010, at 12:45 AM, siddharth.gar...@gmail.com wrote:
>
Thanks Joshua for your reply. However I could not understand one logic. If I
write "ls(envir = environment(), all.names = TRUE)", I am actually telling R to
grab all objects within the current environment (in my case, which the
environment within fn()). Then what is the point to put again the s
The message days it all: "This [grid] is the name of a base package."
If you need a new version of grid: Upgrade R to R-2.12.0 which will be
released tomorrow.
Best,
Uwe Ligges
On 14.10.2010 16:29, ogbos okike wrote:
Hi all,
I can't understand why grid package failed to installed on my mach
Hi,
Given what Hadley said, it looks like you don't need either one. In
any case the logic was this:
ls() gets the NAMES of the objects
save() gets the actual data
Suppose in your workspace you define:
y <- "Hello, from the Global Environment"
and then you used that little function I showed,
-- Forwarded message --
From: John C Frain
Date: 14 October 2010 18:20
Subject: Re: [R] [OT] (slightly) - OpenOffice Calc and text files
To: "Schwab,Wilhelm K"
Just a basic comment on Open Office Calc. I find Open Office Calc and
excellent program for viewing and minor processi
On 14.10.2010 18:07, Martin Tomko wrote:
Dear all,
I am sure this has been solved before, googling did not help much,.
Warning, I am not great with putty/linux servers
Situation: I have been given access to an R installation on a Linux
server to do some larger number crunching that was killing
On Thu, Oct 14, 2010 at 11:56 AM, Joshua Wiley wrote:
> Hi,
>
> I do not believe you can use the save.image() function in this case.
> save.image() is a wrapper for save() with defaults for the global
> environment (your workspace). Try this instead, I believe it does
> what you are after:
>
> my
On Oct 14, 2010, at 12:25 PM, Tiffany Kinder wrote:
Hello,
Is R very compatible with a Mac?
Very compatible. I have been using it as my work machine for the last
2.75 years and several of the regular contributors to rhelp are also
running Macs. Rock-solid. Better memory management than W
Dear Tiffany,
R works wonderfully with Macs (and *nix and Windows). The main
program should be all you need, but if you have any doubts or
concerns, here is the link to download R from the website for Mac
OSes:
http://cran.r-project.org/bin/macosx/
If you are just getting started using R, it is
In my experience R runs just fine on the Mac. For basic use you don't
need to do anything special whatsoever. Just install R as you would
any other program. If you need to install packages from source you
will probably want to install Xcode. Other Mac FAQs are at
http://cran.r-project.org/bin/macos
On Oct 14, 2010, at 11:36 AM, Stacey Wood wrote:
> Thanks everyone. Now I know that I should not include another copy of the
> license, but where should I refer to the copies on
> http://www.r-project.org/Licenses/? In the DESCRIPTION file?
>
> Stacey
Not in the DESCRIPTION file. :-)
Giv
G'day Stacey,
On Thu, 14 Oct 2010 12:36:20 -0400
Stacey Wood wrote:
> Thanks everyone. Now I know that I should not include another copy
> of the license, but where should I refer to the copies on
> http://www.r-project.org/Licenses/? In the DESCRIPTION file?
I used to mention that location in
Hi,
I do not believe you can use the save.image() function in this case.
save.image() is a wrapper for save() with defaults for the global
environment (your workspace). Try this instead, I believe it does
what you are after:
myfun <- function(x) {
y <- 5 * x + x^2
save(list = ls(envir = environm
I think it's useful to realize that this approach still implies that the
\phi_{i}'s are entered as fixed effects into the model (as opposed to treating
the \phi_{i}'s as random effects); it's just that the iterative algorithm to
obtain the maximum likelihood estimates is faster when using 'elimi
The problem is that the scatterplot function is overriding the
par(mfrow=c(2,2)) command by resetting the parameters itself (though it
probably uses layout instead of par) to place the boxplots next to the
scatterplot. It was not really designed to be used the way you want.
Possible solutions:
Hello,
Is R very compatible with a Mac? A colleague of mine indicated that
everyone he knows with a Mac has problems with R.
What can you tell me about using R with a Mac. What do I need to download?
I have downloaded the basic R package.
Thanks,
--
Tiffany Kinder
MS Student
Department of Wa
On 14 October 2010 at 11:21, Dirk Eddelbuettel wrote:
| On 14 October 2010 at 08:49, Saptarshi Guha wrote:
| | Hello,
| | I have this script which will be invoked as
| |
| | Rscript a.r < a.r
| |
| | a.r follows
| |
| | #!/usr/bin/Rscript --vanilla
| | f=file("stdin")
| | while(TRUE){
| | y
Can anyone please tell me how can use save.image() function if it is placed
within a function (i.e. some level up from the base level environment)? Here I
experimented with following codes:
#rm(list=ls())
fn <- function() {
x <- rnorm(5)
save.image("f:/dat.RData")
}
fn()
However I se
For example, if I have the function in R:
sum = function(a,b)
{
sum = a+b
return sum
}
In Java:
re.eval(sum(a,b)) gives me an error.
--
View this message in context:
http://r.789695.n4.nabble.com/R-functions-in-Java-tp2995428p2995620.html
Sent from the R help mailing list archive at Nab
Yes, thanks much.
On Thu, Oct 14, 2010 at 9:36 AM, jim holtman wrote:
> ?chartr
>
> Is this what you are looking for?
>
> On Thu, Oct 14, 2010 at 12:10 PM, Saptarshi Guha
> wrote:
>> Hello,
>>
>> Would one use gsub to perform pythons translate?
>>
>> in python
>>
>> table = string.maketrans("ab
?chartr
Is this what you are looking for?
On Thu, Oct 14, 2010 at 12:10 PM, Saptarshi Guha
wrote:
> Hello,
>
> Would one use gsub to perform pythons translate?
>
> in python
>
> table = string.maketrans("abc","xyz")
> "abc".translate(table)
> "xyz"
>
> how does one do this in R?
>
> Thank you
>
Thanks everyone. Now I know that I should not include another copy of the
license, but where should I refer to the copies on
http://www.r-project.org/Licenses/? In the DESCRIPTION file?
Stacey
On Thu, Oct 14, 2010 at 12:16 PM, Marc Schwartz wrote:
> On Oct 14, 2010, at 11:13 AM, Berwin A Turla
On 14 October 2010 at 11:16, Marc Schwartz wrote:
| On Oct 14, 2010, at 11:13 AM, Berwin A Turlach wrote:
|
| > G'day Marc,
| >
| > On Thu, 14 Oct 2010 10:46:39 -0500
| > Marc Schwartz wrote:
| >
| >> If you want (and you should), create and include a file called
| >> "COPYING" in the 'inst' f
You might have better luck reformatting your data as time series, then you can
still print it in a matrix like form, but access it serially without worrying
about wrapping around rows.
Another option would be to transpose the matrix so that months go down the
columns, then use the %% and %/% op
Hi Benoit,
Have a look at 'man R'. You want something like 'R CMD BATCH toto.R'
(case sensitive).
Hope this helps,
Jim Hargreaves
On 10/14/2010 05:15 PM, Benoit Wastine wrote:
Dear all,
I'm running R on Linux OS. I want to execute a programme "toto.R" in
command line. Is it possible ??
T
On 14 October 2010 at 08:49, Saptarshi Guha wrote:
| Hello,
| I have this script which will be invoked as
|
| Rscript a.r < a.r
|
| a.r follows
|
| #!/usr/bin/Rscript --vanilla
| f=file("stdin")
| while(TRUE){
| y=readLines(f,n=1,warn=TRUE)
| if(length(y)==0) break else print(y)
| }
|
|
It is not clear what exactly you want. Try looking at the functions TkPredict,
TkSpline, and TkApprox in the TeachingDemos package to see if any of those do
what you want.
If not, give a bit more of a description and include some sample data.
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data C
On Oct 14, 2010, at 11:13 AM, Berwin A Turlach wrote:
> G'day Marc,
>
> On Thu, 14 Oct 2010 10:46:39 -0500
> Marc Schwartz wrote:
>
>> If you want (and you should), create and include a file called
>> "COPYING" in the 'inst' folder in the package, so that it gets copied
>> to the main package d
On Thu, Oct 14, 2010 at 3:15 AM, Michael Bedward
wrote:
> Hi Juan,
>
> Yes, you can use EMD to quantify the difference between any pair of
> histograms regardless of their shape. The only constraint, at least
> the way that I've done it previously, is to have compatible bins. The
> original applic
Dear all,
I'm running R on Linux OS. I want to execute a programme "toto.R" in
command line. Is it possible ??
Thanks
Benoit
--
Benoit Wastine
Laboratoire des Sciences du Climat et de l’Environnement (LSCE/IPSL)
CEA-CNRS-UVSQ
CE Saclay
Orme des merisiers
Bât 703 - Pte 13A
91191 Gif sur Yvette
> Date: Thu, 14 Oct 2010 18:07:02 +0200
> From: martin.to...@geo.uzh.ch
> To: r-help@r-project.org
> Subject: [R] running a long R process on Linux using putty - best practice to
> disconnect
>
> Dear all,
> I am sure this has been solved before, goo
G'day Marc,
On Thu, 14 Oct 2010 10:46:39 -0500
Marc Schwartz wrote:
> If you want (and you should), create and include a file called
> "COPYING" in the 'inst' folder in the package, so that it gets copied
> to the main package directory upon installation. [...]
But that would be against the wis
Hello,
Would one use gsub to perform pythons translate?
in python
table = string.maketrans("abc","xyz")
"abc".translate(table)
"xyz"
how does one do this in R?
Thank you
Saptarshi
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/lis
Dear all,
I am sure this has been solved before, googling did not help much,.
Warning, I am not great with putty/linux servers
Situation: I have been given access to an R installation on a Linux
server to do some larger number crunching that was killing my machine. I
use putty to connect, and
On Thu, 14 Oct 2010, Desmond Lim wrote:
Hi,
I have an array and I want to put in into a matrix x number of times. Currently
I doing this
matrix <- cbind(array, array, array).
Is there a more elegant way of doing this?
Fortunately!
If 'array' really is a matrix (bad choice of names here, B
Yes, thanks ... that works.
-Original Message-
From: Bert Gunter [mailto:gunter.ber...@gene.com]
Sent: 14 October 2010 21:26
To: Mike Marchywka
Cc: santosh.srini...@gmail.com; r-help@r-project.org
Subject: Re: [R] Drop matching lines from readLines
If I understand correctly, the poster k
If I understand correctly, the poster knows what regex error pattern
to look for, in which case (mod memory capacity -- but 200 mb should
not be a problem, I think) is not merely
cleanData <- dirtyData[!grepl("errorPatternregex",dirtyData)]
sufficient?
Cheers,
Bert
On Thu, Oct 14, 2010 at 4:05
Hello,
I have this script which will be invoked as
Rscript a.r < a.r
a.r follows
#!/usr/bin/Rscript --vanilla
f=file("stdin")
while(TRUE){
y=readLines(f,n=1,warn=TRUE)
if(length(y)==0) break else print(y)
}
But it only reads one line from a.r
How can I read line by line from standard inp
On Oct 14, 2010, at 10:06 AM, Stacey Wood wrote:
> Hi all,
>
> I'm currently writing an R package and want to declare a GPL2 license.
> According to the license agreement, I'm supposed to display:
>
> "This program is free software; you can redistribute it and/or modify
> it under the terms o
Hi,
I have tried your proposition, and it works properly on the simulated
data, but not on my real data, and I do not see any explanations, this is
weird, i have no more ideas to explore the problem
so here i give some information on my data, nothing special actually,
Christophe
> summary(sasd
Hi,
I have an array and I want to put in into a matrix x number of times. Currently
I doing this
matrix <- cbind(array, array, array).
Is there a more elegant way of doing this?
I've tried
matrix <- cbind(rep(array, times=x)) and matrix <- rep(cbind(array), times = 5)
but it didn't work.
Th
1 - 100 of 134 matches
Mail list logo