similar to: List to Array: How to establish the dimension of the array

Displaying 20 results from an estimated 100 matches similar to: "List to Array: How to establish the dimension of the array"

2012 Jan 18
4
R-Help
I am trying to create a frequency distribution and I am a bit confused. Here are the commands I have entered: > data <- read.csv(file="40609_sortedfinal.csv",head=TRUE,sep=",") > NumberOfActionsByStatus = data$STATUS > NumberOfActionsByUser = data$ETS_LOGIN > NumberOfBidOffer = data$BID_OFFER > NumberOfActionsByUser.freq = table(NumberOfActionsByUser) >
2010 Aug 25
3
frequency, count rows, data for heat map
Hi all, I have read posts of heat map creation but I am one step prior -- Here is what I am trying to do and wonder if you have any tips? We are trying to map sequence reads from tumors to viral genomes. Example input file : 111 abc 111 sdf 111 xyz 1079 abc 1079 xyz 1079 xyz 5576 abc 5576 sdf 5576 sdf How may xyz's are there for 1079 and 111? How many abc's, etc?
2011 May 12
2
group length
Hi   I have four groups   y1=c(1.214,1.180,1.199) y2=c(1.614,1.710,1.867,1.479) y3=c(1.361,1.270,1.375,1.299) y4=c(1.459,1.335) Is there a function that can give me the length for each, like the made up example below?   >function(length(y1:y2) [1] 3 4 4 2 [[alternative HTML version deleted]]
2011 Sep 20
1
means across list of data frames
I have a list of data frames like the following: set.seed(123) a<- data.frame(x=runif(10), y = runif(10), sample = seq(1,10)) b<- data.frame(x=runif(10), y = runif(10), sample = seq(1,10)) L<- list(a,b) All data frames in the list have the same dimensions. I need to calculate the sample means for x and y. The real data are lists of several thousand quite large dataframes, so I need
2013 Mar 22
1
Median across matrices
Hey all, I have a list of matrices. I'd like to calculate the median across all those matrices for each element. What I'd like to end up with is a matrix containing the median of all [1,1] [1,2] etc. elements across all matrices. Is there a concise way of doing that? Thanks!
2011 Nov 10
2
Listing tables together from random samples from a generated population?
. HI there, I'd like to show demonstrate how the chi-squared distribution works, so I've come up with a sample data frame of two categorical variables y<-data.frame(gender=sample(c('Male', 'Female'), size=100000, replace=TRUE, c(0.5, 0.5)), tea=sample(c('Yes', 'No'), size=100000, replace=TRUE, c(0.5, 0.5))) And I'd like to create a list of 100
2011 Aug 04
3
functions on rows or columns of two (or more) arrays
I realize this should be simple, but even after reading over the several help pages several times, I still cannot decide between the myriad "apply" functions to address it. I simply want to apply a function to all the rows (or columns) of the same index from two (or more) identically sized arrays (or data frames). For example: > a=matrix(1:50,nrow=10) >
2012 Jun 05
1
Trouble with Functions
Hi guys, I'm a new to R and following along with Tutorials using this book: http://www.amazon.com/Practical-Statistical-Analysis-Non-structured-Applications/dp/012386979X In one of them, they use the twitteR package and describe the following function (see below). From what I can tell from the documentation (R), there's a method to call it directly in an interactive session. The way
2013 Jun 05
2
combining two different matrizes
Hello together, this is ma first post, so please aplogize me if post this in the wrong section. I have problem concerning ma two matrizes. After a regressione and so on, I got two matrizes Matrixres contains the results of ma calculation. Matrixr contains my detiene, which where Aldo used for the regression. Please ser the following code: #Datei einlesen residual =
2008 Sep 30
0
New package: plyr
plyr is a set of tools that solves a common set of problems: you need to break a big problem down into manageable pieces, operate on each pieces and then put all the pieces back together. It's already possible to do this with split and the apply functions, but plyr just makes it all a bit easier with: * consistent names, arguments and outputs * input from and output to data.frames,
2008 Sep 30
0
New package: plyr
plyr is a set of tools that solves a common set of problems: you need to break a big problem down into manageable pieces, operate on each pieces and then put all the pieces back together. It's already possible to do this with split and the apply functions, but plyr just makes it all a bit easier with: * consistent names, arguments and outputs * input from and output to data.frames,
2012 Jan 12
1
parallel computation in plyr 1.7
Dear all, I have a question regarding the possibility of parallel computation in plyr version 1.7. The help files of the following functions mention the argument '.parallel': ddply, aaply, llply, daply, adply, dlply, alply, ldply, laply However, the help files of the following functions do not mention this argument: ?d_ply, ?aply, ?lply Is it because parallel computation is not
2011 Oct 01
2
Bug#643953: xen-utils-4.0: pygrub can not parse empty "root" statement in menu.lst
Package: xen-utils-4.0 Version: 4.0.1-2 Severity: normal Trying to get a system that I've long had runing on the bare metal to boot as a VM, I discovered that pygrub would not parse my menu.lst. The problematic entry is this: # This is a divider, added to separate the menu items below from the Debian # ones. title Other operating systems: root pygrub's parser seems to
2012 Jul 10
1
Bug#643953: Copy of the problematic grub config file?
Hi Phil, Do you by any chance have a copy of the problematic configuration file? Thanks, Ian.
2005 Jun 21
2
How to establish connection on port 80 eth0 when using shorewall???
log message : Jun 21 17:22:04 antares kernel: Shorewall:net2fw:ACCEPT:IN=eth0 OUT= MAC=00:04:23:b6:f4:68:00:0f:cc:0c:55:00:08:00 SRC=213.41.177.48 DST=192.168.1.11 LEN=60 TOS=0x00 PREC=0x00 TTL=60 ID=23492 DF PROTO=TCP SPT=50859 DPT=80 WINDOW=5840 RES=0x00 SYN URGP=0 The server listening on 192.168.1.11 port 80 receives nothing. Is there any explanation?????? Thanks in advance for your help
2003 Nov 24
0
Re: [RMySQL] unable to establish connection since R-1.8.0 upgrade
Hi Laurent, The issue is a very simple one to correct --- you only need to re-install RMySQL with the R version you're currently using. The issue is that the internal representation of objects in the methods package changed in 1.8.0, and thus packages that use S4 classes and methods and save their images (like RMySQL) and were installed prior to 1.8.0 need to be re-installed to be used with
2013 Oct 05
0
How to establish the order of a time series so as to fit ARIMA
I have sales data for years 2011, 2012 and upto september 2013. I have applied the decompose function to filter the trend , seasonal and random component. however i would like to apply the predict function to forecast the sales for the rest of year and into 2014. How can i establish the order of the time series so as to fit ARIMA. Charles. [[alternative HTML version deleted]]
2010 Oct 30
0
Establish SFTP connection
Hi , I am trying to connect to a SFTP server on my machine running using WinSSHD. The port on which it is running is 22. I am unable to make a connection to this port using ruby Net:sftp and Net:SSH libraries. Here are both the codes: ============================================================== #Option 1 require ''net/sftp''
2009 Feb 05
3
How to establish Japanese text in WINE
I am using a Japanese windows-based game through WINE. The only problem I have is that all of the Japanese characters are square blocks. I wonder if there's a way to fix this. Thank you.
2005 Oct 03
0
How to establish ISDN port Up
We have ISDN PCI Adapter from Billion(using mISDN). When we connect it to the PSTN the incoming calls are OK. When we try to make a call we can't do that because the ISDN port is Down: CLI> misdn show port 1 BEGIN STACK_LIST: * Stack Addr: 40400001 Port 1 Type TE Prot. PMP L2Link DOWN L1Link:DOWN Idx: 0