Re: [R] Sorted index of values in matrix

2022-04-15 Thread Eliza Botto
Thankyou very much. It worked. Eliza From: Bert Gunter Sent: Friday 15 April 2022 17:00 To: Jeff Newmiller Cc: R-help ; Eliza Botto Subject: Re: [R] Sorted index of values in matrix ... But Ivan's solution -- which I had to think about -- is better

[R] Sorted index of values in matrix

2022-04-15 Thread Eliza Botto
deaR useRs, I have this following simple dataset > dput(qq) structure(1:6, .Dim = 3:2, .Dimnames = list(c("1", "2", "3"), c("1", "2"))) I want to extract row and column index of the sorted values of this matrix For example, sort(qq) command will execute the sorted values of this matrix

[R] Raster map in R

2022-03-07 Thread Eliza Botto
deaR expeRts, I have the following data > dput(Tuto) structure(list(X = c(-114.028, -114.011, -114.442, -113.937, -114.187, -114.083, -113.949, -114.15, -114.068, -114.203, -113.958, -114.248, -114.18, -114.14, -114.071, -114.042, -114.187, -114.03, -113.97, -113.824, -114.084, -114.152,

Re: [R] Rising and falling bar-plots simultaneously

2021-10-18 Thread Eliza Botto
Thanks everyone. It helped. From: Jim Lemon Sent: Monday 18 October 2021 04:01 To: Eliza Botto ; r-help mailing list Subject: Re: [R] Rising and falling bar-plots simultaneously Hi Eliza, Try this: BAS1<- structure(c(3, 4, 2, 3, 3, 4, 3, 3, 3, 3, 2, 3, 3

[R] Rising and falling bar-plots simultaneously

2021-10-17 Thread Eliza Botto
Dear useRs, Sorry for a very basic question. I have the following data set containing 2 columns. > dput(BAS1) structure(c(3, 4, 2, 3, 3, 4, 3, 3, 3, 3, 2, 3, 3, 4, 3, 2, 2, 3, 2, 3, 3, 3, 4, 5, 3, 4, 3, 4, 4, 3, 4, 4, 3, 3, 3, 4, 3, 3, 3, 4, 3, 3, 4, 5, 4, 4, 4, 3, 4, 3, 3, 3, 3, 4, 4, 5, 4,

[R] plotting some rows in different color

2021-09-02 Thread Eliza Botto
Dear useRs, For the following dataset, dput(BFA3) structure(c(17532, 17533, 17534, 17535, 17536, 17537, 17538, 17539, 17540, 17541, 17542, 17543, 17544, 17545, 17546, 17547, 17548, 17549, 17550, 17551, 17552, 17553, 17554, 17555, 17556, 17557, 17558, 17559, 17560, 17561, 17562, 17563, 17564,

Re: [R] conditional replacement of elements of matrix with another matrix column

2021-09-01 Thread Eliza Botto
I thank you all. But the code doesn't work on my different dataset where A and B have different column lengths. For example, > dput(A) structure(c(17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897, 17897,

[R] conditional replacement of elements of matrix with another matrix column

2021-09-01 Thread Eliza Botto
lumn match. Is there a single line loop or code for that? Thanks in advance, Eliza Botto [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-hel

[R] Converting characters back to Date and Time

2021-08-31 Thread Eliza Botto
very much in advance. Eliza Botto [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

Re: [R] Finding if numbers fall within a range

2021-08-29 Thread Eliza Botto
Thanks Jeff, It worked!! From: Jeff Newmiller Sent: Saturday 28 August 2021 16:32 To: r-help@r-project.org ; Eliza Botto ; r-help@r-project.org Subject: Re: [R] Finding if numbers fall within a range You messed up the dput somehow... but I think this works: m

[R] Finding if numbers fall within a range

2021-08-28 Thread Eliza Botto
Dear useRs, Is there a way in R to see if the numbers in a matrix-row fall within the given range or not? For example, I have the following data; > dput(EB) structure(c(1, 57, 59, 271, 279, 59, 179, 279, 278, 359, 52, 118, 178, 239, 334), .Dim = c(3L, 5L)) The ranges for which these numbers

[R] Sectors covered by the Nearest Neighbors

2021-08-16 Thread Eliza Botto
deaR useRs, I have a very basic question. I am for putting up a real long text. But I tried searching for some clues in the previous help posts but unfortunately, I could get any. I have the following data called "el". > dput(el) structure(c(1.00451374640952, 1.88100123102175,

[R] Shading specific region in R

2018-03-27 Thread Eliza Botto
Dear useRs, Following the given codes below, I generated a plot that has 6 regions around a center point (IL), with 5 regions containing a point (L1, L2 to L5) and sixth vacant region. I want background of all the filled regions turned "green", while "red" for the vacant region. Can it be

Re: [R] adding percentage secondary y-axis

2017-11-23 Thread Eliza Botto
Thank you very much peter. It worked out nicely. I have additional question. How can I get Y-axis on log-scale? Thank you very much in Advance, Eliza UoS PP From: PIKAL Petr <petr.pi...@precheza.cz> Sent: 23 November 2017 16:22:39 To: Eliza Botto; r-

[R] adding percentage secondary y-axis

2017-11-23 Thread Eliza Botto
Dear useRs, I have this dataset (D) with three columns. > dput(D) structure(c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 2.990484802, 3.005018792, 3.019552781, 3.03408677, 3.048620759, 3.063154749, 3.077688738, 3.09727, 3.106756717, 3.121290706, 3.135824695,

Re: [R] test hypothesis in R

2016-03-23 Thread Eliza Botto
.org Subject: Re: [R] test hypothesis in R Hello, Try ?t.test t.test(mA, mB, alternative = "greater") Hope this helps, Rui Barradas Citando Eliza Botto <eliza_bo...@outlook.com>: Dear All, I want to test a hypothesis in R by using student' t-test (P-va

[R] test hypothesis in R

2016-03-23 Thread Eliza Botto
Dear All, I want to test a hypothesis in R by using student' t-test (P-values). The hypothesis is that model A produces lesser error than model B at ten stations. Obviously, Null Hypothesis (H0) is that the error produces by model A is not lower than model B. The error magnitudes are #model A

[R] arranging axis within plotting area

2016-03-22 Thread Eliza Botto
Dear useRs, I have defined two matrices "prop" and "ELE" in the following manner > dput(prop) structure(c(122.4667, 87.1500875, 94.3647755102041, 84.8471625, 95.2767755102041, 84.15558125, 121.8467, 90.75970625, 98.2028979591837, 87.1500875, 88.2953043478261, 72.81219375, 88.234,

[R] TRMM download loop

2015-11-11 Thread Eliza Botto
Dear Users of R, I have this following confusion. Some months ago I use to download 3 hourly TRMM data from NASA website by using the R from the following website

[R] TRMM download loop

2015-11-11 Thread Eliza Botto
Dear Users of R, I have this following confusion. Some months ago I use to download 3 hourly TRMM data from NASA website by using the R from the following website

[R] Problem with Downloading TRMM

2015-11-11 Thread Eliza Botto
Dear Users of R, I have this following confusion. I want to download 3 hourly TRMM data from NASA website by using R, from the following website ##main Link http://giovanni.gsfc.nasa.gov/giovanni/#service=ArAvTs=2008-12-31T00:00:00Z=2009-12-31T23:59:59Z=67,-50,67,-50=TRMM_3B42_007_precipitation

[R] 6 regions around a point

2014-12-21 Thread eliza botto
Dear UseRs, A point was plotted by the following command plot(2,4,ylim=c(0,10),xlim=c(0,5)) how to divide the space around the plotted point into six regions each of 60 degree as shown in the Figure 2a) in the following link http://infolab.usc.edu/csci599/Fall2007/papers/b-2.pdf. Thankyou very

[R] replacing columns with same names

2014-11-14 Thread eliza botto
Dear useRs, I have two matrices dput(EB) structure(1:15, .Dim = c(3L, 5L), .Dimnames = list(NULL, c(A, B, C, D, E))) dput(EA) structure(31:36, .Dim = c(3L, 2L), .Dimnames = list(NULL, c(D, E))) I have two question 1-Generally speaking, How can I replace the columns of matrix with the other

Re: [R] replacing columns with same names

2014-11-14 Thread eliza botto
Thankyou very much Berend. It worked!!! Have a great weekend!! :) Eliza Subject: Re: [R] replacing columns with same names From: b...@xs4all.nl Date: Fri, 14 Nov 2014 16:24:03 +0100 CC: r-help@r-project.org To: eliza_bo...@hotmail.com On 14-11-2014, at 16:04, eliza botto eliza_bo

[R] R memory issues

2014-11-11 Thread eliza botto
Dear useRs, I have this funny thing going on with me since morning. I am 32 bit window 7 system with 4 GB RAM(2.95 usable). I tried to run a code on it but when I tried to convert dataframe to matrix by using the following code mat-matrix(as.numeric(unlist(SFI)),nrow=nrow(SFI)) *where SFI is my

[R] lat/log to meter

2014-10-31 Thread eliza botto
Dear UseRs,Is there a way in R to convert latitude and longitude in degree.minute.second to meter? (e.g. 45'55'')Thankyou very much in Advance,Eliza [[alternative HTML version deleted]] __

Re: [R] lat/log to meter

2014-10-31 Thread eliza botto
a function in one of the spatial-related packages to convert lat/long in dms format to decimal, but I don�t remember its name. -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 10/31/14, 8:22 AM, eliza botto eliza_bo

Re: [R] distance from fitted line

2014-10-20 Thread eliza botto
From: eliza botto eliza_bo...@hotmail.com To: r-help@r-project.org r-help@r-project.org Date: 19/10/2014 22:08 Subject: [R] distance from fitted line Sent by: r-help-boun...@r-project.org Dear useRs, I have the following dataset. dput(EB) c

Re: [R] distance from fitted line

2014-10-20 Thread eliza botto
line On 20/10/14 23:00, eliza botto wrote: Thankyou very much Joachim. Actually I already know the residual() command. I only wanted to know that is there a way to account for the fitted lines? its more of a criosity rather than a problem. :) Thankyou very much once again. What

[R] distance from fitted line

2014-10-19 Thread eliza botto
Dear useRs, I have the following dataset. dput(EB) c(77.724, 76.708, 84.836, 85.09, 118.11, 65.024, 121.412, 63.5, 102.87, 81.3, 108.7, 110.7, 71.9, 42.2, 101, 151.4, 94, 112, 48, 73.4, 76.6, 62.2, 59.4, 114.3, 214.3, 110.5, 46, 84.7, 128.1, 45.2, 109.5, 102.3, 77.5, 61, 97.3, 78, 142, 88.2,

[R] standard deviation

2014-10-07 Thread eliza botto
Dear useRs, Is there a direct command in R to calculate standard deviation of BURR distribution in R? I know the direct function in VBA and worksheet. but is there a similar function in R? VBA =BurrStdev(k,alpha,beta,[gamma]) Worksheet:

[R] (no subject)

2014-10-02 Thread eliza botto
Dear UseRs, I obtained following results from Anderson-Darling Goodness of fit test. dput(EB) structure(c(2.911, 0.9329, 0.818, 1.539, 0.604, 0.5142, 0.4344, 0.801, 0.963, 0.9925, 0.933, 0.956, 0.883, 0.572), .Dim = c(7L, 2L), .Dimnames = list(c(EXP, GUM, GENLOG, GENPARETO, GEV, LN, PAR3),

[R] Best Distribution

2014-09-30 Thread eliza botto
Dear useRs, I have this following data dput(Prec) c(42.2, 45.2, 46, 48, 54, 54.1, 59.4, 61, 62.2, 63.5, 65.024, 71.9, 73.4, 76.6, 76.708, 77.5, 77.724, 78, 81.3, 84.7, 84.836, 85.09, 88.2, 91.4, 94, 95.8, 96, 97.3, 101, 101, 101.5, 102.3, 102.87, 108.7, 109.5, 110.5, 110.7, 112, 114.3, 118.11,

Re: [R] Best Distribution

2014-09-30 Thread eliza botto
Dear Turner and Murphy, Thankyou so very much for replying. It fixed the issue. :) Eliza Date: Wed, 1 Oct 2014 11:04:32 +1300 From: r.tur...@auckland.ac.nz To: eliza_bo...@hotmail.com; r-help@r-project.org Subject: Re: [R] Best Distribution On 01/10/14 08:50, eliza botto wrote: Dear

[R] fitting distribution

2014-09-29 Thread eliza botto
Dear UseRs, I have a dataset in the following form. dput(Da) structure(c(0.0238095238095238, 0.0476190476190476, 0.0714285714285714, 0.0952380952380952, 0.119047619047619, 0.142857142857143, 0.167, 0.19047619047619, 0.214285714285714, 0.238095238095238, 0.261904761904762,

[R] adding rows

2014-09-25 Thread eliza botto
Dear useRs, Here is my data with two columns and 20 rows. dput(TT) structure(c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 24, 48, 72, 96, 120, 144, 168, 192, 216, 240, 264, 288, 312, 336, 360, 384, 408, 432, 456, 480), .Dim = c(20L, 2L), .Dimnames = list(NULL, c(,

[R] column names to row names

2014-09-17 Thread eliza botto
Dear useRs, I have a data frame y starting from 1961 to 2010 in the following manner (where A,B,C .., I are station names and the values uder these are discharge values.) dput(y) structure(c(1961, 1961, 1961, 1961, 1, 1, 1, 1, 1, 2, 3, 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,

Re: [R] column names to row names

2014-09-17 Thread eliza botto
Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. On Wed, Sep 17, 2014 at 8:28 AM, eliza botto eliza_bo...@hotmail.com wrote: Dear useRs, I have a data frame y starting from 1961 to 2010

Re: [R] column names to row names

2014-09-17 Thread eliza botto
To: eliza botto Cc: r-help@r-project.org Subject: Re: [R] column names to row names Use the 'tidyr' package: your 'month' does not match your desired output - x - structure(c(1961, 1961, 1961, 1961, 1, 1, 1, 1, 1, 2, 3 + , 4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14

[R] chi-square test

2014-09-15 Thread eliza botto
Dear useRs of R, I have two datasets (TT and SS) and i wanted to to see if my data is uniformly distributed or not?I tested it through chi-square test and results are given at the end of it.Now apparently P-value has a significant importance but I cant interpret the results and why it says that

Re: [R] splitting data

2014-09-09 Thread eliza botto
on this list long enough to know what is expected. All it takes is a change or two in the settings of your mailing client. I use gmail, and one change of setting is all it took for me...five years ago, the one and only time I was admonished to do so. On Mon, Sep 8, 2014 at 12:08 PM, eliza

[R] splitting data

2014-09-08 Thread eliza botto
Dear R members, I have this data frame of 100 years in the following format yearmonth day A B C D where A,B,C and D are item number sold each day. I am trying 1-split the data w.r.t the monthly values for each year 2-then, sum them up I

Re: [R] data format setting

2014-06-14 Thread eliza botto
in R: google for R + impute. Best Regards Frede Sendt fra Samsung mobil Oprindelig meddelelse Fra: eliza botto Dato:13/06/2014 20.48 (GMT+01:00) Til: r-help@r-project.org Emne: Re: [R] data format setting Thanks dennis, It worked but I had to do some simple modifications

[R] data format setting

2014-06-13 Thread eliza botto
Dear R family, I hope you all be doing great. I have a dataset of following format. The data file is of the following format. st year month day discharge 1 A 2004 1 1 6.752828 2 A 2004 1 2 7.602053 3 A 2004 1 3 5.583619 4 A 2004 1 4 5.019562

Re: [R] data format setting

2014-06-13 Thread eliza botto
, function(d) dcast(d, month + day ~ year, value.var = discharge)) Obviously untested, so caveat emptor. The idea is to use the dcast function to reshape the data from long to wide format within year. Dennis On Fri, Jun 13, 2014 at 8:55 AM, eliza botto eliza_bo...@hotmail.com wrote

[R] row mean

2014-05-27 Thread eliza botto
Dear R family, I have this matrix say AAA-matrix(sample(1:240),ncol=2) I first want to combine every 13th row in both columns. precisely, starting from row-1 1,13,25,37,49, then starting from row-2 2,14,26,38,50 also 3,15,27,39,51 and similarly starting from row 4, row number 5, row 6...

Re: [R] gumbel distribution

2014-05-14 Thread eliza botto
. Eliza Date: Wed, 14 May 2014 04:40:50 -0700 From: smartpink...@yahoo.com Subject: Re: [R] gumbel distribution To: eliza_bo...@hotmail.com HI Eliza, Check library(QRM) ?dGumbel ?qGumbel ?pGumbel ?rGumbel A.K. On Tuesday, May 13, 2014 1:58 PM, eliza botto eliza_bo

Re: [R] gumbel distribution

2014-05-14 Thread eliza botto
mobil Oprindelig meddelelse Fra: eliza botto Dato:14/05/2014 15.19 (GMT+01:00) Til: smartpink...@yahoo.com,r-help@r-project.org Emne: Re: [R] gumbel distribution Dear Arun, Rolf and Frede, Thankyou very much for youe help. I managed to draw gumbel plot by using following

[R] gumbel distribution

2014-05-13 Thread eliza botto
Dear useRs, I need some examples of gumbel probability plots in R. i'll be extremely grateful if you could share the codes of a working example. Eliza [[alternative HTML version deleted]] __

Re: [R] gumbel distribution

2014-05-13 Thread eliza botto
Of eliza botto Sent: 13. maj 2014 19:57 To: r-help@r-project.org Subject: [R] gumbel distribution Dear useRs, I need some examples of gumbel probability plots in R. i'll be extremely grateful if you could share the codes of a working example. Eliza [[alternative HTML version

Re: [R] adding rows

2014-05-10 Thread eliza botto
the following. sapply(1:(30 - 2), function(i) sum(el[i:(i+2), ])) but with number of rows instead of 30. Hope this helps, Rui Barradas Em 09-05-2014 22:35, eliza botto escreveu: Dear useRs, I have a matrix, say el of 30 rows and 10 columns, as el-matrix(sample(1:300),ncol=10) I want

[R] adding rows

2014-05-09 Thread eliza botto
Dear useRs, I have a matrix, say el of 30 rows and 10 columns, as el-matrix(sample(1:300),ncol=10) I want to sum up various sets of three rows of each column in the following manner sum(el[c(1,2,3),]) ##adding row number 1, 2 and 3 of each column sum(el[c(2,3,4),])##adding row number 2, 3 and 4

Re: [R] adding rows

2014-05-09 Thread eliza botto
), ])) but with number of rows instead of 30. Hope this helps, Rui Barradas Em 09-05-2014 22:35, eliza botto escreveu: Dear useRs, I have a matrix, say el of 30 rows and 10 columns, as el-matrix(sample(1:300),ncol=10) I want to sum up various sets of three rows of each column in the following

[R] multiple plots on same sheet in R

2014-04-16 Thread eliza botto
Dear useRs, I drew 12 separate raster maps. I want to combine them in such a way the they appear on the same sheet in R, which will later on be saved. Each row should contain three raster maps, so in total we should have 4 rows with each row containing 3 rasters. I know that mfrow() can do it

Re: [R] calling in inverted commas

2014-04-14 Thread eliza botto
be an advantage to use the URLencoding () function on queryUrl. I'll check later. Br. Frede Sendt fra Samsung mobil Oprindelig meddelelse Fra: arun Dato:12/04/2014 12.45 (GMT+01:00) Til: Frede Aakmann T©ªgersen Cc: Eliza Botto ,R. Help Emne: Re: [R] calling in inverted commas

[R] operating website through R

2014-04-11 Thread eliza botto
Dear Users of R, I wanted to operate certain slots of this website (http://disc2.nascom.nasa.gov/Giovanni/tovas/TRMM_V7.3B42_daily.2.shtml) through R. I wanted to operate Latitude, longitude section, plot type, begin and end year and ASCII Output Resolution. The filling of these slot will

Re: [R] operating website through R

2014-04-11 Thread eliza botto
to pass the parameters on Giovanni_cgi.pl with action=ASCII+Output On 11 April 2014 17:19, eliza botto eliza_bo...@hotmail.com wrote: Dear Users of R, I wanted to operate certain slots of this website (http://disc2.nascom.nasa.gov/Giovanni/tovas/TRMM_V7.3B42_daily.2.shtml) through R

[R] calling in inverted commas

2014-04-11 Thread eliza botto
Dear useRs, Here are three steps for downloading a file from a certain website in R. Here you see that in URL command (west=68.25north=24.75east=68.25south=24.75) are actually the first and second column values of 1st row of a matrix called df2 (300 rows and 2 columns). more precisely,

[R] average of rows of each column

2014-04-04 Thread eliza botto
Dear useRs, I have a matrix of 120 row and 1000 columns.What I want is to get an average of a set of 12 rows starting from 1 till 120 for each column. Precisely, for column 1 the average of 1:10 rows, 11:20 rows 111:120. similarly for column 2, 3, 4 1000. So in the end i should have a

Re: [R] average of rows of each column

2014-04-04 Thread eliza botto
Of eliza botto Sent: Friday, April 4, 2014 1:08 PM To: r-help@r-project.org Subject: [R] average of rows of each column Dear useRs, I have a matrix of 120 row and 1000 columns.What I want is to get an average of a set of 12 rows starting from 1 till 120 for each column. Precisely

[R] importing multiple text files in R

2014-04-01 Thread eliza botto
Dear useRs, I have a number of text file located at a certain location with the following names. s1.txt,s2.txt,s3.txt,s4.txt,s5.txt...s120.txt when i read them, before opening them, by using filelist = list.files(pattern = .s*.txt) The are opened in the following order [1] s1.txt

[R] monthly sum

2014-03-31 Thread eliza botto
Dear useRs, I have the data of following format. I have only pasted some part of the data. The data starts from 1961 and ends up in december 1987. dat - read.table(text=Date A B C D1-Jan-61 0.00 1.27 8.128 0.252-Jan-61 6.10 9.144 94.742 15.493-Jan-61 0.00 0.508 1.27 0.004-Jan-61 0.00 0 NA

[R] NA to NA

2014-03-31 Thread eliza botto
Dear useRs, Sorry for such a ridiculous question but i really need to know that what is the difference between NA and NA and how to convert NA to NA. Thankyou very much in advance Eliza [[alternative HTML version deleted]]

Re: [R] monthly sum

2014-03-31 Thread eliza botto
Em 31-03-2014 18:31, eliza botto escreveu: Dear useRs, I have the data of following format. I have only pasted some part of the data. The data starts from 1961 and ends up in december 1987. dat - read.table(text=Date A B C D1-Jan-61 0.00 1.27 8.128 0.252-Jan-61 6.10 9.144 94.742

Re: [R] monthly sum

2014-03-31 Thread eliza botto
:40, eliza botto escreveu: Dear Rui, Thanks for your reply. But the command seems not to be working. I am getting the following error. Error in FUN(X[[1L]], ...) : invalid 'type' (character) of argument Any idea? :( Thanks, Eliza Date: Mon, 31 Mar 2014 18:48:08 +0100

Re: [R] reading dataset

2014-03-27 Thread eliza botto
:45 AM, eliza botto eliza_bo...@hotmail.com wrote: Dear useRs, A similar question has previously been asked by another user (https://stat.ethz.ch/pipermail/r-sig-geo/2011-September/012791.html) but i'll try to discuss it from another angle. Its about data reading. I am trying to read

Re: [R] reading dataset

2014-03-27 Thread eliza botto
the sender. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of eliza botto Sent: 27. marts 2014 13:26 To: Pascal Oettli Cc: r-help@r-project.org Subject: Re: [R] reading dataset Dear Pascal, Thanks for your reply

[R] reading dataset

2014-03-26 Thread eliza botto
Dear useRs, A similar question has previously been asked by another user (https://stat.ethz.ch/pipermail/r-sig-geo/2011-September/012791.html) but i'll try to discuss it from another angle. Its about data reading. I am trying to read to read a data-set APHRO_MA_050deg_V1101R2.1961.gz from

Re: [R] points with-in boundaries of a map

2014-03-24 Thread eliza botto
statement. Please refer to www.vestas.com/legal/notice If you have received this e-mail 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 eliza botto Sent: 23. marts 2014 03:02 To: r

Re: [R] points with-in boundaries of a map

2014-03-24 Thread eliza botto
Thanks ray, I really appreciate your concern. Eliza Date: Tue, 25 Mar 2014 08:35:15 +1300 From: ray.brownr...@ecs.vuw.ac.nz To: fr...@vestas.com; eliza_bo...@hotmail.com; r-help@r-project.org Subject: Re: [R] points with-in boundaries of a map On 24/03/14 20:09, Frede Aakmann Tøgersen

Re: [R] points with-in boundaries of a map

2014-03-23 Thread eliza botto
-project.org Subject: Re: [R] points with-in boundaries of a map On 03/23/2014 01:01 PM, eliza botto wrote: Dear UseRs, I have a question regarding reading the coordinates within a country' map. I drew map of ireland by using the following commands library(maps) library(mapproj) map

Re: [R] points with-in boundaries of a map

2014-03-23 Thread eliza botto
: [R] points with-in boundaries of a map On 03/23/2014 10:29 PM, eliza botto wrote: Thankyou very much jim. it worked! but regarding second part of my question, isn't there a way to read the coordinates of intersecting lines with the premises of the map? Hi Eliza, I think you want

[R] plotting vectors of different lengths

2014-03-22 Thread eliza botto
Dear useRs, I have two column vectors of different lengths say x=1,2,3,4,5,6,7,8 and y=1,2,3,4,5. I wanted to plot them by using points() command over an already existed image but got an error, Error in xy.coords(x, y) : 'x' and 'y' lengths differ.What i actually wanted to do was to plot the

Re: [R] plotting vectors of different lengths

2014-03-22 Thread eliza botto
To: eliza_bo...@hotmail.com CC: r-help@r-project.org Hi Eliza, Perhaps the following? matpoints(t(dat), type = 'l') HTH,Jorge.- On Sat, Mar 22, 2014 at 10:18 PM, eliza botto eliza_bo...@hotmail.com wrote: Dear useRs, I have two column vectors of different lengths say x=1,2,3,4,5,6,7,8 and y

Re: [R] plotting vectors of different lengths

2014-03-22 Thread eliza botto
. If I understand correctly, the following will do: x - 1:8y - 1:5 matrix(apply(expand.grid(x = y, y = x), 1, function(r) paste0((, r[1], ,, r[2], ))), ncol = length(x)) Best, Jorge.- On Sat, Mar 22, 2014 at 10:37 PM, eliza botto eliza_bo...@hotmail.com wrote: Thankyou very much jorge

Re: [R] plotting vectors of different lengths

2014-03-22 Thread eliza botto
Dear Bert and Arun, Thankyou very much for your help. I am really obliged. :D Eliza Date: Sat, 22 Mar 2014 08:17:31 -0700 Subject: Re: [R] plotting vectors of different lengths From: gunter.ber...@gene.com To: smartpink...@yahoo.com; jorgeivanve...@gmail.com; eliza_bo...@hotmail.com CC:

Re: [R] Latest question

2014-03-22 Thread eliza botto
[row.names(mat1) %in% df1$Ry,colnames(mat1) %in% df1$Rx]),nrow=120, dimnames=list(NULL,colnames(res))) identical(res,res2) #[1] TRUE A.K. On Saturday, March 22, 2014 4:14 PM, eliza botto eliza_bo...@hotmail.com wrote: Thankyou very very much arun. Right now i cant have an acess to PC

[R] points with-in boundaries of a map

2014-03-22 Thread eliza botto
Dear UseRs, I have a question regarding reading the coordinates within a country' map. I drew map of ireland by using the following commands library(maps) library(mapproj) map(world, ireland) map.axes() You can clearly see the axis labelled. What is want to do is to draw lines (both vertically

[R] geoghraphical coordinate

2014-03-21 Thread eliza botto
Dear R-family, I want to draw a map of the world with 0.5 degree*0.5 degree resolution and then want to extract the geographical coordinates of my beloved country Ireland in the same resolution. I hope there is a way of doing it in R. Thank you very much in advance, Eliza

[R] Error: cannot allocate vector of size 5.2 Gb

2014-03-20 Thread eliza botto
Dear R family, I am trying to read a real large dataset in R (~ 2Gb). Its in binary format. When i tried to read it by using following command readBin(DAT.dat.nc, numeric(), n=9e8, size=4, signed=TRUE, endian='little') I got the following error Error: cannot allocate vector of size 5.2 Gb I have

[R] reading row title

2014-03-19 Thread eliza botto
Dear R-Family, I have a data-set of the following format. I am only presenting a part of it. DateA B C D 1-Jan-61 0.00 1.27 8.128 0.25 2-Jan-61 6.10 9.144 94.742

Re: [R] reading row title

2014-03-19 Thread eliza botto
=TRUE,stringsAsFactors=FALSE) res -á as.data.frame(apply(dat[,-1],2,FUN=function(x) {x1 -dat[,1][is.na(x)]; x2 - max(colSums(is.na(dat[,-1]))); if(length(x1) x2) c(x1, rep(,x2-length(x1))) else x1}),stringsAsFactors=FALSE) A.K. On Wednesday, March 19, 2014 2:39 PM, eliza botto

Re: [R] open unknown file format in R

2014-03-18 Thread eliza botto
, eliza botto eliza_bo...@hotmail.com wrote: Dear R-Family, I have just downloaded a massive data file from internet (AphroJP_62STN_V1005.1900.gz). Apparently, the file is compressed with .gz. When I uncompressed it, the file was saved in the name (AphroJP_62STN_V1005.1900) of unknown

Re: [R] open unknown file format in R

2014-03-18 Thread eliza botto
the gridded format, I used: readBin(fid, numeric(), n=1e8, size=4, signed=TRUE, endian='little') where file is the connection created with file() Hope this helps, Pascal On Tue, Mar 18, 2014 at 4:06 AM, eliza botto eliza_bo...@hotmail.com wrote: Dear R-Family, I have just downloaded

Re: [R] open unknown file format in R

2014-03-18 Thread eliza botto
points you need, with the coordinates. HTH Pascal On Tue, Mar 18, 2014 at 9:21 PM, eliza botto eliza_bo...@hotmail.com wrote: Hi Pascal, Your code worked out perfectly but I have one question though. You wrote that you did not use stations. What if I want to read stations as i am

[R] open unknown file format in R

2014-03-17 Thread eliza botto
Dear R-Family, I have just downloaded a massive data file from internet (AphroJP_62STN_V1005.1900.gz). Apparently, the file is compressed with .gz. When I uncompressed it, the file was saved in the name (AphroJP_62STN_V1005.1900) of unknown format. How can I open it in R? thankyou very much

Re: [R] predefined area under the curve

2014-01-17 Thread eliza botto
. To distribute unequally, you'll need to work that out yourself, but knowing the relative weights will be the key. Dave Date: Thu, 16 Jan 2014 13:24:41 + From: eliza botto eliza_bo...@hotmail.com To: r-help@r-project.org r-help@r-project.org Subject: [R] predefined area under the curve

[R] predefined area under the curve

2014-01-16 Thread eliza botto
Dear UseRs of R, My sincere apologizes in advance if my question isn't relevant to the operations in R. I actually have the following two columns data, with 12 rows in it. dput(el) structure(c(-1.42607687227285, -1.0200762327862, -0.736315917376129, -0.502402223373355, -0.293381232121193,

[R] label in scatter3d plot

2013-12-24 Thread eliza botto
Dear Users of R, I plotted the following data by scatterplot3d(x,y,z, main=3D Scatterplot) Then i wanted to label the points on that plot w.r.t column 4. i unsuccessfully tried textxy() text3d() Kindly guide me through dput(test) structure(list(x = c(458750L, 460350L, 415750L, 356250L,

Re: [R] label in scatter3d plot

2013-12-24 Thread eliza botto
helpful, i.e. try s3d - scatterplot3d(x,y,z, main=3D Scatterplot) text(s3d$xyz.convert(x,y,z)$x, s3d$xyz.convert(x,y,z)$y, V4, pos=4, cex=0.7) Well, you still don't see too much, but at least it does what you were asking for. Best, Uwe Ligges On 25.12.2013 00:26, eliza botto wrote

[R] plot two columns against one

2013-12-14 Thread eliza botto
Dear users of R, How can i plot the values in column C with A on x-axis and B on y-axis?s - A BC 0.451 0.333 1134 0.491 0.270 1433 0.389 0.249 7784 0.425 0.819 6677 0.457 0.429 99053 0.436 0.524 111049 0.423 0.270

Re: [R] plot two columns against one

2013-12-14 Thread eliza botto
(s,aes(x=A,y=B,colour=C))+geom_text(label=s$C) + theme_bw() A.K. On Saturday, December 14, 2013 9:30 AM, eliza botto eliza_bo...@hotmail.com wrote: Dear users of R, How can i plot the values in column C with A on x-axis and B on y-axis?s - A BC 0.451 0.333 1134

Re: [R] solving simultaneous Equations in R

2013-12-12 Thread eliza botto
On 11-12-2013, at 23:56, eliza botto eliza_bo...@hotmail.com wrote: Dear Berend, Thankyou very much indeed for you reply. By taking help from your previous reply @ http://r.789695.n4.nabble.com/Simultaneous-equations-td2524645.html i was able to generate the following loop

[R] function inside a function

2013-12-12 Thread eliza botto
Dear users of R, I am trying to inculcate a function inside a function. For that to be done, i copied following function from internet. library(nleqslv) fun - function(x) { f - numeric(length(x)) f[1] - A[,1]+x[2] - 1/x[1] f[2] - A[,2]+x[2] - sin(x[1]) f } x.start -

Re: [R] function inside a function

2013-12-12 Thread eliza botto
this time.Thanks for your help.Eliza Subject: Re: [R] function inside a function From: b...@xs4all.nl Date: Thu, 12 Dec 2013 19:35:58 +0100 CC: r-help@r-project.org To: eliza_bo...@hotmail.com On 12-12-2013, at 17:10, eliza botto eliza_bo...@hotmail.com wrote: Dear users of R, I am trying

Re: [R] function inside a function

2013-12-12 Thread eliza botto
0.2725286 [2,] 1.131672 0.4487542 [3,] 1.109174 0.4534483 [4,] 1.093078 0.4935468 [5,] 1.098613 0.4420152 [6,] 1.088997 0.4384237 [7,] 1.005843 0.2912907 A.K. On Thursday, December 12, 2013 3:16 PM, eliza botto eliza_bo...@hotmail.com wrote: Dear Arun, Thankyou very much for your

Re: [R] method default for hclust function

2013-12-12 Thread eliza botto
Absolute distance is the default distance in hclust. v-c(1,2,3,4,5,6) dist(v) 2 1 3 2 1 4 3 2 1 5 4 3 2 1 6 5 4 3 2 1 Eliza Date: Thu, 12 Dec 2013 15:09:19 -0800 From: capri...@yahoo.com To: r-help@r-project.org Subject: [R] method default for hclust function I could

[R] solving simultaneous Equations in R

2013-12-11 Thread eliza botto
Dear users of R, I'm trying to solve the following 2 equations simultaneously in R for x and y. I couldn't get through due to my limited knowledge of R. 3=1-[(x-1)!(2x-y-1)!/(2x-1)!(x-y-1)!] 6={[(x-y-1)!/(x-1)!]-[3(2x-y-1)!/(2x-1)!]+[2(3x-y-1)!/(3x-1)!]}/{[(x-y-1)!/(x-1)!]-[(2x-y-1)!/(2x-1)!]}

Re: [R] solving simultaneous Equations in R

2013-12-11 Thread eliza botto
12:43:02 +0100 CC: r-help@r-project.org To: eliza_bo...@hotmail.com On 11-12-2013, at 12:16, eliza botto eliza_bo...@hotmail.com wrote: Dear users of R, I'm trying to solve the following 2 equations simultaneously in R for x and y. I couldn't get through due to my limited knowledge

[R] date format

2013-11-28 Thread eliza botto
Dear Users of R, I have a data frame with three column, the first column contains years, the second one months and third one, the days (cbind( mm dd)). I want to combine them so that i have one column with the date format as (dd.mm.). Is there a way of doing that. Thanks in advance,

  1   2   3   >