similar to: Drop non-integers

Displaying 20 results from an estimated 700 matches similar to: "Drop non-integers"

2010 Mar 12
5
Vertical subtraction in dataframes
Hello all, I have not been able to find an answer to this problem. I feel like it might be so simple though that it might not get a response. Suppose I have a dataframe like the one I have copied below (minus the 'calib' column). I wish to create a column like calib where I am subtracting the 'Count' when 'stain' is 'none' from all other 'Count' data for
2009 Nov 10
3
Dates plotting backwards
Hello, I am having a little trouble formatting my dates correctly. When I plot something using the following commands, R plots the most recent date on the left of the figure and then earlier date on the right of the figure. Given that English is read from left to right I would like to have the dates on my figure arranged in the same way. I am sure that this is something fairly simple but I was
2010 Apr 03
2
Using ifelse and grep
Good Morning, I am trying to create a new column of character strings based on the first two letters in a string in another column. I believe that I need to use some combination of ifelse and grep but I am not totally sure how to combine them. I am not totally sure why the command below isn't working. Obviously it isn't finding anything that matches my criteria but I am not sure why. Any
2010 Jul 22
3
Hydrology plots in R
Hello, I am trying to create a plot often seen in hydrodynamic work than includes a contour plot representing the water speed with arrows pointing in the direction of flow. Does anyone have any idea how I might add arrows based on wf$angle (in the example below) to the plot below? Thanks in advance! Sam library(lattice) speed <- runif(100, 0, 20) wf <- data.frame(speed) wf$width <-
2010 Jun 22
1
k-sample Kolmogorov-Smirnov test?
Hello, I am curious if anyone has had any success with finding a R version of a k-sample Kolmogorov-Smirnov test. Most of the references that I have able to find on this are fairly old and I am wondering if this type of analysis has fallen out of favour. If so, how do people tend to compare distributions when they have more than two? Is it reasonable to pursue an adjusted p-value method. That is,
2010 Apr 02
1
Selecting the first row based on a factor
Hello there, I have a situation where I would like to select the first row of a particular factor for a data frame (data example below). So that is, I would like to select the first entry when the factor1 =A and then the first row when factor1=B etc. I have thousands of entries so I need some general way of doing this. I have a minimal example that should illustrate what I am trying to do. I am
2009 Nov 13
2
linear model and by()
Hello R list, This is a question for anyone who has used the by() command. I would like to perform a regression on a data frame by several factors. Using by() I think that I have able to perform this using the following: > lm.r <- by(master, list(Sectionf=Sectionf, startd=startd), function(x) lm (tot.c ~ starttime, data = x)) So that is, I would like to perform separate regressions for
2010 Feb 20
3
Error Bars in lattice- barcharts
Hello, I am attempting to write a script that adds error bars to a barchart. I basing my attempt heavily on the following thread: http://tolstoy.newcastle.edu.au/R/e2/help/06/10/2791.html I can't seem to get around the problem that was discussed in the thread. The following example should illustrate my problem. Sorry about the messy example but I am 1) trying to make it as close as possible
2010 Apr 24
0
Assumptions on Non-Standard F ratios
Hello there, I am trying to run an ANOVA model using a non-Standard F ratio. Imagine that the treatments (treatments 1 & 2) are applied to the row not to individual samples. Thus the row is the experimental unit. Therefore my error term in my ANOVA table should be the error associated with with row. The question is how do I check the assumptions of an ANOVA model when I have a non-standard F
2011 Feb 11
0
Summarizing a response variable based on an irregular time period
Hello, I have a question about working with dates in R. I would like to summarize a response variable based on a designated and irregular time period. The purpose of this is to compare the summarized values (which were sampled daily) to another variable that was sampled less frequently. Below is a trivial example where I would like to summarize the response variable dat$x such that I have average
2010 Oct 08
2
R: Why this deosn't work?, matrix, rounding error?
Hello Why this works: ncota <- 1 nslope <- 29 resul <- matrix(rep(0,ncota*nslope*4),ncota*nslope,4) But this doesn't? ncota <- 1 sini <- 0.1; sfin <- 1.5; spaso <- 0.05; nslope <- 1+((sfin-sini)/spaso) resul <- matrix(rep(0,ncota*nslope*4),ncota*nslope,4) I guess the problem is that the division gives a noninteger number. How can I get the second one work? I
2008 Aug 04
2
thematic map of USA
My goal is to prepare a thematic map of the US, with states shaded according to their values for a variable of interest. I would like to include an inset for Alaska in the upper left and an inset for Hawaii in the lower left. If possible, I'd like to use Albers conic projection, or something similar. Thus far I have tried using the maps package with its state database (which omits
2004 May 06
7
sip traffic.
I can not register via sip to iptel or sipgate and do not see sip into ethereal. I do not unterstand why thats Wudu .. but i am new to asterisk and sip. I am behind a susefirewall2 but asterisk even do not register if it is down. The asterisk is running onto the machine witch is connected to the internet. No answer seems coming back from iptel (sip debug in asterisk). Ports are open (5060,
2006 Feb 09
1
converting lat-long coordinates to Albers Conical Equal Area coordinates
#################################################################################### We have used maptools to construct state, county, township, census-tract, and zipcode level R maps with an Albers Conical Equal Area projection. We would like to be able to plot the location of weather stations or other point locations on the maps. The data the point locations are in latitude-longitude units
2006 Mar 28
2
R crashes during 'eigen'
Hi all, Hi, When I want to compute the eigenvalues & eigenvectors of a specific matrix, R crashes (i.e. it stops responding to any input). I've tried it with different versions of R (2.1.1, 2.2.0, 2.2.1) - all with crashing as result. What I did before the crash was: M <- as.matrix(read.table("thematrix",header=T)) eigen(M) If, instead of eigen(M), I use eigen(M,
2020 Apr 17
2
Re: Attaching DVD-writer
I’ve tried that post .. but either I get a new scsi passthrough controller in device manager, but no dvd or the boot in windows hangs Either that method won’t work anymore or my config is bad .. im not really sure what to put in controller, target, bus and unit .. Skickat från min iPad > 17 apr. 2020 kl. 08:38 skrev Tony Brian Albers <tba@kb.dk>: > > Hi Andreas, > >
2004 Mar 04
4
Accurate area map projections
Hi, Could any one point me to the projection, and parameters if necessary, that would show each country/continent with it's area accurately refelcted on the plot? E.g. aitoff vs. albers vs. bonne vs. cylequalearea vs. guyou - they don't all look the same to mee but some of the documentations suggests they are equal area? Of course this isn't my field, so I am largely guessing and am
2003 Aug 01
1
behavior of weights in nnet's multinom()
I see that "case weights" can be optioned in multinom(). I wanted to make sure I understand what weights= is expecting. My weights (not really mine but I'm stuck with them) are noninteger, are not scaled to sum to the sample size, and larger weights are intended to increase influence. The description of various types of weights is a perennial confusion for me; sorry. STS
2008 Aug 15
1
map("state" ...) Is the USA cracking up?
Running R version 2.6.1 under Linux, I'm trying to use the maps and mapdata packages and the state database to produce a thematic map of the USA. My problem is that cracks (white spaces) appear between some states--e.g. between Colorado and Utah and between Michigan and Indiana. The resulting visual impression is that the country is breaking up. This occurs in all the projections I have
2012 Feb 07
2
units for mapproject() function result
Does anyone know what the units are for projected coordinates obtained using mapproj's mapproject function with an Albers projection? Thanks for any and all help! Buck Stockhausen *************************************************** * Dr. William T. Stockhausen * *************************************************** * Resource Ecology and Fisheries Management * *