Displaying 16 results from an estimated 16 matches for "uday_143_4u".
2012 Jul 19
3
R packages installation error in Ubuntu
Hi,
Recently I have installed R version 2.14.1, after installation I am trying
to install some packages and I get error message. even I tried
install.packages("Rcmdr") but still I am unable to fix this problem.
I would be very grateful if somebody can help me to fix this problem.
install.packages("hdf5")
Installing package(s) into
2012 Feb 15
2
Plotting monthly maps from yearly data
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: http://r.789695.n4.nabble.com/Plotting-monthly-maps-from-yearly-data-tp4391704p4391704.html
Sent from the R help mailing list archive at
2012 Apr 20
1
vector subtraction
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 < - 970,940 , 910 ,
.......
--
View this message in context:
2012 Feb 14
4
save output of loop
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){
data = read.table(file_s[i],header=TRUE)
lat = data[,7] # latitude
lon
2012 Feb 23
4
saving all data in r object
I have 100 data files, which contains very huge data sets of location
details ( e.g latitude, longitude, time, temp)
Now I would like to save the all data of these 100 files in r object, so I
can reload data any time.
* Every file has different length of data
latitude <- NULL
longitude <- NULL
time <- NULL
temp <- NULL
for ( i in 1:100) {
data<-
2012 Apr 04
3
spaghetti plots in R
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 0.4071270 0.5579212 0.6844584 0.7684690 0.8243702 0.8677043
0.8931288 0.9261926
[3,] 0.3075260 0.3993699
2012 Feb 17
1
Plotting issue
I have two different datasets
1) is in monthly format (obs)
2) yearly format (model)
in obs I have 84 files ( 2003:2009)for different months & in model I have 4
different files which has yearly data (2005:2008)
So for calculating my requirement I need these both data sets.
The sample calculations are as follows
file_o<-list.files(path=' ', pattern="0.2.text") #
2012 Mar 07
4
add data from .RData file
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 -21.1 -24.9 -24.9 -24.9 ...
..- attr(*, "dimnames")=List of 2
.. ..$ : NULL
..
2012 Feb 02
2
time conversion from second to Y M D H M S format
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, origin="2005-01-01", tz="GMT")
&
time_f <- as.POSIXct(time,
2012 Mar 25
2
avoiding for loops
I have data that looks like this:
> df1
group id
1 red A
2 red B
3 red C
4 blue D
5 blue E
6 blue F
I want a list of the groups containing vectors with the ids. I am
avoiding subset(), as it is
only recommended for interactive use. Here's what I have so far:
df1 <- data.frame(group=c("red", "red", "red", "blue",
2012 Feb 15
0
spplot settings
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,
xlim = bbexpand(bbox(obj)[1, ], 0.04), ylim = bbexpand(bbox(obj)[2, ],
0.04))
in this function I would like to set
2012 Apr 18
1
interpolation issue
This moment I got stuck with one interpolation issue
the sample data which I have is as follows
pre1 <- c(10.34615 , 52.02116, 146.17357, 243.28644, 347.41504, 431.67105,
521.42712, 629.00446 ,729.95941, 827.86279,
921.55078, 956.44446)
pre2 <- c( 983.4477692, 973.6199013, 958.0722141, 938.8194208 ,915.1833983,
852.1671089, 765.0037479,
2012 Feb 21
4
removing particular row from matrix
I have some data set which has some values -999.000 & I would like to remove
whole row of this kind of values.
e.g
a<-matrix(c(1,2,3,4,4,5,6,6,-999.99,5,9,-999.00),nrow=4)
a<-
[,1] [,2] [,3]
[1,] 1 4 -999.99
[2,] 2 5 5.00
[3,] 3 6 9.00
[4,] 4 6 -999.00
expected answer
[,1] [,2] [,3]
[1,] 2 5 5.00
[2,] 3 6 9.00
I
2012 Jan 23
3
conversion of string
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
2012 Mar 28
4
reading files from two folders
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)
path<-c("/Groups/data_second/")
file_wasaux2
2012 Mar 16
2
plotting border over map
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")
seasonal_plot<-function(input,lonll=-180,latll=-90,lonres=5.,latres=3.75,write_file=TRUE,The_title=NULL){
if(is.null(The_title)){