Displaying 20 results from an estimated 10000 matches similar to: "Converting a dataframe to a matrix"
2010 Jan 10
1
scatterplot matrix with ggplot2
#I would like to use the below data to make a scatter plot matrix with
#code similar to that below the data
#conceptually this is the right approach I think
#thanks in advance
melt.gg <- structure(list(stream = c("Bonham Lower", "Bonham Lower",
"Bonham Lower",
"Bonham Lower", "Bonham Lower", "Bonham Lower", "Bonham Lower",
2011 Oct 17
3
Importing all observations and variables from csv file into dataframe
Hello,
I need some help getting started with data analysis. I’m having trouble getting R to read my data file. I’ve referred to various R help documentation, the website, and FAQs, but I don’t see my situation listed.
I saved an Excel file (post-2007 Excel version) of data as a “.csv” file. However, the file still appears in column format when I open it. Does that happen when you save a an
2010 Jul 31
3
Installing iTunes on Linux Mint Isadora 9
Hi all,
I have downloaded the latest version of wine in order to run iTunes but when I tried to execute the program here is what I get :
cd /home/sally/Documents
$ wine iTunes64Setup.exe
Trying to load PE image for unsupported architecture (AMD-64)
err:process:create_process starting 64-bit process L"Z:\\home\\sally\\Documents\\iTunes64Setup.exe" not supported on this platform
wine:
2013 Jul 12
4
simplify a dataframe
Hello
I have the following problem : group the lines of a dataframe when no
information change (Matricule, Nom, Sexe, DateNaissance, Contrat, Pays)
and when the value of Debut of lines i = value Fin of lines i-1
I can obtain it with a do loop. Is it possible to avoid the loop ?
The dataframe initial is df1
dput(df1)
structure(list(Matricule = c(1L, 1L, 1L, 6L, 6L, 6L, 6L, 6L,
6L, 8L, 8L, 8L,
2016 Apr 20
0
Data reshaping with conditions
Hi sri,
As your problem involves a few logical steps, I found it easier to
approach it in a stepwise way. Perhaps there are more elegant ways to
accomplish this.
svdat<-read.table(text="Count id name type
117 335 sally A
19 335 sally A
167 335 sally B
18 340 susan A
56 340 susan A
22 340 susan B
53 340 susan B
135 351 lee A
114 351 lee A
84 351 lee A
80 351 lee A
19 351 lee A
8 351 lee A
2016 Apr 21
2
Data reshaping with conditions
Hi Jim,
Thanks for your time. But somehow this code did not help me to achieve my
expected output.
Problems: 1) x, y are coming as logical rather than values as I mentioned
in my post
2) The values that I get for Max A and Max B not correct
3) It looks like a pretty big data, but I just need to
concatenate the values with a comma, the final output will be a character
2003 Apr 02
19
Combining the components of a character vector
Dear Help,
Suppose I have a character vector.
x <- c("Bob", "loves", "Sally")
I want to combine it into a single string: "Bob loves Sally" .
paste(x) yields:
paste(x)
[1] "Bob" "loves" "Sally"
The following function combines the character vector into a string in the
way that I want, but it seems somewhat inelegant.
2016 Apr 20
2
Data reshaping with conditions
Dear All,
I am trying to reshape the data with some conditions. A small part of the
data looks like below. Like this there will be more data with repeating ID.
Count id name type
117 335 sally A
19 335 sally A
167 335 sally B
18 340 susan A
56 340 susan A
22 340 susan B
53 340 susan B
135 351 lee A
114 351 lee A
84 351 lee A
80 351 lee A
19 351 lee A
8 351 lee A
21 351 lee A
88 351 lee B
111 351
2008 Jan 31
2
request to install app
Hi,
I would like to generate a facebook call on behalf of a user to create
a request to another user to install the app.
Is there a way to do this without being in a fb_request_form?
the use case is:
Fred is creating a task, he assign it to a friend Sally , if Sally has
already installed & setup my app, no problem, if she hasnt, I want to
send an add request from Fred along with
2009 Apr 24
1
function returns R object with name based on input
I wanted to ask how I can make a for loop or a function return an R
object with a unique name based on either some XX of the for loop or
some input for the function.
For example
if I have a function:
fn<-function(data,year){
which does does some stuff
}
How do I return an object from the function called X.year, such that if
I run fn(data,1989), the output is an object called X.1989?
In
2003 Jan 27
1
more info - NT_STATUS_ACCESS_DENIED opening remote file
Thanks to those who had suggestions on my last post, but none of those seems to have worked. I have narrowed down the problem a bit though, seems users can't write to a share that is not their primary group. For example: Bob's primary group is Bob and secondary group is Sally. Bob can write to the Bob group share but not the Sally group share. Anymore thoughts/suggestions. Thanks
2009 Feb 15
1
Delete row if first letter of row name is
Hello!
I am still a beginner. Can you tell me how to delete a row (from a matrix or data.frame) if the row name starts with U? See example below:
U179971039 0.058663 0.087575
empty1 -0.1296 -0.09105
empty2 0.136259 0.398073
empty3 0.446041 -0.33997
Sally
[[alternative HTML version deleted]]
2011 Nov 07
2
logistric regression: model revision
Hello,
I am working on fitting a logistic regression model to my dataset. I removed the squared term in the second version of the model, but my model output is exactly the same.
Model version 1: GRP_GLM<-glm(HB_NHB~elev+costdis1^2,data=glm_1,family=binomial(link=logit))
summary(GRP_GLM)
Model version 2: QM_1<-glm(HB_NHB~elev+costdis1,data=glm_2,family=binomial(link=logit))
2008 Nov 14
2
GAM and Poisson distribution
Hi -I'm running a GAM with 7 explanatory variables with a Poisson error
structure. All of the variables are continuous so I'm getting error
messages in R.
cod.fall.full.gam.model<-gam(Kept.CPUE~s(HOUR)+s(LAT_dec)+s(LONG_dec)+s(meantemp_C)+s(meandepth_fa)+s(change_depth)+s(seds),
data=cod.fall.version2,family=poisson)
In dpois(y, mu, log = TRUE) ... : non-integer x = 5.325517
2018 Sep 28
1
multiple mounts each varying bitrates
Hi,
Thanks, that helps a lot. I'm trying to get ices2 now to do the
multiple clients and sources, I'll post what I get later today.
Thanks.
Dave.
On 9/28/18, jake <jake at jakebriggs.com> wrote:
> I just realised my previous email didn't go to the list for some reason.
> Here it is again:
>
> Currently, I have three liquadsoap ".liq" files, and they all
2001 Sep 17
5
Samba 2.2.1a
I just loaded Samba 2.2.1a (previously running 2.0.7) and am having major
problems. The load on my server keeps climbing (got as high as *95* this
morning. Relevant info following:
Manufacturer is Sun (Sun Microsystems)
System Model is Enterprise 250 Model 2400
Main Memory is 2.0 GB
Virtual Memory is 4.3 GB
OS Version is 5.7
This machine is
2018 Mar 15
0
Vary an equation using values from a sequence
I thnk what you want is ?outer. e.g.:
outer(Data -min(Data),value,FUN = "+")
Whether this works for your real task, however, may depend on details and
complexities that you have omitted.
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom
2008 Apr 02
3
[Bug 1455] New: ssh client ignoring ad bit in dns response - OSX 10.5
https://bugzilla.mindrot.org/show_bug.cgi?id=1455
Summary: ssh client ignoring ad bit in dns response - OSX 10.5
Classification: Unclassified
Product: Portable OpenSSH
Version: 4.9p1
Platform: ix86
2014 Apr 09
1
FLASH NewsBites - Heartbleed Open SSL Vulnerability (fwd)
For even more information about "Heartbleed".
-Connie Sieh
---------- Forwarded message ----------
Date: Wed, 9 Apr 2014 12:27:54 -0500
From: The SANS Institute <NewsBites at sans.org>
Subject: FLASH NewsBites - Heartbleed Open SSL Vulnerability
FLASH NewsBites - Heartbleed Open SSL Vulnerability
FLASH NewsBites are issued only when a security event demands global and
immediate
2005 May 31
1
Built-In Transfer Questions
I've read the Wiki on using asterisk's built-in transfer options (#8 and
#6). They work fine but how does one cancle an attended transfer? Example: I
have person on phone, I hit #6 to being att-transfer. I enter Sally's
extension. I let it ring for a few seconds. Sally never picks up but her
voicemail does. How do I hangup her voicemail and resume the previous call?
The example on the