Hello,
I am trying to convert a df (given below as d1) into df2 (given below as
res).
I tried using loops for each row. I cannot get it right. Moreover the df
is 25 x 500 in dimension and I cannot get it to work.
Could anyone help me here please.
Thanks.
Adrian.
d1 <-
structure(list(S1 =
I'll put that in my notes. Thanks!
Larry Johnson
Editor and Publisher
Cobb County Courier
404-664-2034
http://cobbcountycourier.com
From: Hadley Wickham
Sent: Sunday, April 25, 2021 7:14 PM
To: Larry Johnson
Cc: Duncan Murdoch ; r-help@r-projec
my drift).
I'd still like to know why updating packages in bulk isn't working for me, but
I can move ahead for now, and I'll figure out how to fix that later.
So thanks Duncan.
Larry Johnson
Editor and Publisher
Cobb County Courier
404-664-2034
http://cobbcountycourier.
broom fail with no output.
I've been searching for similar reports of failure here in these archives, on
the RStudio forums, and on the internet and have found nothing that's a
seamless match. If I can't find anything I'll check out filing a bug report
(I'
Dear group,
In pheatmap, is it possible to cluster select colmns.
For example, in a matrix of 10 rows and 20 columns. I want to cluster
only those columns 1-10 and cluster rows. Similarly, retaining the
same row clustering resulted from clustering of columns 1-10, I want
to enforce clustering of 11
Dear group,
I have two large matrices.
Matrix one: is 24776 x 76 (example toy1 dput object given below)
Matrix two: is 12913 x 76 (example toy2 dput object given below)
Column names of both matrices are identical.
My aim is:
a. Take each row of toy2 and transform vector into UP (>0) and DN (
Pardon me, I forgot to add subject line.
-Adrian.
On Sun, Feb 10, 2019 at 3:49 PM Adrian Johnson
wrote:
>
> Dear group,
>
> I have two large matrices.
>
> Matrix one: is 24776 x 76 (example toy1 dput object given below)
>
> Matrix two: is 12913 x 76 (example toy2
Hi,
I have a quick question for you about a page on your site that briefly
mentions a data security topic,
https://stat.ethz.ch/pipermail/r-help/2008-May/162561.html.
I plan on writing a few guest authored articles in the next month or so
that talk about data security & breaches, are you
Dear group,
I have two large matrices.
Matrix one: is 24776 x 76 (example toy1 dput object given below)
Matrix two: is 12913 x 76 (example toy2 dput object given below)
Column names of both matrices are identical.
My aim is:
a. Take each row of toy2 and transform vector into UP (>0) and DN (
I apologize, I forgot to mention another key operation.
in my matrix -1 to <0 has a different meaning while values between >0
to 1 has a different set of meaning. So If I do logit transformation
some of the positives becomes negative (values < 0.5 etc.). In such
case, the resulting transformed ma
Dear group,
My question, perhaps is more of a statistical question using R
I have a data matrix ( 400 x 400 normally distributed) with data
points ranging from -1 to +1..
For certain clustering algorithms, I suspect the tight data range is
not helping resolving the clusters.
Is there a way to tran
3.576968
sample estimates:
mean in group F mean in group M
39.9455843.85358
> (m1.t.effect <- diff(m1.t$estimate))
mean in group M
3.908003
> m1.t.effect/m1.t$statistic
mean in group M
-0.1668129
--
Paul E. Johnson http://pj.freefaculty.org
Director, Center
t post hoc comparisons.
In car package, Anova function will help. I may teach Anova soon, we'll see
if I have better answer then.
Paul Johnson
University of Kansas
On Wed, Oct 10, 2018, 1:14 AM Thanh Tran wrote:
> Hi eveyone,
> I'm studying about variance (ANOVA) in R and have so
lm.beta, it actually standardizes variables and runs regression. lm.beta
resales coefficients instead.
Paul Johnson
University of Kansas
On Wed, Sep 26, 2018, 5:03 AM CHATTON Anne via R-help
wrote:
> Dear all,
>
> I am having problems in obtaining standardized betas on a multiply-imput
quot; = 0.1)
I could build a formula from that. That's not too bad. But I still think
it would be cool to allow formula input.
Have you ever seen it done?
pj
--
Paul E. Johnson http://pj.freefaculty.org
Director, Center for Research Methods and Data Analysis http://
__
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
--
Paul E. Johnson
e, Switzerland
> http://enricoschumann.net
>
> ______
> ess-h...@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
--
Paul E. Johnson http://pj.freefaculty.org
Director, Center for
fastest
possible way. In an Objective-C problem in the olden days, we found
the method-lookup was a major slowdown and one of the programmers
showed us how to save the lookup and use it over and over.
pj
--
Paul E. Johnson http://pj.freefaculty.org
Director, Center for Research Metho
:13
To: Bert Gunter
Cc: r-help@r-project.org; Hollie Johnson (PGR)
Subject: Re: [R] Issues with 'Miwa' algorithm in mvtnorm package
Hi Hollie,
I tried to reproduce your example but could not. Here is what I did. Please
explain if you did something different.
x <- c(9.358*10^-3, -8.165*
Currently doing some work on local maxima on a random field and have
encountered an issue with the Miwa algorithm used with the pmvnorm function in
the mvtnorm R package.
Based on recommendations by Mi et al., we ran the mvtnorm package using the
Miwa algorithm, since we have a maximum of 4 dim
gt; -- 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 County" comic strip )
>
>
> On Sat, Aug 26, 2017 at 5:18 PM, Adrian
hich case you should learn them now; see
> ?help -- or have I misunderstood your query?
>
> 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 B
Hi
I am not sure hiw to get thr CI from summary function on the survfit object.
I can get the percent survival for 2 years from survfit object but I dont
get Confidence intervals
Could anyone suggest a hint
Thanks
Adrian
[[alternative HTML version deleted]]
__
t; __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and
> more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/
> posting-guide.html
> and provide commented, minima
er bothered by the
problem in the first place.
Anyway, we have a workaround, but I don't understand what's wrong to
begin with or how to fix it the right way.
If you keep Googling, you see that this problem was experienced as
early as 2012. It has happened to some of my personal R
In the rockchalk package, I have a function called newdata that will help
with this. Plenty of examples. Probably my predictOmatic function will just
work. Motivation is in the vignette.
Paul Johnson
University of Kansas
On Aug 9, 2017 11:23 AM, "Alina Vodonos Zilberg"
wrote:
>
On Aug 12, 2017 11:58 AM, "José Abílio Matos" wrote:
On Friday, 11 August 2017 22.51.12 WEST Paul Johnson wrote:
> Dear everybody:
>
> Packages that DO pass the package check on my Ubuntu 17.04 laptop with
> R 3.4.1 and Mac OSX do not build on Centos 7 with R 3.4.1. I
uot;/home/pauljohn/R/x86_64-redhat-linux-gnu-library/3.4"
[2] "/usr/lib64/R/library"
[3] "/usr/share/R/library"
The packages in question are all in "/usr/share/R/library".
The system-wide R_LIBS_SITE has that directory, Local Variables of
/usr/lib64/R/etc/R
Hello group,
my question is deciding what test would be appropriate for following question.
An experiment 'A' yielded 3200 observations of which 431 are
significant. Similarly, using same method, another experiment 'B' on a
different population yielded 2541 observations of which 260 are
significa
I have to read more books.
I studied Golub and van Loan and came away with healthy fear of matrix
inversion. But when you look at user contributed regression packages, what
do you find? Matrix inversion and lots of X'X.
Paul Johnson
University of Kansask
The key (in your example) is a prope
owing accidents from trusting floats.
I wonder now if all uses of > or < with numeric variables are suspect.
Oh well. If everybody posts their advice, I will write a summary.
Paul Johnson
University of Kansas
On Apr 21, 2017 12:02 AM, "PIKAL Petr" wrote:
> Hi
>
>
I dont understand your code. But I do have suggestion. Run the functions in
the profiler, maybe differences will point at the enemy.
Know what I mean?
Rprof('check.out')
#run code
Rprof(NULL)
summaryRprof('check.out')
Do that for each method. That may be uninformative.
I wondered if you tried t
I have done this a lot. Would you mind installing my pkg rockchalk and then
run example(plotSlope) and example(plotCurve)? If the output is close to
what you want, you can adjust my code. The vignette explains.
1. Create newdata object
2. Run that through predict
3. Make plot
None of this is rock
> round(aa)
[1] 57
> round(bb)
[1] 58
I'm putting this one in my collection of "difficult to understand"
numerical calculations.
If you have seen this before, I'm sorry to waste your time.
pj
--
Paul E. Johnson http://pj.freefaculty.org
Director, Center for Resea
all successfully.
I understand I need something like xvfb to simulate an X11 session,
but I don't understand how to make it work. Can one of you give me an
idiot's guide on what to do?
pj
--
Paul E. Johnson http://pj.freefaculty.org
Director, Center for Research Methods and Data Analysis ht
Dear group,
Please allow me to ask a naive question and pardon if it is qualified
as stupid question.
I am using party package to classify covariates and predict
distribution of survival times for the classified variables.
Typically I have a matrix of covariates (columns) including outcome
data (o
Dear group,
pardon me for a naive question. I have data matrix (11K rows , 4K columns).
The data range is between -1 to 1. Not strictly integers, but real
numbers with at least place values in millionths.
The data distribution is peculiar (if I do plot(density(myMatrix)), I
get nice bimodal curve
Hi group,
I have a vector of numeric items and I want to replace based on
logical operator (> or <) with 'up', 'down' or 'nochange'
The way I am doing works sometimes and does not work sometime. I dont
understand the problem. In this example, that works for condition DN
first, gets over-written
r layer in this story is that
her 30 day free trials were expired, and I have feeling this means
that not only is McAfee still installed, but it is also running but
refusing to let you interact with it.
pj
--
Paul E. Johnson http://pj.freefaculty.org
Director, Center
Dear group,
I have a matrix (300 rows X 475columns).
The data is divided into many classes.
For examples:
475 columns are split into 3 categories - A, B and C
Is it possible to force clustering of columns in A followed by B and C.
I do not want to cluster whole matrix. I want to cluster by 3 categ
As Dr.Murdoch suggested, transformation of row 2 is important to make
sense in graphical depiction.
Thanks to all.
On Wed, Oct 12, 2016 at 4:25 PM, Adrian Johnson
wrote:
> Hello Dr. Carlson,
> thanks for the tip. It is exactly what I am looking for.
>
> I see the trick lies in
>
David L Carlson
> Department of Anthropology
> Texas A&M University
> College Station, TX 77840-4352
>
>
>
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Adams, Jean
> Sent: Wednesday, October 12, 2016 12:44 PM
> To: Adrian Johnso
Thanks Duncan.
I am sorry I cannot scale second row (d[2,]).
I was looking for a way to plot d[2,] values next to d[1,] with a
right side axis=4 on right side. -2,-1,0,1,2
thanks
Adrian
On Wed, Oct 12, 2016 at 12:42 PM, Duncan Murdoch
wrote:
> On 12/10/2016 12:20 PM, Adrian Johnson wr
, 1L, 131L, 1L, 2234L, 2L, 2892L, 1L,
> 528L, 0L, 582L, 2L), .Dim = c(2L, 7L), .Dimnames = list(c("GN",
> "CN"), c("DC5", "DC8", "DC14", "DC18", "DC19", "DC20", "DC23"
> )))
> plot(m["
Dear group,
I have been struggling to barplot two different measurements from one
subject. These two measures differ in range. I want to plot row 1
axis on left side and row 2 values on right side.
For a given column I want to plot GN and CN next to each other.
my dput code is below
:
structure
Hi group:
I tried multiple times cannot understand the breaks to work for my heatmap.
I am using following way:
pheatmap(chxx,
cluster_cols=FALSE,
annotation_col=annotcols,
annotation_colors=anno_colors,
col=colorRampPalette(c("dark blue", "white", "#ff"))(34),
show_colnames=F)
> max(chxx)
ated(sm$Gene)),]
>
> Jim
>
>
> On Fri, Aug 19, 2016 at 7:33 AM, Adrian Johnson
> wrote:
>> Hi Group,
>> I have a data matrix sm (dput code given below).
>>
>> I want to create a data matrix with rows with same variable that have
>> higher mean.
>
Hi Group,
I have a data matrix sm (dput code given below).
I want to create a data matrix with rows with same variable that have
higher mean.
> sm
Gene GSM529305 GSM529306 GSM529307 GSM529308
1A1BG 6.57 6.72 6.83 6.69
2A1CF 2.91 2.80 3.08 3.00
Dear group:
I installed rgl on my mac through terminal. I used
install.packages(rgl) and selected 118 server option.
Installation went well until, I get message checking if installed
packages working and nothing happens.
I opened another terminal window and types library(rgl) and I see my
X11qu
Dear group,
I am trying to generate a vector of random numbers for 20K observation.
however, I want to generate numbers (with 6 decimal places) within the range of
Std. Dev : 2-3
mean : 4-6
Is there a method to generate numbers with 6 decimal places under
these parameters
thank you.
Adrian
__
I'm guessing this is trivial but I've spent two hours searching and reading
FAQ, tutorial, introductory and 'idiom' documents and haven't found a
solution. All I want to do is select a data frame column at run time using
a command line arg. For example, the "test.csv" file contains:
a,b,c
1,2,3
4,
gt; A 0 0 0 0
> B 1 0 0 0
> C 0 -1 0 0
> D -1 1 -1 -1
>
> On Sun, May 22, 2016 at 2:00 PM Adrian Johnson
> wrote:
>>
>> Hi group:
>> I am having difficulty with if else condition. I kindly request some help.
>>
>> I have a matrix k
&
Hi group:
I am having difficulty with if else condition. I kindly request some help.
I have a matrix k
> k
C1 C2 C3 C4
A 0.09902175 -0.1083887 0.2018689 -0.3546167
B 1.60623838 -1.4167034 0.9076373 -0.3161138
C -0.10433133 -1.7060911 -0.4030050 1.0153297
D
cceeds but coef is not listed as a method.
Right now, I'm contemplating this:
zz1 < - try(coef(zz))
if (inherits(zz1, "try-error")) stop("Your model has no coef method")
This seems like a bad workaround because I have to actually run the
function in order to find out if t
Hello:
sorry I've been trying to sort a matrix to make waterfall plot using
barplot function.
I have have 30x5 matrix.Rows are samples and columns are results
for a test as numeric vector.
I want sort matrix by column. For example, first I want to sort column
1, in decreasing values where col
Hi,
As i need R to speak to Bloomberg (and big only runs on windows), i'm
running windows 7 via VM Fusion on my mac.
I think i am having permission problems, as i cannot use install.packages,
and cannot change .libPaths via either a .Rprofile, or Profile.site.
I've posted more detail in this sup
ames(x2))
>>
>> new_x2 <- x2
>>
>> for (i in missing) new_x2[[i]] <- NA
>>
>> new_x2
> Subject AD FH B C
> 1 x1 4.3 -2.4 1.3 -2.3 NA NA
> 2 x2 2.4 0.1 0.5 -1.4 NA NA
>
>
>
>
>
> Jim Holtman
> Data Munger
Dear group:
I have two data frames. The column names of the two data frame has
some common variables but not identical.
my aim is to make 2 DFs more uniform by taking union of both colnames
For example: I have x1 and x2 matrices:
> x1
SubjectAB CD
1 x1 1.5 -1.3 0.4 -0.2
t; remote advice from the internet on such complex data (including mine!)
>
> Cheers,
> Bert
>
>
> Cheers,
> Bert
>
> Bert Gunter
> Genentech Nonclinical Biostatistics
> (650) 467-7374
>
> "Data is not information. Information is not knowledge. And know
I'm trying to use the grofit package to compare growth rates between
bacterial cultures, but I've come across a couple glitches/things I
don't understand. I'm not sure if they're related to the package or to a
problem with my growth data, which is messy. Some strains don't follow
a proper logarithm
I know this has been explained a few times here in different scenarios, but I
am having a hard time digesting this.
The following code works fine as long as it's not inside a function (see below).
df$season <- as.character(df$season) temp <- model.matrix( ~ season - 1,
data=df) df <- cbind(df
thanks it works I guess:
merge(b1,b2,by='Subject')
On Fri, Sep 19, 2014 at 5:03 PM, Uwe Ligges
wrote:
> See ?merge
>
> Best,
> Uwe Ligges
>
>
> On 19.09.2014 22:58, Adrian Johnson wrote:
>>
>> Hi:
>> Appreciate if I could get some help.
>
Hi:
Appreciate if I could get some help.
I have two data frames.
I want to combine these two dfs bases on first column.
df1 :
SubjectG1 G2G3
A 10 1 0
B 20 220
df2:
Subject m1m2 m3
A 20 9 30
B
The way I have programed my code the same animation runs and then starts
over again with Adobe Flash. Each time the animation ends and starts is it
possible to have a different animation start each time? Thanks in advance
for any guidance.
[[alternative HTML version deleted]]
t; if ((n <- length(extraDimnames[[1]])) > 0) {
>> x <- rbind(x, array(0, c(n, ncol(x)), dimnames =
>> list(extraDimnames[[1]],
>> NULL)))
>> }
>> if ((n <- length(extraDimnames[[2]])) > 0) {
>>
Hello again. sorry for question again.
may be I was not clear in asking before.
I don't want to remove rows from matrix, since row names and column
names are identical in matrix.
I tried your suggestion and here is what I get:
> fx <- function(x,x1){
+ i <- as.matrix(x1[,c("V1","V2")])
+ x[i]
wn
wrote:
> On Tue, Aug 12, 2014 at 7:14 PM, Adrian Johnson
> wrote:
>>
>> Hi:
>> sorry I have a basic question.
>>
>> I have a data frame with two columns:
>> > x1
>> V1 V2
>> 1 AKT3TCL1A
>> 2 AKTIPVPS41
>> 3
Hi:
sorry I have a basic question.
I have a data frame with two columns:
> x1
V1 V2
1 AKT3TCL1A
2 AKTIPVPS41
3 AKTIPPDPK1
4 AKTIP GTF3C1
5 AKTIPHOOK2
6 AKTIPPOLA2
7 AKTIP KIAA1377
8 AKTIP FAM160A2
9 AKTIPVPS16
10 AKTIPVPS18
I have a matrix 1211
Hi:
I am requesting help on matrix mapping.
I have a matrix that is 5000 rows x 3000 columns in R env.
Matrix:
A BC D E
S1 0.01 0.2 -0.3 0.8-1
S2 -21.4 2.3 3.1-2
S3 -4 -3-2
Hi:
I am trying to identify mutually exclusive events from the following
example:
Cluster Gene Mutatednot-mutated
1 G1 1 0
1 G2 1 0
1 G3 0 1
1 G4
*I am receiving the error message â*Error in file.exists(swf.file) :
invalid 'file' argument*â from my swf2html command. In addition, there is a
command that says the Flash file was created: â*Flash has been created at:
C:\Users\CHERYL\AppData\Local\Temp\Rtmp6n6FXw\file2.swf*â*
*Below is t
When I call matrices from a function, they are called but are not
recognized as matrices. I use the code below. From the main function, when
I use the command is.matrix(), the response is FALSE. Why are the matrices
not recognized as matrices? Thanks in advance for any guidance.
#This function cre
Local\Temp\RtmpqayKkJ/file00109.png"
"C:\Users\CHERYL\AppData\Local\Temp\RtmpqayKkJ/file00110.png"
"C:\Users\CHERYL\AppData\Local\Temp\RtmpqayKkJ/file00111.png"
"C:\Users\CHERYL\AppData\Local\Temp\RtmpqayKkJ/file00112.png"
"C:\Users\CHERYL\AppData\Local\Te
When I run code in R, my R console output stops before all the code has
complied. There are no error messages, but there must be an error
somewhere. Thanks in advance for any guidance.
[[alternative HTML version deleted]]
__
R-help@r-project.org
I would like to run R code continuously in the background of a HTML page.
This code will run in a loop that has a random number generator. I would
like the different values from the random number generator to be displayed
on the HTML page as the loop iterates. Thanks in advance for any help.
When I run the code below, I receive the following error message. Thanks in
advance for help with fixing this error message.
saveSWF({
}, img.name = "file",swf.name = "file2.swf" , single.opts = "'utf8':
false", autoplay = FALSE ,
interval = 0.1, imgdir = "directory", htmlfile = "random.html
By using the animation package, I get the warning message "In saveSWF({ :
the executablepng2swf.exedoes not exist!". Help in understanding why this
message is given will be appreciated.
Thanks
[[alternative HTML version deleted]]
__
R-help@r-pr
Eduardo M. A. M. Mendes gmail.com> writes:
>
> Hello
>
> I am using xyplot (lattice) to plot a xts variable. There are 20 variables
within the xts variable (index by a
> datetime vector sampled every 1 minute). The results are very nice and help
me to understand what is going
> on with the
I know, I don't have all the right
words here.
I've built a toy example that will illustrate the problem, you tell me
the words for it.
## Paul Johnson 2014-04-10
dat <- data.frame(x = rnorm(50),y = rnorm(50))
m1 <- lm(y ~ x, dat)
myRegFit <- function(model, nd) predict(m
re it keeps
> every unique 'code' from both datasets and fills the blanks in both
> rows with 0:
>
> FinalDataSet:
> Code Cap04 Cap08
> 2 120 120
> 6 75 0
> 7 220 112
> 90 190
> 17
TRUE TRUE TRUE FALSE TRUE TRUE FALSE FALSE FALSE TRUE
> TRUE FALSE
> [25] TRUE TRUE FALSE FALSE FALSE TRUE TRUE FALSE FALSE TRUE
> TRUE TRUE
> [37] FALSE FALSE FALSE FALSE TRUE TRUE FALSE TRUE FALSE FALSE
> TRUE TRUE
> [49] TRUE TRUE
>
> And adding or ch
) == 0, TRUE,
FALSE
)
)
)
On Tue, Feb 18, 2014 at 10:21 AM, Jeff Johnson wrote:
> This is my first time with ifelse, but I've tried:
>
> mydata$FNAME_SUSPECT <- ifelse(mydata$FNAME_TOKEN_COUNT > 3, TRUE, FALSE,
> if
.@r-project.org
> [mailto:r-help-boun...@r-project.org] On Behalf Of Jeff Johnson
> Sent: Tuesday, February 18, 2014 11:24 AM
> To: R help
> Subject: [R] Updating a data frame based on if condition
>
> I have a subset of data that I have identified as "suspect" (f
I have a subset of data that I have identified as "suspect" (for example,
the first name has excessive spaces, is longer than 35 characters or has a
number).
What I want to do is update the FNAME_SUSPECT field in "mydata" to TRUE if
any of those conditions are met.
Here's my data:
> dput(mydata)
I'm running Windows 7 and RStudio .98.490. I need to edit the CSS file to
test something out, but I've found multiple files and changing them seems
to do nothing. It almost seems like the CSS may be cached or something
since all changes to it do nothing. FYI, I've read the tutorials on custom
CSS a
of x-large and
saving the doc, but when I knit the document it does not change anything.
Any guidance you can provide would be extremely helpful. Again, I'm using
R-Studio on Windows.
On Thu, Jan 30, 2014 at 3:54 PM, Jeff Johnson wrote:
> Thanks Yihui and Jeff.
>
> I've
AM, Jeff Newmiller
> wrote:
> > This sounds like a classic "you need to write a custom CSS file"
> problem... Which is off-topic here, so is homework for you.
> >
> > On January 30, 2014 8:34:32 AM PST, Jeff Johnson
> wrote:
> >>Hi Yihui,
> >&
"FNAME_TOKEN_COUNT",
"LNAME_LENGTH", "LNAME_PATTERN", "MNAME_LENGTH", "MNAME_PATTERN",
"MNAME_TOKEN_COUNT", "LNAME_TOKEN_COUNT", "EMAIL_LENGTH", "VALID_EMAIL"
), row.names = 1L, class = "data.frame"
at 5:57 PM, Yihui Xie wrote:
>
> Please provide a minimal example -- are you using R Markdown or R
> HTML? Both can produce HTML output:
> http://yihui.name/knitr/demo/minimal/
>
> Regards,
> Yihui
> --
> Yihui Xie
> Web: http://yihui.name
>
>
>>
Hi there,
I'm currently using knitr to generate an html file, however the output of
my code is in a font size that's larger than I desire. I've been looking
through various options for controlling the font size of the code results,
such as the knitr manual, opts_chunk, and latex.
The actual code i
I've been looking through the R documents to see if there's a way to not
output certain chunks of code. I'm trying to present a document to a team
of folks that won't necessarily be interested in the line-by-line code,
though they are interested in the charts, etc. Thus, I'd like to not output
cert
I have a dataset "mydf" with a field EMAIL_ADDRESS. When importing, I
specified:
mydf <- read.csv(file = extract, header = TRUE, stringsAsFactors = FALSE,
na.strings=c("NA",""))
I've also tried setting na.strings= c("NA","","") but I don't know if
it's appropriate to put there.
I'm running
a <-
I'm trying to find a more efficient to calculate the percent a field is
populated and repeat it for each field (column).
First, I'm counting the number of lines:
lines <- as.integer(countLines(extract) - 1)
dput(lines)
10L
extract <- 'C:/Users/jeffjohn/Desktop/batchextract_100k_sample.csv'
my
Hi, I'm pretty new to R and am trying to develop a reusable set of scripts
that I can use to profile various data types and common fields in our
database. I know that what I'm asking is a can of worms, so please bear
with me. :)
For example, we store a person's first name, last name, phone number,
Hi, I'm pretty new to R and am trying to develop a reusable set of scripts
that I can use to profile various data types and common fields in our
database. I know that what I'm asking is a can of worms, so please bear
with me. :)
For example, we store a person's first name, last name, phone number,
, "BR", "BS", "CA", "CH",
>
> "CM", "CN", "CO", "CR", "CY", "DE", "DK", "DO", "EC", "ES", "FI",
>
> "FR", "GB", "
;, "TZ", "ZA"), class = "factor")),
.Names = "COUNTRY", row.names = c(329L,
1146L, 1474L, 1491L, 1585L, 1997L, 2190L, 2382L, 2442L, 2499L,
2703L, 3151L, 3278L, 3652L, 4730L, 5106L, 5214L, 5447L, 5710L,
5924L, 6185L, 6204L, 6258L, 6383L, 6811L), class = "data.
e, Jan 14, 2014 at 1:05 PM, Marc Schwartz wrote:
> On Jan 14, 2014, at 1:38 PM, Jeff Johnson wrote:
>
> > I'm running the following to get what I would expect is a subset of
> > countries that are not equal to "US" AND COUNTRY is not in one of my
> > validcou
Thanks John (and everyone else as well). John's example got it very close.
I can tweak from here. Thanks!
On Tue, Jan 14, 2014 at 1:22 PM, John Kane wrote:
> I am not sure that I got the data correctly--it is much better to supply
> sample data using dput(). See ?dput for more information but I
I'm running the following to get what I would expect is a subset of
countries that are not equal to "US" AND COUNTRY is not in one of my
validcountries values.
non_us <- subset(mydf, (COUNTRY %in% validcountries) & COUNTRY != "US",
select = COUNTRY, na.rm=TRUE)
however, when I then do table(non_u
1 - 100 of 391 matches
Mail list logo