Displaying 20 results from an estimated 3000 matches similar to: "Could not find function "pointsToRaster""
2016 Apr 30
0
Could not find function "pointsToRaster"
Hi,
A terrific resource for this type of issue (and pretty much anything related to R) is http://rseek.org/ I'm sure I use it at least daily. Check out ...
http://rseek.org/?q=pointsToRaster
The first hit is about pointsToRaster() - it has been replaced by raster::rasterize()
Cheers,
Ben
> On Apr 30, 2016, at 4:28 AM, Ogbos Okike <giftedlife2014 at gmail.com> wrote:
>
>
2009 Aug 27
2
Installing R Packages on ubuntus
Hello,
Please I am a learner. My operating system is ubuntus and I am trying to
install raster package from R-forge site. I entered sudo apt-get install
r-base-dev on the command line and that worked fine. I then typed R at the
command line so as to run R. Inside R, I typed >
install.packages("raster",repos="http://R-Forge.R-project.org<http://r-forge.r-project.org/>")
2018 Jan 22
2
Manipulating two large dataset differing by date and time
Dear Members,
Compliments of the Season!!
Below is a part of a code I use for Fourier analysis of signals. The code
handles data with the format 05 01 01 8628 (year, month, day and count)
05 01 02 8589 (year, month, day and count)
The sample data is attached as 2005daily.txt.
I would like to adapt the code to handle data of the form:
05 01 01 00 4009
2017 Sep 06
1
rgdal error when trying to import raster
Indeed, Ben, but the question was something more like it is not a Dependency, just Suggested, so why the error...
John:
If you read the Introduction to the 'raster' package vignette, it indicates that some input formats are supported within the raster package and some rely on other packages. Clearly the attempt to read a TIFF was an example of the latter. Had you used a different input
2017 Sep 06
2
rgdal error when trying to import raster
Dear useRs,
I am trying to import a raster with the line:
nlcd <- raster("/home/jpolo/NRI/nlcd_nri5000.tif")
And I keep getting an error like this:
"Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE,
logical.return = TRUE,? :
? there is no package called 'rgdal'
Error in .rasterObjectFromFile(x, band = band, objecttype =
2017 Sep 06
0
rgdal error when trying to import raster
Hi,
The message "there is no package called 'rgdal'" means that you don't have rgdal installed.
https://cran.r-project.org/web/packages/rgdal/index.html
Also, you will get very good patial-centric help if you subscribed to r-sig-geo here
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Cheers,
Ben
> On Sep 6, 2017, at 2:52 PM, john polo <jpolo at mail.usf.edu>
2018 Jan 22
0
Manipulating two large dataset differing by date and time
Hi Ogbos,
You can just use ISOdate. If you pass more values, it will process them:
ISOdate(2018,01,22)
[1] "2018-01-22 12:00:00 GMT"
> ISOdate(2018,01,22,18,17)
[1] "2018-01-22 18:17:00 GMT"
Add something like:
if(is.null(data$hour),data$hour<-12
then pass data$hour as it will default to the same value as if you
hadn't passed it.
Jim
On Mon, Jan 22, 2018 at 6:01
2018 Mar 28
0
netCDF to GeoTIFF by layer in r
Hi Ahmed,
When reading from a ncdf file you can use the 'varname', 'lvar' and 'level' arguments - see the 'Details' section in the docs
https://www.rdocumentation.org/packages/raster/versions/2.6-7/topics/raster <https://www.rdocumentation.org/packages/raster/versions/2.6-7/topics/raster>
We can't tell what is in the ncdf file from what you report other
2016 Apr 18
1
as.Date
Dear ALL,
Thank you so much for your contributions.
I have made some progress. Below is a simple script I gleaned from
your kind responses:
Sys.setenv(TZ="Etc/GMT")
dates <- c("02/27/92", "02/27/92", "01/14/92", "02/28/92", "02/01/92")
times <- c("23:0:0", "22:0:0", "01:00:00", "18:0:0",
2016 Apr 22
2
clock24.plot/radial plot
Kind Experts,
Many thanks for your guide. I have tried to figure out something that
can help me plot my own data using the examples you referred me to. I
copied part of the code as:
set.seed(44)
N=500
events <- as.POSIXct("2011-01-01", tz="GMT") +
days(floor(365*runif(N))) +
hours(floor(24*rnorm(N))) + # using rnorm here
2010 Oct 05
2
New version
Hello,
The R version on my system is R version 2.8.1 (2008-12-22). I have
previously installed all the desired packages for my work - and they have
been working fine. However, somebody played with my system and removed
almost all the stuff. I am installing the packages again.
But I am finding some packages (such as, sp, rgdal, raster, etc) hard to
install. Some of the error messages indicate
2016 Apr 18
4
as.Date
Dear All,
I have a data set containing year, month, day and counts as shown below:
data <- read.table("data.txt", col.names = c("year", "month", "day", "counts"))
Using the formula below, I converted the data to as date and plotted.
new.century <- data$year < 70
data$year <- ifelse(new.century, data$year + 2000, data$year + 1900)
2010 Oct 07
1
X11 is not available
Dear All,
I have just installed a new version of R (Version R-2.11.0) and did install
other packages such as raster with ease. However, I could not start the
plotting device x11(). I remembered that somewhere at the stage of
installation, an error occurred : 'configure: error: --with-x=yes (default)
and X11 headers/libs are not available'
I tried avoiding this error by using ./configure
2010 Oct 14
1
spatial partition
Hi everybody,
I have a huge longitude and latitude data. I have used raster package to
get the since of its global distribution. But I wish to display the
information using a few points on the world map.
The data is of the form:
95.2156 0.8312
-65.3236 -3.3851
-65.2364 -3.2696
-65.2349 -3.2679
164.7025 -17.6404
148.8214 -4.8285
-67.6568 2.6477
-73.4833 -0.2350
40.9587 -16.8655
-61.6474 8.1179
2010 Nov 29
1
map() and pdf clipping
Hello,
Below is a function (test.map) that permits drawing the same map using
three different devices. The "pdf" device doesn't clip polygons to
the plot region as I see it does by both the native device (in my case
"Quartz") and the "png" device.
test.map("pdf") # produces "test-map.pdf" with no clipping
test.map("png") #
2016 Apr 21
2
clock24.plot/radial plot
Dear All,
I am trying to generate a circular/radial plot. The script below has a
result I am looking for:
testlen<-rnorm(24)*2+5
testpos<-0:23+rnorm(24)/4
clock24.plot(testlen,testpos,main="Test Clock24 (lines)",show.grid=FALSE,
line.col="green",lwd=3)
if(dev.interactive()) par(ask=TRUE)
# now do a 'daylight' plot
2016 Apr 22
0
clock24.plot/radial plot
Looks like you forgot to load the lubridate package
library(lubridate)
You are calling functions days(), hours(), minutes(), seconds(), and hour() which all come from that package.
-------------------------------------
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77840-4352
-----Original Message-----
From: R-help [mailto:r-help-bounces at
2016 Apr 21
1
Mailing List
Dear All,
I am using R to do my work and thank you very much for developing,
maintaining and making such excellent software available to anyone
that is interested enough to ask for it.
I have registered at Nabble. I was wondering the right forum for me
to send my help request. I have tried sending to R-help at r-project.org.
However, I do receive a kind of warning email stating that my email
2024 Mar 29
2
Output of tapply function as data frame: Problem Fixed
Dear Rui,
Thanks again for resolving this. I have already started using the version
that works for me.
But to clarify the second part, please let me paste the what I did and the
error message:
> set.seed(2024)
> data <- data.frame(
+ Date = sample(seq(Sys.Date() - 5, Sys.Date(), by = "1 days"), 100L,
+ TRUE),
+ count = sample(10L, 100L, TRUE)
+ )
>
> # coerce
2018 Mar 28
2
Fwd: netCDF to GeoTIFF by layer in r
Hi
I have a netCDF file of volumetric soil water content at four
different soil layers and want to convert each soil layer in the
netCDF file to a GeoTIFF layer. This code converts the netCDF file to
one GeoTIFF layer, i.e. unclear which soil depth.
file.nc <- "C:/Soil_Weather_data/Agro/VMC21/VMC21.nc"
file.tiff <- "C:/Soil_Weather_data/Agro /VMC21/VMC21"
importnetcdf