Displaying 17 results from an estimated 17 matches for "madrazel".
2010 Dec 07
4
increase or decrease variable by 1
many languages have shorthands for that operation like:
variable += 1
or
++variable
is there something like that in R ?
--
View this message in context: http://r.789695.n4.nabble.com/increase-or-decrease-variable-by-1-tp3076390p3076390.html
Sent from the R help mailing list archive at Nabble.com.
2010 Nov 21
3
how to get rid of unused space on all 4 borders in plot() render
x= c(1,5,7,-3,4)
y= c(2,4,-5,2,5)
plot(x,y,ylim=c(-20,20),xlim=c(min(x),max(x)),pch='X',col = rgb(0, 0, 0,
0.5),yaxt="n", ann=FALSE)
and this code produces:
http://i53.tinypic.com/ffd7d3.png
Where I marked in red areas that I want to get rid of and use as much real
screen estate as I can.
--
View this message in context:
2010 Dec 07
1
please show me simple example how to plot "Distance-Weighted Least Squares" fitting
I got simple x,y pairs of data and simple scatterplot and just cannot figure
how to do it , there are many examples but always there is error popping out
please show me an example stripped with additional data just core of what I
need to do to get this damn line
--
View this message in context:
2010 Dec 08
1
how to strip list from NA values looking only at one column ?
I have got a list with 3 colums x,y,z, now I want do delete whole rows where
column z has NA values
I am not intereted in x and y columns if there are also NA values or not,
moreover I do not want to touch them because if there would be NA that would
mean a more serious error for me, and I have cath for that somewhere else
I am asking because I only saw an example where function loops over all
2010 Dec 08
1
how to make partial mean() of a matrix only when second value matching some logic
for example I have matrix with two columns
x,y
1,0.56
2,9.55
2,7.56
5,2.55
5,0.56
3,0.55
2,0.56
2,1.56
so I need to take average from y values placed where x==2
--
View this message in context: http://r.789695.n4.nabble.com/how-to-make-partial-mean-of-a-matrix-only-when-second-value-matching-some-logic-tp3078449p3078449.html
Sent from the R help mailing list archive at Nabble.com.
2010 Nov 21
1
"negative alpha" or custom gradient colors of data dots in scatterplot ?
I know that by setting alpha to for example col = rgb(0, 0, 0, 0.1) it is
possible to see how many overlapping is in the plot. But disadvantage of it
is that single points are barely visible on the background. So I wonder if
there is possible to make setting that single points would be almost black,
but with more and more data on the same spot it would get more and more
whiteish. Or maybe it is
2010 Dec 07
2
longer object length is not a multiple of shorter object length
In datamatrix[, "y"] == datamatrix[, "y"][-1] :
longer object length is not a multiple of shorter object length
out = c(FALSE,datamatrix[,'y'] == datamatrix[,'y'][-1])
and I do not know why I get that error, the resulting out matrix is somehow
one row larger than datamatrix...
all I try to do is filter matrix by dropping rows where [,'y'][-1] ==
2010 Nov 22
2
I need a very specific unique like function and I don't know even how to properly call this
consider this matrix:
[,1] [,2]
[1,] 3 7
[2,] 6 5
[3,] 7 5
[4,] 3 5
[5,] 7 5
[6,] 5 5
[7,] 8 4
[8,] 2 4
[9,] 7 4
[10,] 0 6
I need to delete all rows where column 2 above and below has the same value,
so the effect would be:
[,1] [,2]
[1,] 3 7
[2,] 6 5
[6,] 5 5
[7,] 8 4
[9,] 7 4
[10,] 0 6
2010 Dec 04
1
what is this averaging function called ?, has R a built in function for it ?
I know little of statistics and have created this function out of intuition.
But since this algorithm is so basic I wonder what is the proper name of
this function and is it build in R.
here is some code in PHP to illustrate what the function is doing, it uses
some function I created but the meaning is obvious:
#get csv file and interchange rows with columns to get two arrays
$csv =
2010 Nov 21
8
[beginner] simple keyword to exit script ?
I have tried quit(), and return() but first exits from whole graphical
interface and second is only for functions. What I need only to exit from
current script and return to the console.
--
View this message in context: http://r.789695.n4.nabble.com/beginner-simple-keyword-to-exit-script-tp3052417p3052417.html
Sent from the R help mailing list archive at Nabble.com.
2010 Nov 24
0
4. Rexcel (Luis Felipe Parra)-how to run a code from excel
...datasets on PC (Stephen Liu)
164. Re: Calculating correlation (Tal Galili)
----------------------------------------------------------------------
Message: 1
Date: Mon, 22 Nov 2010 06:29:34 -0500
From: Mike Marchywka <marchywka at hotmail.com>
To: <jdnewmil at dcn.davis.ca.us>, <madrazel at interia.pl>
Cc: r-help at r-project.org
Subject: Re: [R] "unexpected numeric constant" while reading tab
delimited csv file
Message-ID: <BLU113-W14BF3EA0E3821E3C0CA8AEBE3D0 at phx.gbl>
Content-Type: text/plain; charset="iso-8859-1"
--------------------------...
2010 Dec 08
1
how to find smallest non-negative and biggest non-positive number in a matrix column ?
so it could be zero in both cases when given column has 0 set in it
--
View this message in context: http://r.789695.n4.nabble.com/how-to-find-smallest-non-negative-and-biggest-non-positive-number-in-a-matrix-column-tp3077870p3077870.html
Sent from the R help mailing list archive at Nabble.com.
2010 Nov 22
1
how to sample lowess/loess into matrix ?
code:
x <- rnorm(32)
y <- rnorm(32)
plot(x,y)
lines(lowess(x,y),col='red')
Now I need to sample the lowess function into matrix where one series will
be X and other will be values of lowess at particular X.
--
View this message in context: http://r.789695.n4.nabble.com/how-to-sample-lowess-loess-into-matrix-tp3053458p3053458.html
Sent from the R help mailing list archive at
2010 Nov 22
1
how to round only one column of a matrix ?
round() function affects all values of a matrix, I want only to round column
that is called 'y'.
--
View this message in context: http://r.789695.n4.nabble.com/how-to-round-only-one-column-of-a-matrix-tp3054363p3054363.html
Sent from the R help mailing list archive at Nabble.com.
2010 Nov 22
3
"unexpected numeric constant" while reading tab delimited csv file
my csv file is very simple - just one line for purpose of this test:
0{TAB}0
and read function is this:
csvdata = read.csv(file="d:/s/test.csv",head=FALSE,sep="\t")
then error comes:
Error in source("d:/test.csv") :
d:/test.csv:1:9: unexpected numeric constant
1: 0 0
but when I change delimiter to ; (colon) then error not shows up anymore
--
View this
2010 Dec 07
3
how to get vector of data from line ?
I have created a density line
d<- density(X)
now I need to read values from that line
for example what is the value of this line at x = 1, 2, 3 etc...
--
View this message in context: http://r.789695.n4.nabble.com/how-to-get-vector-of-data-from-line-tp3076943p3076943.html
Sent from the R help mailing list archive at Nabble.com.
2010 Nov 22
2
xlim=c(min(x), max(x)) still produces extra margin on both sides of x axis in plot()
code:
op <-
par(bg='black',fg='gray',col='gray',col.axis='gray',col.lab='gray',col.main='gray',col.sub='gray',mai=c(0,0,0,0),
tck = 0.01, mgp = c(0, -1.4, 0), mar=c(0,0,0,0))
plot(x,y,ylim=c(-20,20),xlim=c(min(x),max(x)),pch='X',col = rgb(1,1,1,
0.5),yaxt="n", ann=FALSE)
abline(v=c(min(x),max(x)), lty=3,