Displaying 11 results from an estimated 11 matches for "maltaweel".
Did you mean:
altaweel
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 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
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:
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
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
2008 Aug 19
2
conditional with and operators
Hi,
I have a problem in which I am parsing data from a list. I am simply trying to return data that has several conditions being true. Here is my syntax below:
d<-sapply(res,function(.df){(.df$TimesVisited[.df$Tick>912 && .df$Id>0])}) #res is the list, and I am trying to return a result that has two true conditions (that is the variable Tick should be greate than 912 and Id
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 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:
>