Displaying 20 results from an estimated 700 matches similar to: "merging variable and character"
2003 Nov 06
3
import data troubles
HI R lovers,
I have been facing a petty trouble with datas' import :
I have a plain txt file (see attached file or the copy below) that I cannot
read either with scan or read.table
> scan(file="F:/Alt/HDG/Stoliaroff/Data/test.txt")
Error in scan(file = "F:/Alt/HDG/Stoliaroff/Data/test.txt") :
"scan" expected a real, got "??6"
>
2003 Dec 08
2
test for arima coef's significancy
Dear sirs,
I would like to know if there is a function to compute the pvalue for the
significancy of arima coef in an arima object created by
the arima function.
I have written this one:
pvalueArima<-function(x,arima)
{
t<-(arima$coef)/(diag(arima$var.coef)^0.5)
df<-length(x)-length(arima$coef)
1-pt(t,df)
}
Has somebody already implemented something equivalent ?
thank you for your
2003 Apr 24
3
Missing Value And cor() function
Hi r lovers!
I 'd like to apply the cor() function to a matrix which have some missing values
As a matter of fact and quite logically indeed it doesn't work
Is there a trick to replace the missing value by the mean of each variable or by any other relevant figures ?
Or should I apply a special derivate of the cor() function, (I don't have any idea if it exists and have some trouble to
2003 Jun 06
3
writing comments within a function
Hi R lovers!
I would like to know how you can write comments inside the code of a
function
is it latex style
% ?
or any other language style?
thanks a lot
*************************************************************************
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute
2003 Jun 24
2
R and Latex's tables
Hi R lovers!
I have discovered recently that graph can be exported from R in a Latex
compatible file
thanks to the pictex command
I would like to know if there is the equivalent while exporting datas.
Let's say I have a matrix, a data.frame or a list that I would like to
export as a flat text file that is immediatly transcripted into a table
into latex
Is there a macro or package that could
2003 Jun 05
4
counting missing values
Hello R lovers
I have written a little cute function to count the number of missing value
per row in a matrix and return the percentage of missing value
it takes a lot of time to run with a 1000 rows matrix
I'd like to know if there is a function already implemented to count the
number of occurence of a given values in a vector
For information,
here is the function
count<-0
for (i in
2003 Apr 25
3
Code bug unresolved involving if condition
Hi R lovers!
I am a beginner in coding with R so my question may be very easily solved
but I don't know how.
I have written the following function in a .txt file
ClearDelta <- function(Matrix)
{
ncol<-ncol(Matrix);nrow<-nrow(Matrix);
for (i in 1:nrow) {
for (j in 1:(ncol-1))
{if (Matrix[i,j]==NA) (NA->Matrix[i,j+1])}
}
2003 Apr 28
2
Writing a function
Hi r lovers,
I have written the following function
> ClearDeltaBis
function(Matrix){
for (i in 1:3)
{
for (j in 1:2)
{if (is.na(Matrix[i,j]))
NA->(Matrix[i,j+1])}
}
Matrix
}
it looks correct but when I try to implement it on the MatCor Matrix I get
this error message
>
2004 Feb 06
1
nnet problem
Hello everybody,
I want to use the nnet library and my problem is that the algorithm seems
to accept only class as target when the neural is fiiting. So the output
when I use predict.nnet is also a class. Is it possible to have numeric
variable as target ? If yes, what is the syntax ?
Thank you.
Cordialement,
R?gis CHARIGNON
2003 Nov 24
0
link between arima and arma fit
Hi dear sirs,
I am wondering why the fit of the time serie x with an arima and the fit of
diff(x) with an arma (same coeff p & d) differ one from another
here are the output of R:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> modelarma<-arma(diff(x),c(7,5))
> modelarma
Call:
arma(x = diff(x), order = c(7, 5))
Coefficient(s):
ar1 ar2 ar3 ar4 ar5 ar6 ar7 ma1 ma2
0.06078
2003 Jun 02
1
authorized characters and symbols
Hi R lovers
Obviously I cannot use the underscore "_ " character to name an object in R
Is there a special reason for that ?
I want to use it to rename a function
maybe the problem is due to the nature of the object I work on
thanks for any comments on that very little and not very bothering trouble
*************************************************************************
Ce
2003 Apr 28
0
Re: [R Thanks for help Writing a function
Thank you very much
It works perfectly well
Have a wonderful day
|---------+---------------------------->
| | ripley at stats.ox.a|
| | c.uk |
| | |
| | 04/28/03 12:58 PM|
| | |
|---------+---------------------------->
2005 Nov 09
3
dataframe without repetition
Hello,
with a data.frame like this :
> toto <-
data.frame(id=c("id1","id1","id2","id3","id3","id3"),dpt=c("13","13","34","30","30","30"))
> toto
id dpt
1 id1 13
2 id1 13
3 id2 34
4 id3 30
5 id3 30
6 id3 30
what is the most efficient ways to obtain :
id
2004 Oct 07
2
title in bold - simple question in R 1.9.0
Hi,
how can i write this simple sentence : "Hello world" with "Hello" only
in bold ?
I try
> plot(1:5)
> title(main=paste(expression(bold("Hello")),"world",sep=" "))
but the result is wrong.
thanks,
Bruno
Si vous n'etes pas destinataires de ce message, merci d'avertir l'expediteur de l'erreur de distribution et de le
2004 Jul 29
3
2 questions : format and hh:mm
Dear R-users,
i have two questions :
1- first of all, i wish to know the way to obtain a serie with a format
like "00" : ( "01","02","03","04"....) or like postal code
("01100","02222").
for instance, i do :
> format(strptime(as.character(c(1:4)),"%H"),"%H")
but it sounds complicate and not really
2015 Dec 15
3
FastAGI not working
Hello everyone,
I have a problem with a FastAGI connection, could you help me fix this problem please?
Here is my log:
[2015-12-15 16:17:09] WARNING[23936][C-00000015]: res_agi.c:1658 handle_connection: Connecting to '10.171.54.149:9110' failed for url
2000 Feb 29
0
Smab Installation
Hi,
I have installed samba on one of my Unix server( SUN) and I am trying to access the share directory from a NT workstation. Earlier If I had used a guest account and I was able to connect to the share created on the Unix server. Now I want to access with users / groups through NT domain server which I received the following error :
The account is not authorized to login from this
2004 Jul 23
3
merge, cbind, or....?
Hi,
i have two data.frame x and y like :
> x <- data.frame( num = c(1:10), value = runif(10) )
> y <- data.frame( num = c(6:10), value = runif(5) )
and i want to obtain something like :
num.x value.x num.y value.y
1 0.38423828 NA 0.2911089
2 0.17402507 NA 0.8455208
3 0.54443465 NA 0.8782199
4 0.04540406 NA 0.3202252
5 0.46052426
2017 Feb 28
2
Re: Redhat 7: cgroup CPUACCT controller is not mounted
Thanks Martin to confirm that the issue is due to privilege access. How can I run a domain as non-root and be able to access the cpu information?
-----Original Message-----
From: Martin Kletzander [mailto:mkletzan@redhat.com]
Sent: Tuesday, February 28, 2017 16:18
To: EL FATHI Youssef OBS/OINIS
Cc: libvirt-users@redhat.com
Subject: Re: [libvirt-users] Redhat 7: cgroup CPUACCT controller is not
2017 Feb 27
2
Redhat 7: cgroup CPUACCT controller is not mounted
Hi,
With a non-root user account, I am launching virtual machines and would like to get CPU stats for each Core (using python API or not) but face the following problem:
- When I issue the command "virsh --readonly cpu-stats MY_DOMAIN" I got the following error:
error: Failed to retrieve CPU statistics for domain 'MY_DOMAIN'
error: Requested operation is not valid: cgroup