Displaying 20 results from an estimated 1000 matches similar to: "what is this warnings ?"
2012 Dec 15
3
interfacing with .Call
Hi
My code is as following:
#include <R.h>
#include <Rinternals.h>
//* the Projector part *//
void Projector(double *L, int *dimL, double *G, int *dimG, double *W, int
*dimW, int *xymod, int *dimxy, double *modif, int *dimif, double *Lsum)
{ ...}
//* the interface part *//
#define getDim(A) INTEGER(coerceVector(getAttrib(A,R_DimSymbol), INTSXP))
SEXP Projector5(SEXP L, SEXP G,
2012 Dec 06
1
Use .Call interface
Hi
I've written the following program:
#include <R.h>
#include <Rdefines.h>
#include "Projector.h"
SEXP Projector2(SEXP L, SEXP G, SEXP W, SEXP xymod, SEXP modif){
int nprot=0;
PROTECT(L=AS_NUMERIC(L));nprot++;
PROTECT(G=AS_NUMERIC(G));nprot++;
PROTECT(W=AS_NUMERIC(W));nprot++;
PROTECT(xymod=AS_INTEGER(xymod));nprot++;
PROTECT(modif=AS_NUMERIC(modif));nprot++;
2009 Aug 04
4
array slice notation?
Suppose I have an n-diml array A and I want to extract the first "row" -- ie
all elements A[1, ...]
Interactively if I know 'n' I can write A[1,,,,,] with (n-1) commas.
How do I do the same more generally, eg in a script?
(I can think of doing this by converting A to a vector then extracting the
approp elements then reshaping it to an array, but I wonder if there isn't a
2004 Oct 27
1
Warning messages in function fitdistr (library:MASS)
Why the warning messages (2:4)?
> x <- rexp(1000,0.2)
> fitdistr(x,"exponential",list(rate=1))
rate
0.219824219
(0.006951308)
Warning messages:
1: one-diml optimization by Nelder-Mead is unreliable: use optimize in: optim(start, mylogfn, x = x, hessian = TRUE, ...)
2: NaNs produced in: dexp(x, 1/rate, log)
3: NaNs produced in: dexp(x, 1/rate, log)
4: NaNs
2012 Feb 23
1
error in fitdistr
Hi dear,
I want to estimate d.f for Chi-squared distribution:
est.chi[i,]<-c(
fitdistr(as.numeric(data2[,i]),"chi-squared",start=list(df=1))$estimate)Warning
message:In optim(x = c(7.86755, 7.50852, 7.86342, 7.70589, 7.70153,
7.58272, :
one-diml optimization by Nelder-Mead is unreliable:
use "Brent" or optimize() directly
Who can help me to solve this problem?
Best
2007 May 14
1
optim bug (PR#9684)
Full_Name: Christina Merz
Version: R version 2.5.0 (2007-04-23)
OS: mingw32
Submission from: (NULL) (213.70.209.132)
R> version
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
2012 Mar 21
3
how calculate seasonal component & cyclic component of time series?
i am new to time series,whatever i know up till now,from that
i have uploaded time series file & what to build arma model,but for that i
want p & q values(orders)
tell me how to calculate best p & q values to find best AIC values for model
i am doing but giving error
>bhavar<-read.table(file.choose()) #taking time series file
> decompose(bhavar$V1)
Error in
2012 Feb 28
2
how to append element at last position in array dynamically
> h<-array()
> h
[1] NA
> append(h,9)
[1] NA 9
but what it append.........
> h
[1] NA
--
View this message in context: http://r.789695.n4.nabble.com/how-to-append-element-at-last-position-in-array-dynamically-tp4427893p4427893.html
Sent from the R help mailing list archive at Nabble.com.
2012 Feb 05
2
how to avoid writing index in write.table command
how to avoid writing index of variable in write.table command,
e.g. output--->
index,character,state
"1" "M" "2"
"2" "K" "3"
"3" "R" "1"
"4" "E" "1"
"5" "S" "1"
"6" "H" "1"
"7" "K" "1"
2012 Mar 31
2
Is it there any std pattern in R which show same representation style of ppt found on net
i m searching on net,material related to R,
whenever i get ppt presentation of some topic ,i found it in speical format
white backgroud & blue bars,having links for further topics
see link
1) https://www.rmetrics.org/files/Meielisalp2007/Presentations/Pfaff.pdf
2)http://grapevine.com.au/~yanchang/docs/Time-Series-Mining-slides.pdf
If this is format,how can i made it,if i want to give my R
2012 May 26
6
how to check given number seq. is time series or not?
i have following numbers
0.889046409368551
1.22726162946495
1.22726162946495
1.35785109728356
1.35785109728356
1.10704609982913
1.4424189950435
1.2277843378837
1.35785109728356
0.970883941918588
0.822170913920467
1.35785109728356
0.358815782262543
0.774234247460432
0.822170913920467
0.822170913920467
0.72599976881814
0.671583894425946
2005 Mar 26
11
Do i need a proxy??
Goodday,
First my network layout:
dsl router (10.0.0.99)
|
server (eth0 10.0.0.1, eth1 10.0.1.10)
|
3 times windows machine (10.0.1.2, 10.0.1.3, 10.0.1.4)
(all with proxy settings 10.0.1.10:8080)
Now on the server is mandrake 10 installed with shorewall as firewall.
And a apache webserver (and no ftp server).
When i turned internet sharing on it started squid which added a line in the
2012 Mar 07
2
how to see inbuilt function(cor.test) & how to get p-value from t-value(test of significance) ?
i can see source code of function
> cor
function (x, y = NULL, use = "everything", method = c("pearson",
"kendall", "spearman"))
{
na.method <- pmatch(use, c("all.obs", "complete.obs",
"pairwise.complete.obs",
"everything", "na.or.complete"))
2012 Mar 15
2
how to bind uneven column (not equal length) into matrix without recycling values
i have
> x
[1] 1 2 3 4 5 6
> y
[1] 34 5 6
> z<-cbind(x,y)
> z
x y
[1,] 1 34
[2,] 2 5
[3,] 3 6
[4,] 4 34
[5,] 5 5
[6,] 6 6
i don't want recycling, instead can we put NA /0 like below> z
x y
[1,] 1 34
[2,] 2 5
[3,] 3 6
[4,] 4 NA
[5,] 5 NA
[6,] 6 NA
& want distance matrix
--
View this message in context:
2012 Apr 22
2
how to avoid newlines & tabs in file opening?
i have uploaded file,but when i am opening it in R,using
> u<-file(file.choose(),"r")
>k<-readLines(u)
>k
> k[1:120]
is has all /t (tabs)& newlines, how to avoid it,
can i take first 3 columns only in table form (lines starts with # not
important for me)
uploaded file:-
http://r.789695.n4.nabble.com/file/n4577757/rabata.txt rabata.txt
--
View this message in
2012 Mar 13
4
how to find best model of time series?
i have data in one file below like & (i have such type of file =200,each
file have below type of data)
>t
-0.15264004
0.056076439
-0.07276116
-0.00917326
-0.02069089
-0.00416232
-0.07225855
-0.02654577
-0.06131410
-0.09380202
0.057414014
-0.05239976
0.014397612
0.016145161
-0.00670587
0.018696335
0.036943654
-0.02450233
0.031161705
0.006513503
-0.02892329
-0.00831519
-0.00877744
2012 Apr 28
6
problem in matching numbers in two variables
i want to compare two variables (having numbers) serially for
matching/dismatching
both having equal length
> x
[1] 2 2 1 2 3 2 2 2 2 3 3 2 2 2 2 2 2 3 2 2 2 2 2 2 2 2 2 2 3 2 3 2 2 2 1
2 2
[38] 2 2 2 3 2 3 2 2 1 2 2 2 2 1 1 1 3 2 2 2 2 1 1 3 1 1 1 2 2 2 3 2 3 3 3
2 2
[75] 2 2 3 2 2 1 1 1 2 3 2 2 2 2 2 2 2 2 2 1 1 3 2 2 2 2 2 2 2 2 2 2 2 1 3
> y
[1] 2 2 2 1 3 1 3 2 1 3 3 3 3 2 2 1 2 3
2012 Mar 19
1
what is p,d & q in arima() function of time series
i am new to time series
i found in help about arima
arima(x = data, order = c(p, d, q))
what is exactly p,d,q? if i not changed them,what effects will happens?
--
View this message in context: http://r.789695.n4.nabble.com/what-is-p-d-q-in-arima-function-of-time-series-tp4484368p4484368.html
Sent from the R help mailing list archive at Nabble.com.
2012 Feb 22
2
how to make hash?& append element, if i want following condition
i want hash like
A : 1.2, 3.4, 4.5
B : 9.7, 5.6, 4.8
C : 3.4 ,5.7, 4.6
where A key contain all three value at right sight
how to append single keys & values if i have predefined hash with known
length
--
View this message in context: http://r.789695.n4.nabble.com/how-to-make-hash-append-element-if-i-want-following-condition-tp4409761p4409761.html
Sent from the R help mailing list
2012 Oct 12
1
problem in downloading RMySQL pkg
when i am installing Rmysql packages i get error like
Warning in install.packages :
package ?RMySQL? is not available (for R version 2.15.0)
which is earliest version should i used ?how should i know the specific
version
--
View this message in context: http://r.789695.n4.nabble.com/problem-in-downloading-RMySQL-pkg-tp4645967.html
Sent from the R help mailing list archive at Nabble.com.