Hi Rachel,
It looks to me as though the first thing you want to do is to get your
data, which you attach as images, into a data frame. If these are flat
files like CSV or TAB, you should be able to read them in with some
variant of the read.table function. If Excel, look at the various
Excel import
Hello Everyone,
would you be able to assist with some expertise on how to get the following
done in a way that can be applied to a data set with different dimensions and
without all the line items here?
we have:
id<-c(1,1,1,2,2,2,2,3,3,4,4,4,4,5,5,5,5)#length of unique IDs may differ of
cours
Hi!
Maybe this would do the trick:
--- snip ---
library(reshape2) # Use 'reshape2'
library(dplyr)# Use 'dplyr'
datatransfer<-data %>% mutate(letter2=letter) %>%
dcast(id+letter~letter2, value.var="weight")
--- snip ---
Or did I misunderstood something?
Best,
Kimmo
2019-01-06, 13:16
I would not want to leave the impression that I think the task at hand is
merely tedious... my point is that there are numerous steps involved and each
step depends on information that has not been communicated to the list, and
there is a learning curve even in knowing what to include in an emai
Hi Jim,
Thank you for your email and information
It is a CVS file which I imported in Rstudio.
I will look into what you told me and see if I am able to figure it out.
Best,
Rachel
On Sun, Jan 6, 2019 at 4:12 AM Jim Lemon wrote:
> Hi Rachel,
> It looks to me as though the first thing you wan
Hi Jeff,
Thanks for your email.
I am an intern from Amsterdam and I have to do an analysis in R. I spoke to
my professor in Amsterdam and my supervisor's here in Boston. But they are
to busy to help. I informed them from the start that I am not familiar with
R(Rstudio) and they told me that I woul
Dear Rachel
Not sure if this is going to help but if it is a csv file then
read.csv() is your friend. Read the help first in case you need to
specify what is being used for the decimal point and the separator as if
it is from the Netherlands they may not be the default settings.
michael
On
Hi Michael
Thanks, I'll check it out.
Best,
Rachel
On Sun, Jan 6, 2019 at 11:45 AM Michael Dewey
wrote:
> Dear Rachel
>
> Not sure if this is going to help but if it is a csv file then
> read.csv() is your friend. Read the help first in case you need to
> specify what is being used for the de
On Sun, 6 Jan 2019, Rachel Thompson wrote:
I am an intern from Amsterdam and I have to do an analysis in R. I spoke
to my professor in Amsterdam and my supervisor's here in Boston. But they
are to busy to help. I informed them from the start that I am not familiar
with R(Rstudio) and they told m
Hello,
In many continental European countries, such as mine, the function to
use is
read.csv2
It defaults to
sep = ";", dec = ","
Note that these functions are in fact calls to read.table with special
default arguments. Another default that changes is header = TRUE.
You might also want to
Like this (using base R only)?
dat<-data.frame(id=id,letter=letter,weight=weight) # using your data
ud <- unique(dat$id)
ul = unique(dat$letter)
d <- with(dat,
data.frame(
letter = rep(ul, e = length(ud)),
id = rep(ud, length(ul))
) )
merge(dat[,c(2,1,3)]
Thanks Martin,
I reinstalled PhantomJS and now it works fine. Regards,
On Thu, Dec 20, 2018 at 5:30 PM Martin Maechler
wrote:
> > Marc Girondot via R-help
> > on Tue, 18 Dec 2018 13:53:34 +0100 writes:
>
> > Hi Christofer, I just try on MacOSX and ubuntu and it
> > works on
... and my reordering of column indices was unnecessary:
merge(dat, d, all.y = TRUE)
will do.
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 County" comic strip )
On Sun, Jan 6, 20
Hi Rui,
Thank you, I willl look into it.
Best,
Rachel
On Sun, Jan 6, 2019 at 12:27 PM Rui Barradas wrote:
> Hello,
>
> In many continental European countries, such as mine, the function to
> use is
>
> read.csv2
>
> It defaults to
>
> sep = ";", dec = ","
>
> Note that these functions are i
Hi Rich,
I really feel lost at this point.
I need a code that helps me count the phone activity level(high/low/none),
the screen activity (on/off) and the amount calls and SMS of each subject.
1. I want to have a summary of how many times a specific subject got called
(CallLogProbe)
2. I want to
Maybe you could put the CSV in a gist or something? -- H
On Sun, 6 Jan 2019 at 10:58, Rachel Thompson
wrote:
> Hi Rich,
>
> I really feel lost at this point.
> I need a code that helps me count the phone activity level(high/low/none),
> the screen activity (on/off) and the amount calls and SMS o
On Sun, 6 Jan 2019, Rachel Thompson wrote:
I need a code that helps me count the phone activity level(high/low/none),
the screen activity (on/off) and the amount calls and SMS of each subject.
1. I want to have a summary of how many times a specific subject got called
(CallLogProbe)
2. I want t
Questions like this
1. I want to have a summary of how many times a specific subject got called
(CallLogProbe)
suggest that you should look at the table function. See
?table
and run the examples.
They show how to get one-way frequency tables and two-way contingency
tables.
If you have followup q
Dear all,
I just have a simple problem here.
I generate a sample data as follows:
set.seed(123456)
r1 <- sample(1:100,100 ,replace=T)
r2 <- sample(1:100,100 ,replace=T)
r3 <- sample(1:100,100 ,replace=T)
R <- cbind(r1,r2,r3); head(R)
> R <- cbind(r1,r2,r3); head(R)
r1 r2 r3
[1,] 80 4 20
[2
See below
On Mon, 7 Jan 2019, roslinazairimah zakaria wrote:
Dear all,
I just have a simple problem here.
I generate a sample data as follows:
set.seed(123456)
r1 <- sample(1:100,100 ,replace=T)
r2 <- sample(1:100,100 ,replace=T)
r3 <- sample(1:100,100 ,replace=T)
R <- cbind(r1,r2,r3); head(
Hi!
Not having a data chunk prevents me from testing abit, but maybe you
should take a look on:
?table
?xtabs
to start with.
But as already suggested by other users, a small data set would be of
great help :)
HTH,
Kimmo
su, 2019-01-06 kello 13:49 -0500, Rachel Thompson kirjoitti:
> Hi Rich,
>
21 matches
Mail list logo