you
Uday
--
View this message in context:
http://r.789695.n4.nabble.com/hdf4-files-tp4637921.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do
hi ,
last time I did not mention the specific version of linux and it was problem
with only syntax but with correction I got new error.
I found that some people has faced this problem before and some of them
have mentioned that it may be because of dependencies issue and
Hi,
Recently I have installed R in my Linux operating system , after
installation I was trying to install some packages and I was getting error
installed.packages(hdf5)
{ Package LibPath Version Priority Depends
Imports LinkingTo Suggests Enhances OS_type
License Archs Built}
this
Hi
Thanks for reply
after usinginstall.packages(hdf5)
I get error
{Installing package(s) into ‘/home/uday/R/x86_64-pc-linux-gnu-library/2.14’
(as ‘lib’ is unspecified)
trying URL
'http://cran.revolutionanalytics.com/src/contrib/hdf5_1.6.9.tar.gz'
Content type 'application/x-gzip' length 50870
.
install.packages(hdf5)
Installing package(s) into ‘/home/uday/R/x86_64-pc-linux-gnu-library/2.14’
(as ‘lib’ is unspecified)
trying URL
'http://cran.revolutionanalytics.com/src/contrib/hdf5_1.6.9.tar.gz'
Content type 'application/x-gzip' length 50870 bytes (49 Kb)
opened URL
I would like to calculate vector from existing value
e.g
v - 1000
s - 30
d1- v-s
d1- 970
d2- d1 -s
d2- 940
d 3 - d2-s
d3- 910
:
:
d15 - .
so how I should get vector of length 15 d
function
approx(pres, sci.pre)
Error in xy.coords(x, y) : 'x' and 'y' lengths differ
I am looking for interpolated output with 1 x 19 demotions .
does somebody knows how to deal with this issue ?
Thanks
Uday
--
View this message in context:
http://r.789695.n4.nabble.com/interpolation-issue
Uday
--
View this message in context:
http://r.789695.n4.nabble.com/interpolation-issue-tp4567362p4567826.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r
Hi Rui,
Thanks a lot it works
--
View this message in context:
http://r.789695.n4.nabble.com/spaghetti-plots-in-R-tp4532021p4534110.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
http://r.789695.n4.nabble.com/file/n4534914/Rplot01.png
I have some dataset
ak[1:3,]
[,1] [,2] [,3] [,4] [,5] [,6] [,7]
[,8] [,9]
[1,] 0.3211745 0.4132568 0.5649930 0.6920562 0.7760113 0.8118568 0.8609301
0.9088819 0.9326736
[2,] 0.3159234
I would like to plat some spaghetti plots from my data , ma data is as
follows
ak[1:3,]
[,1] [,2] [,3] [,4] [,5] [,6] [,7]
[,8] [,9]
[1,] 0.3211745 0.4132568 0.5649930 0.6920562 0.7760113 0.8118568 0.8609301
0.9088819 0.9326736
[2,] 0.3159234
Hi Liviu ,
thanks for post , but I could not find findFn('spaghetti') , I can see the
following functions in sos package
Extract.findFn
findFn
grepFn
hits
installPackages
PackageSum2
PackageSummary
print.findFn
sortFindFn
summary.findFn
unionFindFn
writeFindFn2xls
--
View this
,],pre[2,],type=l,col=red)
but every files contains more than 1000 observations.
Is it possible to use this function for two different matrix data ?
if yes then please let me know how to do it .
Thanks
Uday
--
View this message in context:
http://r.789695.n4.nabble.com/spaghetti-plots-in-R
Does anybody knows how to convert Modified Julian Days(MJD) to YMDHMS format?
The sample data set which I have is as follows
time - c(1832.415 ,1832.415 ,1832.415 ,1832.415 ,1832.415 ,1832.415
,1832.415, 1832.415, 1832.415 ,1832.415)
which is Days since 1.1.2000 (in UT time, starting at
I would like to read data from two different folder and then combine this
together
the code which I have tried are as follows
setwd(/Groups/data_first/)
file_was - list.files(path = ., pattern = v2.0.2.was, all.files =
FALSE, full.names = FALSE, recursive = FALSE, ignore.case = FALSE)
/data_second/)
file_wasaux2 -list.files(path,pattern=v2.0.2.wasaux2)
files- 1
for ( i in files){
data1 - read.table(file_was[i],header=TRUE)
data2 - read.table(paste(path, file_wasaux2[i],sep=),header=TRUE)
data - cbind (data1,data2)
}
data
Cheers
Uday
--
View
Hi Hth -- Gerrit ,
thanks for reply
sorry it was typo mistake , but I corrected that problem before . But the
error is still same.
setwd(/Groups/data_first/)
file_was - list.files(path = ., pattern = v2.0.2.was, all.files =
FALSE, full.names = FALSE, recursive = FALSE, ignore.case =
Hi Ray,
Thanks for reply
/R/PlotGridded2DMap.R
/R/image.plot.fix.R
/R/image.plot.plt.fix.r
are the functions those I wrote for plotting and they work with another
data, but only I have some issue with only the codes those I provided
before.
and what do you mean by I am redefining the map()
Hey Gerrit ,
Thanks your solution works
--
View this message in context:
http://r.789695.n4.nabble.com/replacing-values-in-Array-tp4468739p4477758.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
I am using following codes to plot map
library(sp)
library(rgdal)
library(maps)
library(gplots)
library(clim.pact)
library(fields)
source(/R/PlotGridded2DMap.R)
source(/R/image.plot.fix.R)
source(/R/image.plot.plt.fix.r)
I want to replace some values in my Array
e.g
data- c(1,2,3,4,5,6,7,8,9,10,11,12)
I would like to replace 1,2,3 by 1 , 4,5,6 by 2, 7,8,9 by 3 and 10,11,12 by
4
I am expecting out put
data- 1 1 1 2 2 2 3 3 3 4 4 4
I have tried replace function
replace(data, (data==1 |data==2| data==3),1)
I would like to read hdf5 or h5 files in R .
I found two packages hdf5 and h5r , but in both packages they have
information how to get attribute from data.
In my case I would like see what kind of parameters are saved in every file.
I have tried
h5 -
I got two .RData file e.g data.2005.RData data.2006.RData
I would like to combine these two different data set and make single RData
file.
in both file there are some NULL files are also available and I would like
to clear this NULL files also.
$ : NULL
$ : NULL
$ : num [1:43285, 1:8] -21.1
])
cheers
Uday
--
View this message in context:
http://r.789695.n4.nabble.com/add-data-from-RData-file-tp4453981p4454461.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman
I would like to convert my point data to grid data
my data contains e.g
lat - c(25.1618 , 24.8664, 21.0575, 21.1537, 21.2477, 21.3403,
20.7617, 20.8577, 20.9516, 21.0443)
lon - c(55.7660, 55.6890, 54.7205, 54.2142, 53.7105,53.2053, 54.6470,
54.1419, 53.6389, 53.1348)
z - c(
I am plotting some data using sp package
library (sp)
library(maps)
data.aggm # data
# Define standard projection
ll - CRS(+proj=longlat +datum=WGS84)
# convert to a SpatialPointsDataFrame
xy - cbind(data.aggm[,1], data.aggm[,2])
ch4.spPoints -
Hi Iris,
thanks for reply
but this solution does not work
Uday
--
View this message in context:
http://r.789695.n4.nabble.com/saving-all-data-in-r-object-tp4413092p4417933.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r
I want to create r object from my data set.
I have several data files and I would like to read individual parameter
from file and save all 10 files parameter in a single array
e.g
setwd(/temp/)
file_s - list.files(path = ., pattern = 0b.was, all.files = FALSE,
full.names =
The following error I got
Warning messages:
1: In sci.lat[i] = data[, 7] :
number of items to replace is not a multiple of replacement length
2: In sci.lon[i] = ((temp.lon + 180)%%360) - 180 :
number of items to replace is not a multiple of replacement length
3: In sci.ch4[i] = data[, 45] :
,temp=temp,
file=data.RData)
but it does not work.
I am new in R and I got stuck here.
Cheers
Uday
I am beginner in R and I got stuck here
--
View this message in context:
http://r.789695.n4.nabble.com/saving-all-data-in-r-object-tp4413092p4413092.html
Sent from the R help mailing list
Thanks for reply Michael
the error which I got is as follows :
Error in gzfile(file, wb) : cannot open the connection
In addition: Warning message:
In gzfile(file, wb) :
cannot open compressed file 'data.RData', probable reason 'Permission
denied'
--
View this message in context:
Michael , the first error which I got is
number of items to replace is not a multiple of replacement length
sorry last time it did not copied whole thing
--
View this message in context:
http://r.789695.n4.nabble.com/saving-all-data-in-r-object-tp4413092p4414058.html
Sent from the R help
Hi Dan,
I am sorry about that it was typo mistake but the both values are -999.99 .
your solution works.
Thanks
Uday
--
View this message in context:
http://r.789695.n4.nabble.com/removing-particular-row-from-matrix-tp4407401p4409513.html
Sent from the R help mailing list archive
dimensions
it need matrix, so is there any way to deal with this kind of problem.
Cheers
Uday
--
View this message in context:
http://r.789695.n4.nabble.com/removing-particular-row-from-matrix-tp4407401p4411348.html
Sent from the R help mailing list archive at Nabble.com
expected answer
[,1] [,2][,3]
[1,]255.00
[2,]369.00
I am new in R I got stuck with this step.
Uday
--
View this message in context:
http://r.789695.n4.nabble.com/removing-particular-row-from-matrix-tp4407401p4407401.html
Sent from the R help mailing list
Thank you Michael
--
View this message in context:
http://r.789695.n4.nabble.com/Plotting-monthly-maps-from-yearly-data-tp4391704p4396787.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
48 different files for different months.
I got stuck here, I am quit new in R.
it would be very nice it somebody can tell me how to fix this problem.
Uday
--
View this message in context:
http://r.789695.n4.nabble.com/Plotting-issue-tp4396832p4396832.html
Sent from the R help mailing
Hi ,
Thanks for reply
My latitude and longitude contains 9-10 observations per file
when I run coords - expand.grid(lat=1:5,long=1:5) then my computer
*** caught segfault ***
address 0x6951c20, cause 'memory not mapped'
Traceback:
1: .C(spline_eval, z$method, nu = as.integer(n), x
I want to use spplot function for plotting data on wold map
spplot.points(obj, zcol = names(obj), ..., names.attr,
scales = list(draw = FALSE), xlab = NULL, ylab = NULL, aspect =
mapasp(obj,xlim,ylim),
panel = panel.pointsplot, sp.layout = NULL, identify = FALSE, formula,
I have some data set which is available from 2005-2010 . I would like plot
monthly maps out of it.
So how I should write loop that can plot this yearly data to for every month
and write title for individual months too.
--
View this message in context:
I have some data files e.g 100 . and after for loop I would like to save all
data in one single data frame
file_s - list.files(path = ., pattern = v2.0.2.txt, all.files = FALSE,
full.names = FALSE, recursive = FALSE,
ignore.case = FALSE)
for (i in 1:100){
I have some data set which has latitude, longitude and Z values.
I would like to plot them on global map.
I am thinking to use image
image(x, y, z, zlim, xlim, ylim, col = heat.colors(12),
add = FALSE, xaxs = i, yaxs = i, xlab, ylab,
breaks, oldstyle = FALSE, useRaster = FALSE, ...)
Hi it works fine
thanks
--
View this message in context:
http://r.789695.n4.nabble.com/save-output-of-loop-tp4386599p4387806.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
The dimensions of variables are unknown , they changes to every file.
--
View this message in context:
http://r.789695.n4.nabble.com/save-output-of-loop-tp4386599p4387804.html
Sent from the R help mailing list archive at Nabble.com.
__
I have some dataset
sci.pre - 0.300.380.500.650.801.031.331.72
2.22
2.873.815.066.759.00 11.97 14.15 16.34 19.04
22.27 25.49 29.72 34.67 40.47 47.29 55.29 64.67 75.6
88.50 103.50 121.10 141.70 165.80 194.00
Hi Petr,
You were correct , thats was the mistake . I am sorry for last reply. now
its working.
Cheers
Uday
--
View this message in context:
http://r.789695.n4.nabble.com/logical-operator-for-different-dimensions-tp4383316p4384143.html
Sent from the R help mailing list archive
I have some time data and which is in seconds
time -c( 126230400 126252000 126273600 126295200 126316800 126338400)
now I wanted to convert this time to Y M D H M S format
I have tried following codes but it does not give me the out put in Y M D
H M S
time_t1 - as.POSIXlt(time,
Dear Uwe ,
Thanks for reply
I have tried format function that u suggested (format(time_t1, %Y %m %d %H
%M %S) and I got
format(time_t1, %Y %m %d %H %M %S)
[1] 126230400 126252000 126273600 126295200 126316800 126338400
I think something is not working correct.
--
View this message in
=TRUE)
hist(dist[2:9997])
try - deldir(sci_lon,sci_lat)
try_p - deldir(sci_lon,sci_lat,plot=TRUE,wl='tr')
Now I would like to calculate the length of each triangulated face , could
somebody please tell me how to calculate it ?
Cheers
Uday
--
View this message in context
I have some satellite data which contains latitude and longitude information
.
From this data I would like to calculate distance between first location
(scalar latitude and longitude) and all other (vectors latitude and
longitude)
How I should solve this problem ?
--
View this message in
Dear All,
I have data set which includes details of locations e.g latitude, longitude
, time.
I would like to compare two different data sets ( sampling in space and
time).
the e.g data sets are as follows
t_lat
[1] -90.00 -86.17 -82.34 -78.51 -74.68 -70.85 -67.02 -63.19 -59.36 -55.53
sorry there is typing error in codes
the correct ones are
nobs-length(s_lat)
for (i in 1:length(nobs)){lat_match- which(abs(t_lat - s_lat ==
min(abs(t_lat - s_lat)))}
--
View this message in context:
Hi Thanks for reply, there was some mistakes in typo. I have already
corrected it.
this function gives us closest point ( R book reference).
So I would like to find all observations on another grid spatially and
temporally.
the function is just for finding all closest observations.
uday
I new in R programming language.
I have some time data
time
[1] 2005-01-03 05:11:39 UTC 2005-01-03 06:36:02 UTC 2005-01-03
06:36:55 UTC
[4] 2005-01-03 06:37:00 UTC 2005-01-03 06:38:04 UTC 2005-01-03
06:38:04 UTC
[7] 2005-01-03 06:38:04 UTC 2005-01-03 06:38:04 UTC 2005-01-03
06:38:05 UTC
Hi,
How I should convert Fractional days in Year Month Days Hour Minute and Day
format ?
--
View this message in context:
http://r.789695.n4.nabble.com/Serial-Date-tp3353123p4313144.html
Sent from the R help mailing list archive at Nabble.com.
__
55 matches
Mail list logo