Displaying 20 results from an estimated 10000 matches similar to: "Automating R script with Windows 7"
2010 Jul 27
3
Right digits of a floating number
Hi all,
I am dealing with very large numbers but I am only interested in their last
digits.
> 244^244
[1] Inf
As far as I can tell, the largest number R can take has 308 digits (1+E308).
Is there a way I could see the last digits only of 244^244?
Many thanks for your help.
Vincent Deluard, CFA.
--
View this message in context:
2006 Jan 15
8
/ Operator not meaningful for factors
Folks,
I have a very basic question. The solution eludes me perhaps because
of my own lack of creativity. I am not attaching a fully reproducible
session because the issue may well be becuase of the way the data file
is, and the data file is large (and I don't know whether I can legally
distribute it). If people can suggest things that might be wrong in my
data or the way that I am reading it,
2011 Apr 20
2
Saving run time in loop
Hi r users,
I am trying to compute the "moving variance" of a large matrix. I now use a
loop but I am looking for a faster solution. Here is a sample of the code.
Source= matrix(rnorm(400),ncol=100)
variances= matrix(rep(NA,4*100),ncol=100)
for (i in 1:80) {variances[,i]=apply(Source[,i:(i+80)],1,var)}
any idea? Many thanks in advance.
Vincent.
--
View this message in context:
2010 May 10
2
tapply function with NA
Hi R users,
I have a matrix "m" of the type:
m
X4.20.2010 X4.19.2010 X4.16.2010
[1,] 0.008319468 0.00000000 -0.008250825
[2,] 0.005574136 0.01816118 0.073081608
[3,] -0.047830688 0.01612903 -0.030239833
[4,] NA NA NA
[5,] 0.008746356 0.02848576 -0.025566107
[6,] -0.007990868 0.00000000 -0.026666667
I want to get the sum of each column. Normally
2018 Feb 02
4
command line fails
Hi - Think this is quick help. Not sure how to trap what is causing my simple script to run fine in R, but fail immediately when called from rscript. I can put all sorts of traps in the script itself, but when called from the command line the r window simply flashes and closes.
There's probably a way to find out why rscript is failing, but I don't know it and can't seem to find it
2018 Feb 02
2
command line fails
I don't think it's the path or the slashes. I run other files in this same manner, with the same path to the script itself, and they go off without a hitch. Although this is the first time I am using 3.4.3, and the only script I am using that version of R for at the moment.
Having said that, I did TRY reversing the slashes and got the same result. :-)
Michael Ashton, CFA
Managing
2018 Feb 02
0
command line fails
On 2/2/2018 4:52 AM, Michael Ashton wrote:
> Hi - Think this is quick help. Not sure how to trap what is causing my simple script to run fine in R, but fail immediately when called from rscript. I can put all sorts of traps in the script itself, but when called from the command line the r window simply flashes and closes.
>
> There's probably a way to find out why rscript is failing,
2011 Jul 01
2
methods package not loaded by default when using Rscript in R2.13
Dear all,
As the object of this mail suggests, the methods package is not loaded by
default in R2.13 when using Rscript whereas it is loaded when using an
interactive session.
An example with the metafor package :
library(metafor)
example(addpoly.rma)
this works in an interaction R shell, but put it in a .R file and use it with
Rscript, it won't work until you added
library(methods)
2018 Feb 02
0
command line fails
On 02/02/2018 8:20 AM, Michael Ashton wrote:
> I don't think it's the path or the slashes. I run other files in this same manner, with the same path to the script itself, and they go off without a hitch. Although this is the first time I am using 3.4.3, and the only script I am using that version of R for at the moment.
>
> Having said that, I did TRY reversing the slashes and
2018 Feb 02
2
command line fails
Fascinating. The script runs fine in 3.2.5, but won't run in 3.4.3 even with ALL lines commented out.
I have no idea what that means. I can't imagine I found a 3.4.3 bug no one knows about.
Michael Ashton, CFA
Managing Principal
Enduring Investments LLC
W: 973.457.4602
C: 551.655.8006
-----Original Message-----
From: Duncan Murdoch [mailto:murdoch.duncan at gmail.com]
Sent: Friday,
2010 May 06
1
How to rank matrix data by deciles?
Hi R users,
I have a matrix of data similar to:
> y=matrix(rnorm(55),ncol=5)
I would like to know to which decile each number belongs compared to the
numbers in its column.
Say y[1,1] is the third decile among y[1:11,1] and y[2,1] is in the second
decile
I would like get a matrix that would return their ranks in decile, i.e.,
y[1,1] -> 3
y[2,1] -> 2
Your help is much appreciated!
2018 Feb 02
0
command line fails
On 02/02/2018 7:52 AM, Michael Ashton wrote:
> Hi - Think this is quick help. Not sure how to trap what is causing my simple script to run fine in R, but fail immediately when called from rscript. I can put all sorts of traps in the script itself, but when called from the command line the r window simply flashes and closes.
>
> There's probably a way to find out why rscript is
2010 May 05
3
Read data from .csv file as a matrix
Hi R-users,
I have a csv file that contains weather observation (rows) by days (in
columns).
I open using:
> temp = read.csv("Weather.csv", sep=",")
and read:
X X1.Jan X2.Jan X3.Jan X4.Jan
1 Min 2 3 4 1
2 Max 6 10 8 6
3 Forecast Min 3 1 1 3
4 Forecast Max 8 7
2006 May 02
1
pairwise.t.test: empty p-table
Hi list-members
can anybody tell me why
> pairwise.t.test(val, fac)
produces an empty p-table. As shown below:
Pairwise comparisons using t tests with pooled SD
data: val and fac
AS AT Fhh Fm Fmk Fmu GBS Gf HFS Hn jAL Kol R_Fill
AT - - - - - - - - - - - - -
Fhh - - - - - - - - - - - - -
Fm - - - - - - -
2008 Dec 21
2
data format issue
Dear all-
I have a dataset (see a sample below - but the whole dataset is June
2005 - June 2008). The "LST" format is "YYMMDDHHmm" and I would like to
get the hourly average of the "mph" for the summer months (spanning all
years). I have been trying to use "aggregate" but am not having much
success at all! any thoughts would be greatly appreciated.
2009 Jan 04
1
POSIXct and chron issues with tz
Dear All-
I am trying to merge two data files - they have different date formats
and different times zones. I need to match up the date/time of the
datasets and then invoke a conditional statement, such as: if dataC$mph
is >= 12 then keep dataM$co23 for the corresponding time/date stamp.
snippets of data files:
*dataC.txt*
LST in mph Deg DegF DegF2 % volts Deg
2006 Sep 08
4
Connecting to a SQLBASE database with R
Hi,
I am trying to extract data from a database with R in order to produce monthly statistics.
I found in the R Website, the package RODBC, RSQLite and others ones which permit this kind of extraction.
The database I want to be connected with is a SQLBASE 7.0 database.
So, I would like to know if, using one of these package or another one, I could be able to connect with this type of database.
2007 Nov 22
3
anova planned comparisons/contrasts
Hi,
I'm trying to figure out how anova works in R by translating the
examples in Sokal And Rohlf's (1995 3rd edition) Biometry. I've hit a
snag with planned comparisons, their box 9.4 and section 9.6. It's a
basic anova design:
treatment <- factor(rep(c("control", "glucose", "fructose",
"gluc+fruct",
2006 May 26
2
Color Wheel Pro
I need Color Wheel Pro on Linux. So i download it from
www.color-wheeel-pro.com, and install but this program need Macromedia
Flash Player. How to install it for this program?
2004 Mar 12
1
Automating kerberos authentication on Mac OS X?
Is there any way to "automate" kerberos authentication on Mac OS X?
Here's the problem:
When a user wants to access samba-3.0.2a -server from a Mac, he/she has
to run
"kinit" to get the principal ticket. If this is not done, Mac's tools
(Finder) will try to authenticate
with NTLM, which is and will be disabled on our servers. Of course,
this fails miserably.
I