search for: rrasterr

Displaying 18 results from an estimated 18 matches for "rrasterr".

Did you mean: raster
2012 Jan 01
4
matrix position to list of coordinates
How can I extract a list of the positions in the matrix? > A=matrix(1:8, nrow=2,ncol=4) > A [,1] [,2] [,3] [,4] [1,] 1 3 5 7 [2,] 2 4 6 8 Something like this pos.A 1 1 1 2 1 3 1 4 2 1 2 2 2 3 2 4
2011 Dec 14
2
plot matrix of characters
Hi, I am looking for options to plot the following type of matrices: "A" "B" "C" "D" "A" "A" "C" "C" "A" "A" "A" "C" as a image like this: http://www.phaget4.org/R/image002.jpg
2011 Dec 13
4
sum with dates
How do I sum 15 years to my dataset? original dataset dates val 1 2001-01-12 1.2 2 2001-02-12 1.2 3 2001-03-12 1.2 result dates val 1 2016-01-12 1.2 2 2016-02-12 1.2 3 2016-03-12 1.2
2011 Nov 08
3
lapply to list of variables
Hi Can someone help me with this? How can I apply a function to a list of variables. something like this listvar=list("Monday","Tuesday","Wednesday") func=function(x){x[which(x<=10)]=NA} lapply(listvar, func) were Monday=[213,56,345,33,34,678,444] Tuesday=[213,56,345,33,34,678,444] ... in my case I have a neverending list of vectors. Thanks!
2011 Nov 15
3
Create a function with multiple object as an output
I've seen some questions regarding the output of multiple objects from a function, however the suggestions all end up suggesting the use of return(list(result1=result1, result2=result2 , result3=result3)). How can I return multiple objects that are 2 big to be added to a list? -- View this message in context:
2012 Feb 06
3
Logistic Regression
I am looking for R packages that can make a Logistic Regression model with parameter estimation by Maximum Likelihood Estimation. Many thanks for helping out.
2012 Feb 09
1
sample points - sp package
When I make a sample in sp, for example a random samping of 5 points in dataset1: sample.dataset1=spsample(dataset1, n = 5, "random") I have a sp object for the selected sampling... My question is : How can I extract from dataset2 the points & data for the coordinates(sample.dataset1) ? The dataset2 would be an object with the same area and coordinate system, but I would like to
2012 Feb 20
1
Time Series - Trend Line
How can I had a trend line to my plot? My data looks like this: Date=seq(as.Date("1910/1/1"), as.Date("1920/1/1"), "day") Values=runif(length(Date), min=-5, max=5) dataset=data.frame(Values,as.Date(Date)) I just want to add a linear trend line to this plot(dataset,col=rgb(1,0,0,1/8),cex=0.5,pch=19) -- View this message in context:
2012 Apr 10
2
taylor.diagram from plotrix package
Is there a way to access the numeric results (standard deviation and correlation) obtained with the taylor.diagram ? -- View this message in context: http://r.789695.n4.nabble.com/taylor-diagram-from-plotrix-package-tp4545669p4545669.html Sent from the R help mailing list archive at Nabble.com.
2012 Jan 05
3
save output of print() to txt file
I am looking for other option to write the output of the print command in R I am using sink() to write the R output to a file. This is similar to what I have: > a=c(1:30) > a [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 > sink("vectorA.txt");print(a);sink() I am looking for othe roptions to save the output of the print()
2012 Feb 03
3
strftime - Dates from Excel files
Hi I have many excel files were the Date field was not declared as date, so the dates look like this: 1/2/1978 I know that the format is day/month/year How can I make R change this to Date format? If I use strftime, I get wrong dates: dataset=c("1/2/1978") strftime(dataset,"%d/%m/%Y") "19/02/0001" Thanks in advance.
2011 Dec 28
3
transparency using plot+points with sp classes
How can I make one point graphics with transparency These are all sp classes: plot(polygons_area,axes=TRUE,asp=1.5,main="Title",xlab="Latitude", ylab="Longitude") points(observations2000,type = "p",pch=21,col="green") points(observation1999,type = "p",pch=21,col="blue") points(reference.points,type =
2011 Nov 28
5
window manager interface commands for linux
How can i replicate this in Linux: source(file.choose()) I've tried source(tkgetOpenFile()) but with no luck
2011 Jul 29
5
HIRHAM netcdf files
Can someone help me out with a "small" problem? I've started using netcdf files recently, and I want to extract the grid id and also the coordinates from a HIRHAM netcdf file. I know how to extract a slice of dataset both in space and in time and I also know the area that this file should cover, however I have no idea regarding the reference for both LAT/LON and RLAT/RLON. I tried
2012 Jan 18
4
R-Help
I am trying to create a frequency distribution and I am a bit confused. Here are the commands I have entered: > data <- read.csv(file="40609_sortedfinal.csv",head=TRUE,sep=",") > NumberOfActionsByStatus = data$STATUS > NumberOfActionsByUser = data$ETS_LOGIN > NumberOfBidOffer = data$BID_OFFER > NumberOfActionsByUser.freq = table(NumberOfActionsByUser) >
2011 Dec 13
1
sort() function for dates
Thanks people! another question, is there something similar to sort for dates? sort(x, decreasing = FALSE, ...) On Tue, Dec 13, 2011 at 8:34 AM, Jorge I Velez <jorgeivanvelez at gmail.com> wrote: > Hi Ana, > > Check section 4 of?http://www.jstatsoft.org/v40/i03/paper for more > alternatives. > > HTH, > Jorge.- > > > On Mon, Dec 12, 2011 at 9:39 PM, Ana
2012 Jan 26
0
Conditional Random Fields
Are there other packages besides CRF available on R, for Conditional Random Fields ? Thanks in advance.
2012 Feb 07
1
R2WinBUGS error message
Hi! I am new to BUGS and running BUGS from R. I am trying to run a regression model from R, however I have this error message: Error in file(con, "wb") : cannot open the connection In addition: Warning messages: 1: In file.create(to[okay]) : cannot create file 'c:/Program Files/WinBUGS14//System/Rsrc/Registry_Rsave.odc', reason 'Permission denied' 2: In file(con,