similar to: loading only parts of RData files?

Displaying 20 results from an estimated 7000 matches similar to: "loading only parts of RData files?"

2011 Jan 12
2
RNetCDF: retrieving variable names and units
Dear List, does anybody has experience with the RNetCDF package? I manage to open a connection and copy data from a ncdf file but would need a way to automatically retrieve variable names (ideally all of them from one file) and units from the file. Any ideas? Jannis
2012 Dec 05
1
catching errors in RNetCDF
Dear R community, I quite frequently run into errors while using the RNetCDF package which do not seem to be recognised as normal R errors and, hence, do not stop the execution of the code making it hard to debug the code. Consider, for example: library(RNetCDF) con <- create.nc('test.nc') test <- try(var.get.nc(con, 'dummy')) In this case, some sort of error message
2006 Mar 08
1
problem installing RNetCDF
Hello all, I set 'UDUNITS_PATH' and 'NETCDF_PATH' successfully to my custom places and then % R CMD INSTALL RNetCDF_1.1-3.tar.gz and got this: ... checking for executable suffix... checking for object suffix... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for main in -lnetcdf... yes checking for main in -ludunits...
2011 Sep 05
1
Receive "unable to load shared object RNetCDF.o" during R INSTALL of RNetCDF
On a Red Hat Linux cluster I am seeing the following after multiple other packages were successfully installed. The error seems to suggest that RNetCDF.o was not copied to the appropriate lib folder. The admin user performing the install has the required privileges to perform the install. Words of wisdom are greatly appreciated: R CMD INSTALL
2009 Apr 21
1
ncdf,RNetCDF
Friends, Someone please share your experience in installing ncdf and RNetCDF in fedora10. I am not able make it work as it throws me the following error. My R version is 2.8.0. > library(ncdf) unable to load shared library '/usr/lib/R/library/ncdf/libs/ncdf.so': /usr/lib/R/library/ncdf/libs/ncdf.so: cannot restore segment prot after reloc: Permission denied Error in library(ncdf)
2011 Jul 14
1
Error: "non-numeric argument to binary operator"
Hi I am posting in the topic related to the "non-numeric argument to binary operator" as I got similar problem while running the netcdf code. I have attached the file with this post. It is a climate data from NOAA site. The code follows as: library(survival) library(RNetCDF) library(ncdf) setwd("c:/projects/netcdfcsfiles") Conn42 =
2011 Jul 11
3
NetCDF, open *.nc
*Good day!* I'm using Vista(x64) and R 2.13.0(x64) (with ncdf and RnetCDF packs) *I have a problem:* I'm trying to open **.nc* file and I use this script (http://r.789695.n4.nabble.com/Problem-downloading-and-opening-netcdf-file-td3046897.html#a3046965) library(ncdf) link <- "http://ibis.grdl.noaa.gov/SAT/SeaLevelRise/slr/slr_sla_gbl_free_all_66.nc" dest <-
2011 Aug 01
3
General indexing in multidimensional arrays
Dear R community, I have a general question regarding indexing in multidiemensional arrays. Imagine I have a three dimensional array and I only want to extract on vector along a single dimension from it: data <- array(rnorm(64),dim=c(4,4,4)) result <- data[1,1,] If I want to extract more than one of these vectors, it would now really help me to supply a logical matrix of the
2005 Apr 27
1
ncdf with opendap/dods support
Aloha, I just made some quick hacks on the configure script with the 'ncdf' package to make it link with the opendap/dods libraries (opendap.org) rather than the netcdf api library. Basically, this allows a user to interact in R with a remotely served dataset as if it were a netcdf file on the local filesystem (read-only). Functionality with local files should continue to work as
2011 May 04
1
Problems saving ff objects
Dear list, I am trying to understand and use the ff package. As I had some problems saving some ff objects, and as I did not fully manage to understand the whole concept of *.ff, *.ffData and *.RData with the help of the documentation, I tried to reproduce the examples from the help of ffsave. When I ran, however : (copied from the help) message("let's create some ff objects")
2009 Apr 22
2
Exporting objects plotted with plot3d() - rgl package
Dear all, Can anybody tell me how to export a 3d figure made with the plot3d function? I'm careless about whether it's still interactive or not in another format, as long I can get it out of R. Thanks! Alejandro Gonz?lez Departamento de Biodiversidad y Conservaci?n Real Jard?n Bot?nico Consejo Superior de Investigaciones Cient?ficas Claudio Moyano, 1 28014 Madrid, Spain Tel +0034
2010 Dec 16
5
test whether all elements of a vector are identical
Dear list, this might be an easy one, but I could figure out a solution (or how to google the right term). Is there any way to test whether all elements of a vector are identical? For numeric vectors I would use sum(diff(vector)==0)==0 but I have character vectors. Any Ideas? Cheers Jannis
2013 Apr 27
1
Loading of package RNetCDF fails
Dear Pavel Michna [maintainer of the package] (and copy to R-help Mailing List) When I try to load the package RNetCDF (after install from CRAN) I get this message: > library("RNetCDF", lib.loc="/Library/Frameworks/R.framework/Versions/3.0/Resources/library") Error : .onLoad a ?chou? dans loadNamespace() pour 'RNetCDF', d?tails : appel : NULL erreur : I/O error
2005 Sep 01
1
controlling where *.Rout gets printed. Possible?
OK, my journey to make lab machines automagically install & update all desirable R packages is nearing an end! The only question I have now is this: How can I control where the system prints the *.Rout file that is created automatically when the R batch program runs. In "man R" I don't find any information about it. When the cron job runs "R_installAll.sh" (see
2009 Apr 23
1
problem loading ncdf library on MAC
Hi there, I'm more or less new to R and have just installed R on my MAC laptop. I managed to install everything easily enough (R version 2.9) and a few packages, but when I try to load the ncdf package (in R) I get the following error: library(ncdf) Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared library
2012 Apr 03
4
R+netcdf, resultados de WRF
Saludos estimados usuarios ! Estoy recién iniciándome en R y no he encontrado ejemplos de cómo graficar los archivos netcdf que genera el modelo meterológico WRF. ¿Alguien tiene por ahí algunos scripts que me permitan ir interiorizándome en el uso de paletas de colores, mapas y graficas de variables de este modelo? Anteriormente lo hacía vía GrADS, convirtiendo el NetCDf a GRIB, pero con las
2011 Jan 20
2
Procuct of a sequence or vector
Dear list, is there a function in R that returns the product of a vector? E.g. if the vector is c(1,2,3,4) it should return 1*2*3*4=24 Cheers Jannis
2011 Oct 05
3
help with regexp
Dear list memebers, I am stuck with using regular expressions. Imagine I have a vector of character strings like: test <- c('filename_1_def.pdf', 'filename_2_abc.pdf') How could I use regexpressions to extract only the 'def'/'abc' parts of these strings? Some try from my side yielded no results: testresults <-
2013 Apr 08
4
checkUsage from codetools shows errors when function uses functions from loaded packages
Dear list members, I frequently program small scripts and wrap them into functions to be able to check them with checkUsage. In case these functions (loaded via source or copy pasted to the R console) use functions from other packages, I get this error: no visible global function definition for ?xxxxxxx? For example: test = function() { require(plotrix) color.legend() }
2012 Jun 15
2
time zones and the chron to POSIXct conversion
Hey R folks, i found some strange (to me) behaviour with chron to POSIXct conversion. The two lines of code result in two different results, on ewith the correct time zone, one without: library(chron) as.POSIXct(chron('12/12/2000'), tz = 'UTC') as.POSIXlt(chron('12/12/2000'), tz = 'UTC') Only the code below would give me a POSIXct object with the correct time