Dear all,
I would like to concatenate the lists below
str(Part2$dataset)
List of 3
$ : num [1:16001] 0 0 0 0 0 0 0 0 0 0 ...
$ : num [1:16001] 0 0 0 0 0 0 0 0 0 0 ...
$ : num [1:16001] 0 0 0 0 0 0 0 0 0 0 ...
str(Part1$dataset)
List of 3
$ : num [1:16001] 0 0 0 0 0 0 0 0 0 0 ...
$ : num [1
22, 2013 11:51 AM
Subject: RE: [R] Concatenate two lists, list by list
Hi
Maybe you could use mapply
mapply(c, Part1$dataset,Part2$dataset)
Regards
Petr
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of Alaios
> S
From: D. Rizopoulos
Cc: PIKAL Petr ; R help
Sent: Wednesday, January 23, 2013 11:08 AM
Subject: Re: [R] Concatenate two lists, list by list
you just need:
mapply(c, Part1$dataset, Part2$dataset, SIMPLIFY = FALSE)
I hope it helps.
Best,
Dimitris
On 1/23/2013 11:01 AM, Alaios wrote:
Dear all,
I am trying to plot a matrix I have as an image
str(matrixToPlot)
num [1:21, 1:66] 0 0 0 0 0 0 0 0 0 0 .
that contains only 0s and 1s,
where the xlabel will be Labeled as
str(xLabel)
num [1:66] 1e+09 1e+09 1e+09 1e+09 1e+09 ...
and the yLabels will be labeled as
str(yLabel)
nu
Dear all,
I would like to format the following numbers
xLabel
[1] 10 1000153846 1000307692 1000461538 1000615385 1000769231
[7] 1000923077 1001076923 1001230769 1001384615 1001538462 1001692308
[13] 1001846154 100200 1002153846 1002307692 1002461538 1002615385
[19] 1002769231 1002923
ot;MHz") +
ylab("Threshold") + geom_raster()
but this did not affect colorbar entries.
b. reduce/remove the grayish border that appears between the legend and the
image plot
Could you please help me with these two?
Regards
Alex
From: John Kan
k you in advanec for your help
Regards
Alex
- Original Message -
From: Dennis Murphy
To: Alaios
Cc:
Sent: Friday, February 15, 2013 10:19 AM
Subject: Re: [R] Plot a Matrix as an Image with ggplot
Your aesthetic is fill, not color. Change scale_color_gradient to
scale_fill_gradient and you&
You are good!
Many thanks
Alex
From: Dennis Murphy
Cc: R help
Sent: Saturday, February 16, 2013 3:11 AM
Subject: Re: [R] Plot a Matrix as an Image with ggplot
Hi:
See if the following works for you:
library(reshape2)
library(ggplot2)
tdm <- melt(testDat
Dear all,
I want some help improve my ggplot as following:
Make the plottable area with grid, so is easy one to see where each box refers
to x and y values.
Add a color bar but with fixed values, that I want to specify.
How I can do those two?
Before is some code what I have tried so far.
Rega
Hello Ista,
I would like to thank you for your reply!
Your code is indeed an improvement.
This is my code now and there are two things still missing.
DataToPlot<-matrix(data=runif(9),nrow=3,dimnames=list(seq(1,3),seq(4,6)))
require(reshape)
require(ggplot2)
require(raster)
cols<-colours()
cols
Let me try to explain this then.
I have numbers like
DataToPlot
4 5 6
1 0.4454995 0.4462009 0.4286807
2 0.3761550 0.5423205 0.6500785
3 0.3779496 0.4671437 0.1799601
and I want to have a color legend with each color that is mapped to the
following printed values
"1"
Dear all,
I am using the code as below
tdm <- melt(matrixToPlot)
p<- ggplot(tdm, aes(x = Var2, y = Var1, fill = factor(value))) +
labs(x = "Mz", y = "T", fill = "D") +
geom_raster(alpha=1) +
scale_fill_discrete(h.start=1) +
Dear all,
I have a piece of code that I want to run in parallel (I am working in system
of 16 cores)
foreach (i=(seq(-93,-73,length.out=21))) %dopar%
{
threshold<-i
print(i)
do_analysis1(i,path)
do_analysis2(i,path)
do_something_else_analysis1
Hi,
I am not quite sure what you meanÎ. I give again reproducible code:
require(ggplot2)
require(reshape)
DataToPlot<-matrix(data=rnorm(9),nrow=3,dimnames=list(seq(1,3),seq(4,6)))
tdm<-melt(DataToPlot)
p<- ggplot(tdm, aes(x = X2, y = X1, fill = factor(value))) +
               Â
Dear all,
I was reading last night the lm and the Formula manual page, and 'I have to
admit that I had tough time to understand their syntax. Is there a simpler
guide for the dummies like me to start with?
I would like to thank you in advance for your help
Regards
Alex
[[alternative HTM
Dear all,
I would like to have all unique combinations in the following matrix
TimeIndex<- rbind (c(1,"Week_of_21_07-29_03"),
c(2,"Thursday_21_03"),
c(3,"Friday_22_03"),
c(4,"Saturday_23_03"),
c(5,"Sunday_24_03"),
c(6,"Monday_25_03"),
c(
Dear all,
I am trying to plot an image so I am trying this through raster layer.
You can copy paste the following
require('raster')
Data<-matrix(data=rnorm(900,80,20),nrow=30,ncol=30)
rasterData<-raster(Data)
lengthOut<-5
xAxisFrequencies<-seq(800,900,length.out=lengthOut)
plot(rasterData, ylab="
Hi ,
I would like to use ggplot2 to plot a matrix as an image.
You can copy paste the following
Data<-matrix(data=rnorm(900,80,20),nrow=30,ncol=30)
lengthOut<-5
Lengths<- 15
library(reshape2)
library(ggplot2)
tdm <- melt(Data)
ggplot(tdm, aes(x = Var2, y = Var1, fill =
factor(value)),l
Hi,
Thanks for the answer.
It looks like that the mutate what I was missing so long..
That's my current attempt
Data<-matrix(data=rnorm(900,80,20),nrow=30,ncol=30)
Lengths<- 15
library(reshape2)
library(ggplot2)
require('plyr')
tdm <- melt(Data)
tdm <- mutate(tdm, col = cut(value, seq(15, 90, by=
Hi
I am using violin plots (type of boxplots) and I am trying to increase the
font size in the plots.
It looks like that the violin plots do not work as "normal" plots as the cex
parameters are ignored.
You can have a loot at the code below
require('vioplot')
data1<-rnorm(100)
data2<-rnorm
Hi,
it was very kind of you to help me again.
Your code works, and the reason I was using the limits as that is that my
dataset is slightly different than the one I used for showing the problem here.
More specifically this is my dataset
Browse[1]> str(keep)
num [1:153899, 1:3415] -98.6 -95.8 -9
Dear all,
1) I have a very large matrix of
str(keep)
num [1:153899, 1:3415] -98.6 -95.8 -96.4 -95.8 -98 ...
that I would like to reduce its size to something like
str(keep)
num [1:1000, 1:3415] -98.6 -95.8 -96.4 -95.8 -98 ...
or anything similar in size as this is a matrix that needs plot
oject.org] On Behalf Of Alaios
> Sent: Wednesday, March 27, 2013 9:13 AM
> To: R help
> Subject: [R] Averaging Out many rows from a column AND funtion to
> string
>
> Dear all,
> 1) I have a very large matrix of
> str(keep)
> num [1:153899, 1:3415] -98.6 -95.8 -96.4 -
ct.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of Alaios
> Sent: Wednesday, March 27, 2013 9:13 AM
> To: R help
> Subject: [R] Averaging Out many rows from a column AND funtion to
> string
>
> Dear all,
> 1) I have a very large matrix of
> str(keep)
> Â num
Â
see inline
Â
From:PIKAL Petr
Sent: Wednesday, March 27, 2013 11:24 AM
Subject: RE: [R] Averaging Out many rows from a column AND funtion to string
Hi
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> pr
Hi,
I have a few raster layers and I would like to customized their x and y axis.
I have tried already something like:
require('raster')
keep<-matrix(data=rnorm(900,80,20),nrow=30,ncol=30)
xlab<-seq(100e6,200e6,length.out=5)
test<-raster(keep)
plot(test,ylab="",xaxt="n",yaxt="n")
axis(1, at=seq(
tion to string
Â
see inline
Â
From:PIKAL Petr
Sent: Wednesday, March 27, 2013 11:24 AM
Subject: RE: [R] Averaging Out many rows from a column AND funtion to string
Hi
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounc
Dear all,
I am having a struct that contains on the first column file names and on the
second column a number which is a "rating" of the file on first column
A small subset looks like that
small
[,1]
Dear all,
I would like to select from a vector of 10 elements, 5 of those that are
identical.
How can I do that in R? I guess one way would be to taking random numbers and
see if that appeared again. Is though there a more straightforward approach?
Regards
Alex
[[alternative HTML version
Hi,
I want from a vector containing has like 1000 elements to select X of it
randomly but with never selecting the same element again. Each one should be
unique element of the vector.
Is this more precise now?
Regards
Alex
On Monday, January 20, 2014 7:54 PM, Alaios wrote:
Dear all,
I
Hi there,
I would like to be able to draw a density plot or a box plot where the median
and the median and the mean would be visible.
If I decide a density plot I need to put two big marks one for the median and
one for the mean, which I do not know how I can achieve to put marks in a
density p
Thanks Jim.. once again your rock
On Wednesday, January 22, 2014 9:51 AM, Jim Lemon wrote:
On 01/22/2014 07:37 PM, Alaios wrote:
> Hi there,
> I would like to be able to draw a density plot or a box plot where the median
> and the median and the mean would be visible.
>
>
Hi all,
I have a large number of measurements from which I select a large number of
unique vectors. For each vectors I would like to test which distribution might
be a candidate for fitting.
It is impossible to look on each vector separately but I can inside a for loop
test different models and
Hi all,
I have a very large number of vectors that I want first to look fast which
distribution might be considered candidate for fitting.
I made a simple loop that checks for all vector (the code below is for one
vector and being called for each vector separately). If a good fit is found
this i
in error please contact the sender.
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
> On Behalf Of Alaios
> Sent: 14. februar 2014 10:14
> To: R-help@r-project.org
> Subject: [R] Ignore errors and proceed to next
>
&g
Hi all
I am trying to read some text files with the following format:
1377262633.948000
$GPRMC,125708.00,A,5047.66107,N,00603.65528,E,0.203,247.36,230813,,,A*60
1377262633.958000 $GPVTG,247.36,T,,M,0.203,N,0.377,K,A*3B
1377262633.968000
$GPGGA,125708.00,5047.66107,N,00603.65528,E,1,09,0
Hi all,
I would like to turn some long strings like MyString$Myfield$MySubfield into
variables but it looks like that the get does not like lists
so for example:
test<-list(a=2)
test
>$a
[1] 2
get("test")
>$a
[1] 2
get("test$a")
>Fehler in get("test$a") : Objekt 'test$a' nicht ge
Dear all,
I have a list that is created like that
Spans<-list( c(837e6,842e6),
c(832e6,837e6),
c(930.1e6,935.1e6)
)
I would like to include a second list that will contain the string that would
correspond to the numbers at the left side.
I would like thus insi
Hi all,
I am having 4 vectors like
Data: num [1:4, 1:32] -82.8 -81.8 -75.5 -107.6 -87.6 ...
and I want to calculate the correlation between those.
Is there a graphical way in R to plot the correlations or not?
I would like to thank you in advance for your help
Regards
Alex
[[alternat
Hi I have a vector like that
readCsvFile$V1
[1] 30 31 32 33 34 35 36 37 38 39 310 311 312 313 314 315 316 317 318
[20] 319 320 321 20 21 22 23 24 25 26 27 28 29 210 211 212 213 214 215
[39] 216 217 218 219 220 221 222 223 40 41 42 43 44 45 46 47 48 49 410
[58] 411 41
Hi all,
I am trying to plot a raster object (I can explain why but the point is that it
would be a raster objeçt)..
I have selected a small code to show you exactly the problem
require(raster)
test<-matrix(data=runif(1),nrow=100)
m<-raster(test)
plot(m,axes="FALSE")
axis(1,at=c(0,1),labels=
Hi all,
I would like to ask your help to add a color band (Î am not sure regarding the
right term, this color band at the right of the plot "describing" values with
their corresponding color.
For now I have only this code
test<-matrix(data=runif(1),nrow=100)
plot(test,axes="FALSE")
axi
=heat.colors(30),gradient="y")
I would like to thank you in advance for your help
Regards
Alex
On Friday, October 25, 2013 11:50 AM, Jim Lemon wrote:
On 10/25/2013 08:38 PM, Alaios wrote:
> Hi all,
> I would like to ask your help to add a color band (Ã⢠am not sure
> re
Dear all,
I would like to ask your help concering two R lists.
If I did everything should have the same structure (that means the same number
of sublists, and their sublists also the same number of sublists). What would
change between the two lists is the contents of each element in the lists.
ace the legend at a useful place.
second I am not sure why the image is so full with black rows..
What I want is to have the legend visible
and later on customize the x axis to write custom string of different size...
First I need though to fix the more severe problems as I have described
Regards
Al
Dear all,
I would like to ask you how I can avoid this warning I am getting when I am
writing some results in a text file
5: In write.table(x = cor(t(collectMean_UL), t(collectMean_DL)), ... :
appending column names to file
the code that saves to the file look like:
write(x="TEMPERATURE",f
gh to fix the more severe problems as I have
described
RegardsAlex
On Sunday, October 27, 2013 12:25 PM, Jim Lemon wrote:
On 10/27/2013 08:39 AM, Alaios wrote:
> Hi Jim and thanks for your answer... I might be too tired with my new
> born or just exhausted.
>
> I am attaching for
Dear all,
in my code I have written the following list
TimeFramesShort <-list(c(strptime("2011-10-12 10:59:00","%Y-%m-%d
%H:%M:%S"),strptime("2011-10-13 11:02:00","%Y-%m-%d %H:%M:%S")) #
rest items were truncated
I was wondering if could somehow take the first element of the lis
Hi all,
I would like to ask your help regarding connecting external modules to telosb.
I have found that tiny os offers many possibilities for that as
ADC,
GPIOs, SPI, UART, I2C
I have never learned anything regarding those. Can someone please let me know
if there is any simple
guide on these
Hi all,
I am trying to add a color legend to my plot. As an example I am giving you a
bit of code that you can run.
I am sharing for everyone a small data snipset that you can load
https://www.dropbox.com/s/fh8jhwujgunmtrb/DataToPlotAsImage.Rdata
load("DataToPlotAsImage.Rdata")
require(plotrix)
Hi all,
I have in my code some vectors that are not of equal size. I would like to be
able for each of these vectors select 6 elements that are (almost) equally
spaced. So the first one would be at (or close) to the beginning the last one
at (or close) to the end and the other 4 equally spaced b
Thumbs up! It worked!
On Wednesday, October 30, 2013 9:41 AM, Gerrit Eichner
wrote:
Hello, Alaois,
if x is your vector maybe
n <- length( x)
positions <- trunc( quantile( seq( n), prob = 0:5/5))
x[ positions]
comes close to what you want.
Hth -- Gerrit
> Hi all, I have in my code
Hi,
I have some code that you can simply execute:
require(plotrix)
test<-matrix(data=rnorm(1,-100,5),nrow=100)
color2D.matplot(test,axes="F",xlab="",ylab="",main="color.scale",
extremes=c("#FF","#00"),show.legend=FALSE)
axis(1,at=seq(1,ncol(test),length.out=10),labels=seq(201,300,
Hi everyone,
I am plotting some legend and I am using the axis(at=..) to specify the place
to plot the marks I want.
My plotted data have ncol(x) so the at places have values that span from 1 to
ncol(x)
there I would like to be able to map values that go from 880e6 to 1020e6.
so
880e6 rem
ices I have) is misaligned in different positions each time
Could you please also help me with those two?
Regards
Alex
On Monday, October 28, 2013 9:00 AM, Alaios wrote:
Hi Jim and thanks for your answer... I might be too tired with my new born or
just exhausted.
I am sharing for eve
plots are around 400kBytes which is a lot and I am
looking for ways to reduce image size.
I would like to thank you for you reply
Alex
On Monday, November 4, 2013 11:59 AM, Jim Lemon wrote:
On 11/04/2013 08:09 PM, Alaios wrote:
> Hi Jim Lemon,
> thanks for the help, I appreciate thi
Hi all,
the following returns the hour and the minutes
paste(DataSet$TimeStamps[selectedInterval$start,4],
DataSet$TimeStamps[selectedInterval$start,5],sep=":")
[1] "12:3"
the problem is that from these two I want to create a time stamp so 12:03. The
problem is that the number 3 is not converte
Hi all,
I am plotting very nice looking mattrices with plotrin...
so far so good, I would like though to ask you if it would be possible to add
at the bottom of the color.legend (this lovely color bar that maps colors to
numbers).
Would that be possible to do that?
I would like to thank you i
Hi all,
I am plotting very nice and sexy images with plotrix :)
so far so good, I would like though to ask you if it would be possible to add
at the bottom of the color.legend (this lovely color bar that maps colors to
numbers).
Would that be possible to do that?
I would like to thank you in adv
Thanks! It worked.
Regards
Alex
On Monday, November 11, 2013 12:02 AM, Jim Lemon wrote:
On 11/11/2013 04:57 AM, Alaios wrote:
> Hi all,
>
> I am plotting very nice looking mattrices with plotrin...
>
> so far so good, I would like though to ask you if it would be possib
, 2013 3:07 AM, Alaios wrote:
Thanks! It worked.
Regards
Alex
On Monday, November 11, 2013 12:02 AM, Jim Lemon wrote:
On 11/11/2013 04:57 AM, Alaios wrote:
> Hi all,
>
> I am plotting very nice looking mattrices with plotrin...
>
> so far so good, I would like though t
Dear all,
I would like to ask you if there are any gps libraries.
I would like to be able to handle them,
-like calculate distances in meters between gps locations,
-or find which gps location is closer to a list of gps locations.
Is there something like that in R?
I would like to tthank you in
Hi all,
I have spatial field created with grf and I was wondering if I can sample in
lines, something that can resemble sampling outdoors at the streets.
Random sampling looks to far of what I want to have.
there is in geodata package the sample.geodata but this looks like to be random
samples.
Hi there,
I would like to save tabular (in R just matrices) in a txt file but in a way
that they would be somehow readable.
That means keeping columns aligned and rows so one can read easily for example
the 2,3 element.
IS there a way to do that in R?
capture.output for example does not produce
Hello to the community .
First post :)
I would like to ask you which text editor do you use in Linux and how did
you setup the syntax highlightning?
one more question is it possible to debug any program in R by inserting
breakpoints?
I would like to thank you in advance for your help
Best Regard
are inside the file
without executing the source("myfile.R") command first?
Best Regards
Alex
- Original Message
From: Duncan Murdoch
To: alaios
Cc: r-help@r-project.org
Sent: Fri, July 23, 2010 2:13:48 PM
Subject: Re: [R] Syntax Highlightning and Editor for Linux
On 23/07
"send code to terminal" shortcuts (much simpler than emacs, in my
[[elided Yahoo spam]]
/federico
On Fri, Jul 23, 2010 at 2:42 PM, Rainer M Krug wrote:
-BEGIN PGP SIGNED MESSAGE-
>Hash: SHA1
>
>
>On 23/07/2010 14:17, Alaios wrote:
>> I would like to thank
Hello.
I would try to explain what I would like to implement so to suggest me what to
try out.
I would like to create an area of X*X km that would be used to "Simulate" an
area map (eg. city's area, suburban area).
-X would be a parameter so I do not want it to be fixed
-In this map I would l
I am trying to find a simple R guide that explain what a vignette is but so far
I didnt make any progress. I tried to search inside R's built in help.start()
but it only returns results how to see vignettes.
So could you please tell me what a vignette is and if you can also could you
give some
Hello
I notice that in Linux the "=" operator works like the "<-" operator
So a=3 is similar to a<-3.
Could you please verify me that is correct? I would like to use "=" operator.
Do
you think that might be a problem in the future?
Best Regards
Alex
_
Hello everyone.. Is there any graphical tool to help me see what is inside a
matrix? I have 100x100 dimensions matrix and as you already know as it does not
fit on my screen R splits it into pieces.
I would like to thank you in advance for your help
Best Regards
Alex
[[alternat
Hello.
I would like to calculate with R
the weighted line integral of a loss field.
Where should I start searching about weighted integration in R?
I would like to thank you in advance for your help
Best Regards
Alex
[[alternative HTML version deleted]]
_
Hello everyone,
I have a 2x2 matrix filled with zeros and some more values around zeros. I
would
like to print only the non-zero values
and
to keep the coords of the places that the values are not zero.
Could you please help me with that?
I would like to thank you in advance for your help
Be
Hello everyone.
I would like to create some agents that span over a specific area map.Every
agent needs to have its own data structures like one or two matrices and one
list.
I think that the best way to do this is to create objects and every instance of
an object will be used for a single agen
Hello everyone.
I would like to create many objects with R. Does R support objects?
The number of objects needed is not predetermined and it is a parameter
specified by the user.
If the user selects to create many objects like 100, would it be possible to
handle each one by some index?
I would
Subject: Re: [R] Object oriented programming in R.
Hello Alaios,
I see a bunch of good materials here:
http://www.google.co.il/search?sourceid=chrome&ie=UTF-8&q=Object+oriented+programming+in+R
Did you look into them ?
Contact
> Best Regards
> Alex
>
>
>
>
>
> From: Tal Galili
>
> Cc: Rhelp
> Sent: Tue, September 14, 2010 10:11:36 AM
> Subject: Re: [R] Object oriented programming in R.
>
>
> Hello Alaios,
> I see a bunch of good materials here:
>http://www.google.co.il/search?sou
a solution.
>
>
>
>> Thank you very much. I checked the tutorials that on that list but still I do
>> not know how to create many objects of the same type. Can you please help me
>> with that?
>>
>> Best Regards
>> Alex
>>
>>
>>
&
Hello everyone.
I have created a 100*100 matrix in R.
Let's now say that I have a line that starts from (2,3) point and ends to the
(62,34) point. In other words this line starts at cell (2,3) and ends at cell
(62,34).
Is it possible to get by some R function all the matrix's cells that this li
Thank you very much. I am trying to execute it line by line to get some
understanding how this works.
Could you please explain me what these two lines do?
tie <- m[,2] == c(-Inf, m[-nrow(m),2])
m <- m[ !tie, ]
I would like to thank you in advance for your help
Best Regards
Alex
Hello I have some strange output from R and I try to understand how R works.
Could you please help me with that?
temp <- rbind (c(10,1),c(99,98))
> temp
[,1] [,2]
[1,] 101
[2,] 99 98
> dist(temp)
1
2 131.6435
> sqrt(dist(temp))
1
2 11.47360
so far so good
, 2010 1:28:31 PM
Subject: Re: [R] help me understand how things work.
?dist
BTW, to me this does not happens.
x <- matrix(rnorm(100), nrow=5)
d <- dist(x)
1/sqrt(d)
1/sqrt(dist(x))
Hope it helps
mario
On 16-Sep-10 12:02, Alaios wrote:
> Hello I ha
I would like to thank you again for your help.
But it seems that the floor function (ceiling, round too) create more dots in
the matrix that line really "touches".
unique( floor( cbind( seq(2,62, by=0.1), linefn(seq(2,62, by=0.1)) ) ) )
You can see that in the picture below
http://yfrog.com/5
Hello everyone,
please consider the following lines of a matrix
[574,] 59 32
[575,] 59 32
[576,] 59 32
[577,] 59 32
[578,] 59 32
[579,] 59 32
[580,] 59 32
[581,] 60 32
[582,] 60 33
[583,] 60 33
[584,] 60 33
[585,] 60 33
[586,] 60 33
[587,] 60
17 29
18 18 30
19 19 29
20 20 29
Best Regards
Alex
From: Jorge Ivan Velez
Cc: Rhelp
Sent: Fri, September 17, 2010 4:24:59 PM
Subject: Re: [R] count frequency
Alaios,
Try
as.data.frame(table(x[,1], x[,2))
where x is your matrix.
HTH
My bad :(
unfortunately does not work correct.
This is some of the output of the table
..
[494,] 50 27
[495,] 50 27
[496,] 50 27
[497,] 50 28
[498,] 50 28
[499,] 50 28
[500,] 50 28
[501,] 51 28
[502,] 51 28
[503,] 51 28
[504,] 51 28
[505,]
You are pretty good.
Worked nicely :)
Thanks!
Alex
From: Henrique Dallazuanna
Cc: Rhelp
Sent: Fri, September 17, 2010 4:58:50 PM
Subject: Re: [R] count frequency
So try this :
aggregate(rep(1, nrow(x)), as.data.frame(x), sum)
My bad :(
>unfortunately
more you are in a cell the higher the
weight will be.
Best Regards
Alex
From: David Winsemius
Cc: Rhelp list
Sent: Fri, September 17, 2010 6:36:51 PM
Subject: Re: [R] Interpolate? a line
On Sep 17, 2010, at 7:22 AM, Alaios wrote:
> I would like to thank
n R.
On Sep 14, 2010, at 9:29 AM, Alaios wrote:
> I would like to thank you very much all that you helped me so far.
> So I tried to check how the following works
>
> fred <- list(happy = 1:10, name = "squash")
> rep(fred, 5)
>
> This returns the following :
&g
Hello everyone,
I need some help with lists inside lists (a good way to emulate a struct)\
Assume that there is a small list called fred:
fred <- list(happy = 1:10, name = "squash")
and a big list called bigfred that includes fred list 5 times
bigfred <- rep(fred,5)
Is it possible somehow to i
.2010...@pburns.seanet.com...
> I'm confused by what you are looking for.
> There's some slight possibility that you
> are looking for double bracket subscripting
> with a vector:
>
> > list(a=1:5, b=letters)[[c(2,4)]]
> [1] "d"
>
>
> On 22/09/2010 1
For some reason I did not receive your email.
Sorry for the inconvenience caused
From: Dennis Murphy
Cc: Rhelp
Sent: Wed, September 22, 2010 1:46:28 PM
Subject: Re: [R] efficient list indexing
Hi:
I believe we had this discussion yesterday,
http://r.78969
Hello.
I want to print the value a matrix has. The matrix's size is not too big
(100*100 cells). I tried print(matrixname) but as it does not fit very well on
my screen R splits it into several small matrixes that do overflow my screen.
IS it possible somehow to display this matrix as one (even
Hello everyone
I need some advice if the following might be easier implemented.
There are n matrixes
each matrix needs to calculate one value for the rest n-1 matrixes (but not for
itself). I implemented this one by
two nested loops
for (i in c(1:length(CRX))) {
for (j in c(1:length(CRX
Hello
I would like to calculate a weighted line integral.
The integral is calculated by the cells that this lines trasverses (the small
cells belong to matrix (m*n) that represent the value that a specific area has.
I need to calculate the weights by finding out how much the line touches or
i
Just to confirm that it works. Thanks for help.
--
View this message in context:
http://r.789695.n4.nabble.com/print-show-display-a-matrix-tp2954168p2964344.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing
Thank you very much both of you.
I will check and post back later if needed.
Best Regards
Alex
--
View this message in context:
http://r.789695.n4.nabble.com/Make-a-loop-more-efficient-tp2955912p2964346.html
Sent from the R help mailing list archive at Nabble.com.
_
I would like to thank you for your reply.
Yes I had this conversation of how to find the cells that are touched.
I did that with these two lines:
temp<-(floor(cbind(seq(x[1],xr[1],by=0.01),lineeq(x,xr #.
cellid2 <-unique( floor(cbind(seq(x[1],xr[1], by=0.01), lineeq(x,xr)) ) ) #
cell ids t
Hello everyone.
It is time to start writing more and more function and I want to read in a
good reference
-book ( I can buy one, especially if it is second handed :P)
-online tutorial
-any other guide
-How functions really work in R
-How to write bigger R programs
-If there are local function va
No, because I thought something that might be easier.
If you see the image again you might notice that the proportions I am
looking for might also be found by using the hypotenuse which is the same
(as all squares are triangles) by finding the adjacent. The adjacent are
easier to be found by track
1 - 100 of 449 matches
Mail list logo