similar to: Problem with if statement

Displaying 20 results from an estimated 500 matches similar to: "Problem with if statement"

2011 Jan 06
1
Help spruce up a ggplot graph
Given the data structure below and the call to ggplot2, how can I increase the size of the axis scale points, the line weight, and the size of the legend? ddata <-structure(list(year = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L), .Label = c("2003", "2007"), class = "factor"), area = structure(c(7L, 6L, 1L, 2L, 3L, 4L, 5L, 7L, 6L, 1L,
2011 Jun 29
1
update.packages fail
update.packages has suddenly stopped working for me (after working fine yesterday). My default mirror is at Oregon State University, but I get the following warning even after setting another mirror. Other Internet connections are working on my computer. Suggestions, please. > update.packages() Warning: unable to access index for repository
2006 Aug 19
9
SSH scans vs connection ratelimiting
Gang, For months now, we're all seeing repeated bruteforce attempts on SSH. I've configured my pf install to ratelimit TCP connections to port 22 and to automatically add IP-addresses that connect too fast to a table that's filtered: table <lamers> { } block quick from <lamers> to any pass in quick on $ext_if inet proto tcp from any to ($ext_if) port 22 modulate
2010 Nov 23
2
Help with grouped barplot
Given the data structure below, how can I create a bar plot for the values of disc for each area grouped by year? bar <-structure(list(year = c(2003, 2003, 2003, 2003, 2003, 2003, 2003, 2007, 2007, 2007, 2007, 2007, 2007, 2007), area = structure(c(6L, 4L, 1L, 2L, 3L, 5L, 7L, 6L, 4L, 1L, 2L, 3L, 5L, 7L), .Label = c("AK", "ID", "MT", "NW",
2009 May 27
2
Factor level with no cases shows up in a plot
Consider this data structure (df1) ... Group Year PctProf FullYr 1 Never RF 2004 87 88 2 Cohort 1 2004 83 84 3 Cohort 2 2004 84 86 4 Cohort 3 2004 87 87 5 Cohort 4 2004 73 74 6 Never RF 2005 85 86 7 Cohort 1 2005 81 82 8 Cohort 2 2005 81 81 9 Cohort 3 2005 78 79 10 Cohort 4 2005 72 74 11
2008 May 13
1
Bubble plot pie chart map
Hello, I am currently trying to show the abundance of two species of zooplankton within the North Sea as pie chart bubble plots. I followed Werner Wernersen's advice in R help (http://finzi.psych.upenn.edu/R/Rhelp02a/archive/48644.html) and used Paul Murrell's paper "Integrating Grid Graphics Output with Base Graphics Output" (in R News) to try and do this (using the gridBase
2009 Jan 07
2
New York Times Article: Data Analysts Captivated by R's Power
Readers of this list might be interested in the following article in the New York Times and might find amusing the notion that "Some people familiar with R describe it as a supercharged version of Microsoft's Excel spreadsheet software...". http://www.nytimes.com/2009/01/07/technology/business-computing/07progra m.html?_r=1&ref=technology Art
2006 Feb 15
1
Rails on Apache
Hi all, I''m trying to get rails to run under apache and have looked at the various how-to pages, but don''t seem to see an answer to my basic question: Can I do this without using mod-rewrite? Do I have to use .htaccess with various rewrite rules, or can I just do it with a really minimal .htaccess that only says something about the AddHandler for .cgi? -- cheers, Bruce
2003 Jun 18
3
finding contours in a matrix
Hi, I have matrix of sea bottom depths that I am plotting in R with the function 'image'. I am particularly interested in the 200m depth contour (I'm using 'distance from this feature' as a covariate in a model) and would like to extract the data at evenly spaced points along it. I can easily superimpose a line at 200m using the function 'contour'. What I want to
2014 Jul 09
1
DFS queries via rpcclient to Windows 2012 Server fails
Hello, We previously had Win2008 R2 DCs which we have begun to replace with Win2012 servers (forest is still at 2008 level however). I was able to query DFS via rpcclient but now I find that I am unable to. I know that SMB3 was introduced in Win2012 but I believe that it should auto-negotiate earlier versions. I did however test from v4.1.9 as well, unfortunately that still fails. From Samba3
2013 Jan 11
3
looking for R packages that can do the following:
1. Minimum Mean Square Estimation (for Multi-Dimensional Linear Regression) 2. Two-Sample Kolmogorov-Smirnov Tests 3. Empirical ANOVA Methods All this to be done on empirical data. I am new to the R world, any help would be appreciated. Thank You, Bill Gilliland Lead Sensor Systems Engineer E303, Tactical Communications, Transport, and Sensors Group: Tactical
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]]
2003 Aug 14
2
nls confidence intervals
Hi, Does anyone know how to compute the confidence prediction intervals for a nonlinear least squares models (nls)? I was trying to use the function 'predict' as I usually do for other models fitting (glm, lm, gams...), but it seems that se.fit, and interval computation is not implemented for the nls... Cheers Enrique ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fisheries Research Services, Marine
2011 Jul 29
2
Changing font type within y axis labels
I wish place the following axis label in such a manner that some of the text is plain and the scientific name is in italics (i.e. a mixture of two font types) Using plot: mtext("Total Landings of Pecten maximus (tonnes)",font,=3, side=2, line=3) makes everything italic, but how do I apply the font change to only "Pecten maximus"? Rgds Phil
2009 Apr 07
2
heatmap.2 no reordering of the columns and rows
Hi,   I need to generate a heatmap on a square matrix and wouldn't want to reorder the columns and the rows on the heatmap display.    I have used the options Rowv=NULL and Colv=NULL but doesn't seem to work. Following is a snippet of the heatmap function i am using. args <- commandArgs(); inputfile <- args[2] imgfile   <- args[3] bitmap(imgfile, height=15, width=15, res=100,
2003 Sep 29
5
colours in dotchart (PR#4343)
Problem: neither fg or bg nor color work properly in dotchart. version: R-1.7.1 for windows code which shows the errors: x <- matrix(rnorm(16),ncol=2,dimnames=list(paste("a",1:8,sep=""),c("before","afte r"))) dotchart(x,fg="blue",bg="lightgrey") dotchart(x,color=c("red","blue")) Dr Ian J Wilson Lecturer in
2007 Jan 26
2
Using functions within functions (environment problems)
Hi everyone, I've been having difficulty writing wrapper functions for some functions where those same functions include other functions with eval() calls where the environment is specified. A very simple example using function lmer from lme4: lmerWrapper <- function(formula, data, family = gaussian, method = c("REML", "ML", "PQL", "Laplace",
2018 Mar 21
1
selectFGR vs weighted coxph for internal validation and calibration curve- competing risks model
Dear Geskus, I want to develop a prediction model. I followed your paper and analysed thro' weighted coxph approach. I can develop nomogram based on the final model also. But I do not know how to do internal validation of the model and subsequently obtain calibration plot. Is it possible to use Wolbers et al Epid 2009 approach 9 (R code for internal validation and calibration) . It is
2007 Jun 08
1
Question about Running C code from R
Dear R-devel, Apologies for sending what is probably a very simple question to R-devel: I am definitely missing something very simple and can't work out what it is. I've been trying to find the problem here for about a month and need some help! I am trying to work out how to run a C program from an R script. Rather than try the C program directly, I'm trying to get a much simpler
2018 Mar 22
3
exporting data to stata
Hi, I am new to R and I want to export data into Stata. Could somebody help with that? Thanks a lot. This is the code I am using: > setwd("D:/datasets/Seg-bcn/ESBD") > data1 <- readRDS("r17045_ESDB_Habitatges_BDD_V_1_0.rds") > library(foreign) > write.dta(data="data1", file = "D:/datasets/data1.dta") Error in write.dta(data =