Displaying 20 results from an estimated 600 matches similar to: "conditional with and operators"
2008 Aug 12
2
Parsing array data
Hi,
I read in csv files with the following code:
res <- vector(mode="list",length=3)
for(i in 1: length(res))
res[[i]]<-read.csv(file=paste("/Users/markaltaweel/Desktop/Output/HydroDataOutput",i,".csv",sep=""),header=T,sep=",")
This allows me to load the data into an array of length 3, with the res array containing my data from the csv
2008 Aug 20
2
Line of best
Hi,
I have a scatter plot, with an equation that best fits the scatter plot expressed as: 1/x^.6. I know for normal linear regression lines you can use the abline() command; however, since my best fit line is not linear, how can I draw my line on the scatter plot in a similar fashion to abline().
Thanks for everyone's help again. I appreciate this board's advice.
Mark
2008 Aug 13
3
Conditional statement used in sapply()
Hi,
I have data stored in a list that I would like to aggregate and perform some basic stats. However, I would like to apply conditional statements so that not all the data are used. Basically, I want to get a specific variable, do some basic functions (such as a mean), but only get the data in each element's data that match the condition. The code I used is below:
>
2009 Mar 20
2
plotting two variables with a third used for color
I have a problem where I have two columns of data that I can simply plot using:
plot(wV[0:15,3],wY[0:15,3]).
This produces my desired plot.
Now, say I have a third variable that I would like to introduce and use that variable to set different colors in the plot
In this case, say I wanted values greater than 0 to be "blue" and values less than 0 to be "red"
Basically, my
2009 Mar 20
2
functions within a list
Hi,
I am trying to perform various functions on a list with a number of elements. For example. I would like to take the mean of different variable values in the entire list. As an example,
say I have a list with 1000 elements and variables called Id and Tick. What I would like to do is take the mean of a variable called X for each Tick in the data element. So, there can be say 1 to 600 tick
2010 Feb 01
2
Loading data from folder
Hi,
I am trying to load csv type data from a folder. However, rather than
syntax that simply loads one file at a time I was wondering if there
is a method that loads all data from a specific folder.
For instance, I have the following data files in a folder nebraskaStats:
10-1-2009_10-7-2009.txt
10-2-2009_10-8-2009.txt
10-3-2009_10-9-2009.txt
....etc. (245 total files in folder)
Each file
2010 Feb 01
2
Merging vector data into one file
Hi,
I had another question. If you had say a vector (e.g., called data)
with 235 elements and each element looked like the following
data[[1]]
Column A-B Column Z-S Column A-S....
1 2 5 .......
data[[2]]
Column Z-B Column A-S Column A-B....
2 1 3 .......
Anyway, each element consists of one row
2008 Aug 21
1
Kruskal.test() on lists
Hi,
I am trying to do a kruskal wallis test on two lists, fVisited and cSN:
fVisited[[1]]
[1] 0.17097623 0.30376141 0.17577266 0.14951855 0.03959753 0.08096217 0.05744888 0.02196257....
....
cSN[[1]]
[1] 0.08557303 0.36477791 0.19601252 0.12981040 0.05351320 0.10385542 0.03539577 0.03106175....
So if I just want to do a test on just one of the entries this is simple enough:
2009 May 01
1
question on aggregate
Hi,
I am trying to sum column information in a list with 3 instances.
For example:
ID Traversed ID Traversed ID Traversed
1 5 1 7 1 8
2 8 2 11 2 7
3 11 3 22 3 16
What I want to do is sum the
2008 Aug 19
1
matrix question
Hi,
I have a vector and a list, with data I would like to multiply together.
So for instance I have a vector s:
[[1]]
[1] 44308
[[2]]
[1] 4371
Also, I have a list d:
[[1]]
[1] 1201 6170 2036 2927 1625 1391 2074 1453 3172 3027 4691 3719 1185 320 2071 1027 1046 1186 1403 580 1382 440 8 174
[[2]]
[1] 6521 688 2678 3409 3033 1608 3618 1461 1836 2104 879 1095 2630 1591 2986 703 2548
2010 Aug 24
2
Attempted SIP connection by foreign host. Help!
Say,
I just picked this up on my messages!
There are a whole host of these requests!
Anyone know whow there people are? Is there a way to report them?
Any suggestions as to how to block them?
[Aug 23 10:34:16] NOTICE[1010] chan_sip.c: Registration from '"912" <sip:1 at 41.1.1.1>' failed for '184.106.217.112' - Wrong password
[Aug 23 10:34:16] NOTICE[1010]
2004 Aug 16
3
[Bug 912] PATCH: Fix head(1) call in regress/yes-head.sh
http://bugzilla.mindrot.org/show_bug.cgi?id=912
Summary: PATCH: Fix head(1) call in regress/yes-head.sh
Product: Portable OpenSSH
Version: -current
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Miscellaneous
AssignedTo: openssh-bugs at mindrot.org
2009 Mar 18
2
shutdown by o2net_idle_timer causes Xen to hang
Hello,
we've had some serious trouble with a two-node Xen-based OCFS2
cluster. In brief: we had two incidents where one node detects an idle
timeout and shuts the other node down which causes the other node and
the Dom0 to hang. Both times this could only be resolved by rebooting
the whole machine using the built-in IPMI card.
All machines (including the other DomUs) run Centos 5.2
2015 Dec 15
7
domain authentication issue after rebooting Debian Jessie - need to restart samba each time
Hai,
If not, well, very stange, i have about 7 Jessie's here with samba and
i dont have any problems.
I think systemd is blocking your startup of samba due to multple errors on startups previously.
Few questions?
Do you have samba with shares over nfs?
If so, create te following folder :
/etc/systemd/system/nfs-common.service.d/
Add the following file with content to the file :
2014 Apr 01
3
CH7007A (AKA CH7006) TV OUT Support for NV11 (NVidia GeForce2 Go Dell I8K Laptop)
> On Tue, Apr 01, 2014 at 02:53:02PM -0400, Ilia Mirkin wrote:
>I believe that ch7006 is the only external encoder that's supposed to
>work, so you're in luck. It sounds like it passes the nv04_tv_identify
>stage of nv04_tv_create -- perhaps it fails later? Although based on
>the prints, it's even doing dpms stuff (but it hits _detect a second
>time... odd). Try
2006 Feb 09
3
Rail in teaching environments
Newbie question (just joined the list)
Is anyone running Ruby on Rails in a teaching environment?
Regards
John
John Colby BA, MBCS, PGCertE
Lecturer, Department of Computing, The Business School
Room F316, Galton Building, University of Central England,
Franchise Street, Perry Barr, Birmingham B42 2SU
Tel: +44 (0) 121 331 6937, Fax +44 (0) 121 331 6281, Mobile: 07795 215
912
2006 Mar 17
4
Countries supporting SMS on PSTN (ISDN)
Hi
does anyone have a definitive list of countries other than those listed
on the wiki which are supporting app_SMS on landlines using ETSI ES 201
912 ??
Thanks
Tim Robinson
Basingstoke, UK
2012 Aug 17
4
Appending many different and separate Excel files using R
Dear all,
Good day!
I have a problem in reading Excel files in R and appending them to each other. Suppose we have several Excel files in a directory with headers and want to use R to append them in a single file with an additional variable in the final file indicating from which files the data come from.
As I have many Excel files and their sizes are very big I should write a loop in R to do
2011 Feb 28
3
Problems using unique function and !duplicated
Hi, I am trying to simultaneously remove duplicate variables from two or more
variables in a small R data.frame. I am trying to reproduce the SAS
statements from a Proc Sort with Nodupkey for those familiar with SAS.
Here's my example data :
test <- read.csv("test.csv", sep=",", as.is=TRUE)
> test
date var1 var2 num1 num2
1 28/01/11 a 1 213 71
2
2006 Oct 18
2
Adding locfit confidence intervals in trelis xyplot
Dear all,
I am trying to include confidence intervals in a xyplot.
This is what I am doing:
xyplot(x ~ y|z, alpha = 1,band = "global",panel = panel.locfit)
(more specifically, in my case x is a binary response from a logistic
regression model)
The output plot was fine but it did not include the confidence intervals
Anyone knows how to do it? (xYplot did not work either)
many thanks