similar to: Creating a column based on data in another column

Displaying 20 results from an estimated 30000 matches similar to: "Creating a column based on data in another column"

2009 Jul 29
1
Combining two dataframes and specifying tolerance levels
Hello everyone, I have two data frames. One is a vector about 780 rows long consisting of lat long data of 780 station locations. The other table was previously a shape file which I have converted into a data frame object of lat long coordinates and attribute data. What I want to do is combine the two--assigning attribute data to each station. The problem is, however, that those station
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 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 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
2009 Jun 16
2
Statistically detecting thresholds...
Rers: I have some ecological data (stream velocity vs. % cover of submerged weeds) that shows strong evidence of a thresholding step-function, e.g. below some velocity, % cover ranges from 0% to 100% (with no apparent relationship to velocity within this range of velocities), but above a certain "threshold" velocity, the % cover does not appear to exceed, say, 10%. There are good
2009 Jul 21
2
Searching for specific values in a matrix
Hello all, I have a seemingly simple question which I have searched for an answer for for a few hours without luck. I have a matrix of both values and characters with thousands of rows. I would like to run a search of this matrix for certain values and would like the search to retrieve the entire row. How would I accomplish this? Thanks! Mehdi Khan [[alternative HTML version deleted]]
2009 Aug 24
1
Unique command not deleting all duplicate rows
Hello everyone, when I run the "unique" command on my data frame, it deletes the majority of duplicate rows, but not all of them. Here is a sample of my data. How do I get it to delete all the rows? 6 -115.38 32.894 195 162.94 D 8419 D 7 -115.432 32.864 115 208.91 D 8419 D 8 -115.447 32.773 1170 264.57 D 8419 D 9 -115.447 32.773 1170 264.57 D 8419 D 10 -115.447 32.773 1170
2010 Jul 21
0
Converting Between Character and Numeric Objects
Hello, I'm trying to convert a vector of string objects to a numeric object by initializing the variables with values. I use the function below to scan through a matrix and create mass action flux relationships: makeMassActionFluxes = function(sMatrix) { #Allocate a matrix with identical dimensions as the inputted stoichiometric matrix temp = matrix(nrow = dim(sMatrix)[1], ncol =
2006 Jan 02
0
boostrap astronomy problem
Hi, I am an astronomer and somewhat new to boostrap statistics. I understand the basic idea of bootstrap resampling, but am uncertain if it would be useful in my case or not. My problem consists of maximizing a likelihood function based on the velocities of a number of stars. My assumed distribution of velocities of these stars is:
2009 Jun 17
2
Difference beetwen element in the same column
Hi, i have this file pressure,k,eps,zeta,f,velocity:0,velocity:1,velocity:2,vtkValidPointMask,Point Coordinates:0,Point Coordinates:1,Point Coordinates:2,vtkOriginalIndices 0.150545,0.000575811,0.0231277,0.000339049,-0.0193008,0.00318629,-6.24066e-07,5.39599e-05,^A,7,0,0,0 0.150546,0.000782719,0.0226157,0.000497957,-0.0192084,0.00367781,5.09813e-06,5.90689e-05,^A,7,0.0003035,0.000225,1
2007 Dec 06
0
coxme() random effect syntax
Hello: I would like to run a Cox proportional hazards regression on crayfish dislodgement at different water velocities by crayfish size class and substrate (rock) type. Additionally, there is a covariate variable, rock movement that may be influencing crayfish dislodgment. So... I have crayfish size class (CFSZCL) and substrate type (SUBSZ) as fixed factors influencing the dislodgment of
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"))
1999 Dec 08
1
Connecting to [homes] ... yes, another password question
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, First, I have to commend O'Reilly for publishing their excellent book on line. After reading through Chapter 7 yesterday, I was finally able to get Samba up and running on my NT domain using encrypted passwords and domain security. Naturally, something broke yesterday around the time wins was set. In earlier versions of smb.conf, I
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
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: >
2010 Sep 15
3
Skip Busy Agents/Channels from Queue
Is there a way skip / ignore the member whose status is busy in the Queue. I have two channel member in queue and i have set the peer limit 2 for these members. I want to skip those member who are currently on the call (answered to calls) and now their status is busy, if Queue see the busy status caller will not enter in the Queue and go to the next priority. [test-queue] strategy = rrmemory
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
2009 Jan 10
3
Asterisk/GXW410x IP Analog Gateway
Hello All, I am trying to setup a small system where Nextone Softswitch will send traffic to Asterisk and then terminate on Grandstream GXW410x IP Analog Gateway but for some odd reasons the call are flashed back from Grandstream to Asterisk and creating a Black loop... I did follow the instructions provided by Grandstream support but it doesn't seems to be working...
2006 Apr 04
1
Calling a method in another controller
Hi, I have three controllers. I have defined two controllers to goven the site functions. However I want to have a homepage Controller. Part of the controller will call methods from other controllers. For example it will get the last 5 blog posts and it will get the top 5 most discussed articles, and display it on the homepage. I will also have some specific homepage modules being