Displaying 20 results from an estimated 5000 matches similar to: "Help with time in R"
2010 Sep 13
2
How to do a trig regression
Hello All,
I cant seem to do a trig regression in R.
The equation is as follows : y = a+b*(sin((2*pi*x/360) - c))^2
a, b, c are coefs that I want.
y, x are input vectors.
The equation I put into R: lm(y ~ sin(2*pi*x/360)^2)
This equation is missing the c and I dont get the right answer.
Also, I dont know how to plot the lm over the x values instead of the
indices.
Any help is sincerely
2011 Jan 05
2
R not recognized in command line
Hello all,
I recently installed rpy2 so that I could use R through Python.
However, R was not recognized in the command line.
So I decided to add it to the PATH variables. But it just doesnt work....
And what I mean by it doesnt work is : No matter what I type at the prompt
in DOS- be it R, Rcmd, R CMD, Rscript- it is not recognized as a command.
Path variables used :
1. %R_HOME% -->
2010 Jul 19
2
Historical Libor Rates
Hello All,
Does anyone know how to download historical LIBOR rates of different
currencies into R?
Or if anyone knows of a website that holds all this data...I only need up to
january of 2000.
Also, how can we make the row names the index of a plot (the names of the x
values)?
[[alternative HTML version deleted]]
2012 Apr 25
2
Where to find the p-value of a correlation test
Hey everyone,
I hope this finds you in good cheer.
I just have a quick question: What is the function that outputs the p-value
for correlation?
cor(x,y) only provides the R value. I would like the p-value associated
with it.
Thank you all for your help!
[[alternative HTML version deleted]]
2010 Jul 13
1
Time Variable and Historical Interest Rates
Guys, I wrote to the finance mailing list earlier with my questions but was
directed here.
Sorry for the repeat.
---------------
library(quantmod)
....
now <- Sys.time()
midnight <- strptime() # <---- I want to make this a static variable
that will be equal to 12:00:00 am but I dont know what to put here. I keep
getting NA for everything I do
if(now == midnight) {
2010 Jul 28
1
Help with scatterplots in R
Hi,
When I plot a scatter plot, R automatically only gives the years on the x-axis. How can I make R also show the months on the x-axis?
Thank you very much!
[[alternative HTML version deleted]]
2003 Sep 04
3
OpenSSH 3.5p1 (HP version): permissions of public identity
Hello,
I just received thes odd messages from HP-UX Secure Shell A.03.50.000.
(OpenSSH 3.5p1):
# ssh-add id_rsa.pub
5215: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
5215: @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
5215: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
5215: Permissions 0644 for 'id_rsa.pub' are too open.
5215: It is
2011 Feb 11
5
Centos + Wine + Ms Sans Serif.
Hi to all, i'm trying run a app on wine installed on Centos 5.4 I386, its call DCTF 1.8, Its a Brazilian government program.
The install it's ok, no problem but when i go run the App, its tell me i need the Ms Sans Serif Install, and install the 'Font' from 'Control Painel'.
I try copy the file mssans.ttf to the c:/windows/fonts or the files .fon,
Already try to
2007 Mar 27
3
Unexpected result of as.character() and unlist() applied to a data frame
Hi,
> dd <- data.frame(A=c("b","c","a"), B=3:1)
> dd
A B
1 b 3
2 c 2
3 a 1
> unlist(dd)
A1 A2 A3 B1 B2 B3
2 3 1 3 2 1
Someone else might get something different. It all depends on the
values of its 'stringsAsFactors' option:
> dd2 <- data.frame(A=c("b","c","a"), B=3:1, stringsAsFactors=FALSE)
> dd2
2020 Sep 09
2
Code Coverage Compile Issue LLVM 10
Hello,
I recently updated LLVM from version 6.0.0 to 10.0.0.
I see the following issue when I compile an application only with code
coverage compiler options. Thes issue does not appear in any other build
type.
*...:(__llvm_prf_data[__profv__**ZNK4llvm3cfg6UpdateIPNS_**10BasicBlockEE4dumpEv]+0x18):
**undefined reference to `llvm::cfg::Update<llvm::**BasicBlock*>::dump()
const'*
I see
2008 Mar 05
2
t.test & p-Value
Hello list,
I am trying to apply the paired t.test between diseased and not diseased
patients to identify genes that are more expressed in the one situation
under the other. In order to retrieve the genes that are more expressed in
the positive disease state I do:
p.values<-c()
for(i in 1:length(Significant[,1])){
p.values[i]<-try(t.test(positive[i,],negative[i,],alternative
2010 Apr 01
3
reading excel into R
Dear all,
I am new R user and I am sure that this question has been asked quite often
and I have also googled it and read about it! I understood that in order to
read excel sheet into R you need to open it and saved it as csv or text, is
this true? or you can use read.delim2 and read.csv2 to do this without the
following error
> dat <- read.csv2(file="C:\\Dokumente und
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,
2018 Sep 12
2
ca-bundle questions
Sometime in Feb, yum updated something to do with ca-bundle. I didn't
notice at the time, but it put these two files on my machine:
/etc/pki/tls/certs/ca-bundle.trust.crt.rpmnew and
/etc/pki/tls/certs/ca-bundle.crt.rpmnew
Both of those on the existing system are symbolic links
ca-bundle.trust.crt ->
/etc/pki/ca-trust/extracted/openssl/ca-bundle-trust.crt and
ca-bundle.crt ->
2017 May 18
2
Computing loop trip counts with Scalar evolution
Hello.
I tried to get the trip count of a loop with Scalar evolution. I got inspired from
http://stackoverflow.com/questions/13834364/how-to-get-loop-bounds-in-llvm .
However the analysis described there doesn't work well for the second inner loop of
thes function below (although if we declare Bcols a short it works well):
void MatMul(int Arows, int Acols, int Brows, int
2005 Apr 07
2
PDC: Logging out from Windows XP SP2 takes a long time
I have samba set up as primary domain controller, and have problems with
my Windows XP SP2 machines. Logging in is quick, but most of the time
(nine out of ten times) the logout process takes a long time - I do end
up rebooting, but once I let it stay and it took a whole hour before it
was logged out. It seems to act the same way for all users.
Possible sources already eliminated:
- I have
2004 Aug 06
3
Alrighty.. ALMOST there! :)
So, a friend pointed me to the patch for sock.c:533, and that patch went a
LONG way in fixing the streaming problems I've been experiencing (on
solaris 8/sparc.) Thanks so much for that!
Now, I think that *sending* the stream is now squared away, but I think
one problem remains on the receiving end of things.
I use the perl streamcast utility to stream my playlists, and tracks sound
great.
2008 Sep 04
1
text file imported incorrectly
Dear R-users,
When I tried to import a text file (tab delimited) which has 2000+ rows with the following command (With the importData in S, it works though),
x <- read.table(textfile, sep= "\t", skip=5, stringAsFactors=F)
I received the following warning message: Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,: number of items read is not a multiple of
2007 Aug 12
2
Convert factor to numeric vector of labels
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt.
Name: nicht verf?gbar
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20070812/6da70dc8/attachment.pl
2007 Apr 08
1
Confidence-Intervals.... help...
Hi...
I have to use R to find out the 90% confidence-interval for the sensitivity
and specificity of the following diagnostic test:
A particular diagnostic test for multiple sclerosis was conducted on 20 MS
patients and 20 healthy subjects, 6 MS patients were classified as healthy
and 8 healthy subjects were classified as suffering from the MS.
Furthermore, I need to find the number of MS