Displaying 20 results from an estimated 10000 matches similar to: "Combining two dataframes and specifying tolerance levels"
2009 Aug 27
1
Problem merging two data frames
Hello everyone,
Merging two dataframes should be easy. However when I try to merge, R
doesn't recognize identical values, even if I am doing it by values that
have no decimals.
willclayong:
vs30 LON LAT Net X wills.cat wills.vs30 clahan.cat clahanvs30
PolyID.wills PolyID.clahan tif.cat STA ELEVATION tif.vs30
1 338.539 -3849590 4319319 <NA> 2 D 301
2009 Jul 31
5
Creating a column based on data in another column
hello all,
I have a data frame and I want to create a column which assigns a letter
based upon the value in another column. The data column has velocities
ranging from 0 to 1000. So for example, for velocities between 0 and 300
I'd like to assign the letter "A" in the new column, for 300-600, "B" and so
on and so forth. How would I do this?
Thank you very much!
Mehdi
2009 Jul 16
2
Problems generating image from tiff file
I imported the attached tiff file and converted the coordinate system to
long lat and graphed it:
californiatiff<- readGDAL("california1.tif")
proj4string(californiatiff)
> rasterprojection <- spTransform(californiatiff, CRS("+proj=longlat")
however, when using the plot command for rasterprojection, I get a blob. I
can see the outline of the state of california and
2010 Apr 04
2
One question about saving graph by using xyplot
Hey, folk.
I am trying to get many figures by using the function "xyplot" in the library "lattice". I tried to using the loop to finish it quickly. But I cannot open the saved file after I run the program. But if I use the function "plot" to get other simply figures, it can work. So I want to ask how I can get the saved figures by using "xyplot".
The
2010 May 27
2
clustering in R
i have a matrix with the following dimensions
136 3
and it looks something like
[,1] [,2] [,3]
[1,] 402 675 1.802758
[2,] 402 696 1.938902
[3,] 402 699 1.994253
[4,] 402 945 1.898619
[5,] 424 470 1.812857
[6,] 424 905 1.816345
[7,] 470 905 1.871252
[8,] 504 780 1.958191
[9,] 504 848 1.997111...............
2009 Oct 12
2
add=TRUE function not working
Hey everybody, I have a matrix with three columns.
I want to plot two columns (independent variable) against one column (the
defendant). This is my code and the error associated with it:
plot(p, q, data=columns)
> plot(pprime,q, add=TRUE)
Warning messages:
1: In plot.window(...) : "add" is not a graphical parameter
2: In plot.xy(xy, type, ...) : "add" is not a graphical
2009 May 20
1
combining xYplot with map
I'm using xYplot to create a bubble plot of values that I'd like to
visualize on top of a filled-in map of the coast, but I'm too much of a
lattice (which I understand xYplot is built on) and mapping newbie to
figure out how to begin to make this happen. Below is some sample code
that doesn't work but illustrates my goal. Any pointers anyone has
would be much appreciated.
2008 Oct 29
1
Help with impute.knn
ear all,
This is my first time using this listserv and I am seeking help from the
expert. OK, here is my question, I am trying to use impute.knn function
in impute library and when I tested the sample code, I got the error as
followingt:
Here is the sample code:
library(impute)
data(khanmiss)
khan.expr <- khanmiss[-1, -(1:2)]
## ## First example
## if(exists(".Random.seed"))
2018 May 20
1
How to average values from grid cells with coordinates
Hi lily,
It's not too hard to do it using dataframes. Getting the indexing
right is usually that hardest part:
# these values are the centers of the black cells
lat<-rep(28:38,11)
lon<-rep(98:108,each=11)
pop<-sample(80:200,121)
# just use the data.frame function
blackcells<-data.frame(lat=lat,lon=lon,pop=pop)
plot(0,type="n",xlim=c(97.5,108.5),ylim=c(27.5,38.5),
2012 Nov 18
2
[newbie] convert 3D spatial array to dataframe
summary: how to convert a 3D array (as obtained from ncdf4::ncvar_get)
to a dataframe suitable for use by lattice::levelplot(), e.g.,
levelplot(conc ~ lon * lat | lev, data = data.frame)
details:
I have atmospheric data in netCDF files specifying gas concentrations
over a 3D space with dimensions longitude, latitude, and (vertical)
level. I need to plot the data by level. Since there are
2009 Jan 22
1
convergence problem gamm / lme
Hope one of you could help with the following question/problem:
We would like to explain the spatial
distribution of juvenile fish. We have 2135 records, from 75 vessels
(code_tripnr) and 7 to 39 observations for each vessel, hence the random effect
for code_tripnr. The offset (‘offsetter’) accounts for the haul duration and
sub sampling factor. There are no extreme outliers in lat/lon. The model
2013 Nov 22
1
Appending Excel File Data in different folders into Single Dataframe
Hi all
I have about 10 folders in my directory i.e Folder 1 – Folder 10. Each
Folder has a single excel file containing data with the following
attributes “State”,”lat”,”lon”, “address” i.e
State Lat Lon Address
Anchorage 45.87576 -12.567 Starbucks, Van dyke road, 33456,
USA
I would like to write a script in R that
2018 May 22
0
How to average values from grid cells with coordinates
Hi Jim,
Thanks. It works. I now have more complex problems. If at each blackcell,
there are two variables such as pop and mood. For each variable, there are
daily records in one year, so 365 records for pop and 365 records for mood.
The averaged values for the redcells should be daily records too. What kind
of format do you recommend for this problem? Right now, I just get the
latitudes and
2008 Jul 07
3
rsh problems in CentOS 5.2 (was "cvs command failure on 5.2")
Okay, I've narrowed the problem down quite a bit. As previously
reported, in CentOS 5.2 I get this:
$ cvs log Makefile
poll: protocol failure in circuit setup
cvs [log aborted]: end of file from server (consult above messages if any)
Turns out this is a problem with rsh:
$ rsh khan ls
connect to address 10.24.15.48 port 544: Connection refused
Trying krb4 rsh...
connect to address
2014 Oct 15
2
[LLVMdev] using -debug-ir to map identify IR mapping
Adding the flags in an opt pass seems to do the trick. I added the flags as follows
M.addModuleFlag(llvm::Module::Warning, "Dwarf Version", 3);
M.addModuleFlag(llvm::Module::Error, "Debug Info Version",
llvm::DEBUG_METADATA_VERSION);
llvm-dwarfdump and addr2line now point at a line in .ll files, not the source files.
Thanks!
/Muneeb
On 15 Oct
2014 Oct 15
2
[LLVMdev] using -debug-ir to map identify IR mapping
On Wed, Oct 15, 2014 at 9:04 AM, Adrian Prantl <aprantl at apple.com> wrote:
> I have no experience with debug-ir, but is it possible that the debug-ir
> pass never sets the debug info version? There should be a named metadata
> node
> !llvm.module.flags = !{..., !123}
> !123 = metadata !{i32 1, metadata !"Debug Info Version", i32 2}
> in the .ll output. If
2013 Feb 12
3
reorganize data
Hi R users,
Wonder if somebody could give me help on how to reshape this type of data:
-----------------------------------------------------------------------------------------------------------------------
Date:10.09.19 Time:21:39:05 Lat:N62.37.18 Long:E018.07.32
0000-0010 | 28| 28
0010-0020| 302| 302
0020-0030| 42| 42
0030-0040| 2| 2
0040-0050| 1| 1
0060-0070| 1| 1
2014 Oct 15
2
[LLVMdev] using -debug-ir to map identify IR mapping
Yes, I am using opt and llc from the same version (3.5).
I know that there were issues with debug-ir in 3.4. I have explored the source tree myself for 3.5 and I know that the pass -debug-ir does kick in with opt.
But I have no clue of what happens with the debug information in (and after) the llc pass.
/Muneeb
On 15 Oct 2014, at 17:14, David Blaikie <dblaikie at gmail.com> wrote:
>
2014 Jul 01
1
combining data from multiple read.delim() invocations.
Is there a better way to do the following? I have data in a number of tab
delimited files. I am using read.delim() to read them, in a loop. I am
invoking my code on Linux Fedora 20, from the BASH command line, using
Rscript. The code I'm using looks like:
arguments <- commandArgs(trailingOnly=TRUE);
# initialize the capped_data data.frame
capped_data <- data.frame(lpar="NULL",
2010 Jul 25
2
3d topographic map
Hi All-
I would like to create a 3d topographic map using lat/lon and
z(height). I have been scouring the R help pages and have not located
the package I am looking for. Does anyone have a suggestion of package
that will work for this?
thanks-
sherri