Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I am using windows 10 on a DELL laptop. I previously could use the shortcut copy option (Ctrl + C) to copy data frame directly into excel from R using the paste option (Ctrl + V). However, upon a recent trial, the data does not show up in excel. This is not the case when I copy a text from R studio and paste it in either excel or word.
What could be accounting for this?
Thanks in advance for the help.
Would it not be easier to save the data frame as a CSV file?
write.csv(df, file="df.csv")
Which saves to your directory.
Related
Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 days ago.
This post was edited and submitted for review 6 days ago and failed to reopen the post:
Needs more focus Update the question so it focuses on one problem only by editing this post.
Improve this question
I want to make a descriptive table in an APA format using R and import it to Word.
I know packages like rempsyc or apaTables which for statistic analyses, but I can't find a function to quickly create a simple descriptive table with frequencies, percentages, mean, and s.d. (categorical and numeric variables accordingly). For example a table including age, gender, income and education years and level variables.
What is the code for this, including importing the table into a Word format? (a non-APA table format is also ok).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
General question: is there an R package out there that creates an Excel file? Or saves data frames as excel files? Or is it only possible to write files that already exist in a specific directory? If it is possible to create new Excel files, is there also a possibility to create multiple Excel sheets in that file?
Thank you for answering!
I believe the package openxlsx is the most popular package to do this.
Example:
library(openxlsx)
write.xlsx(iris, file = "writeXLSX1.xlsx")
And yes, you can also add multiple sheets. See a nice introduction here.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
Actually, I'm having trouble with importing a CSV file in my script in Rstudio. I am trying:
d <- read.table(file="table1.csv",sep="\t",header=T)
but it says that there is an error in file and "rt".
Type 'getwd()' in the console. If what returns isn't the same path as the file you're trying to read in, change this with setwd("[your filepath here]"). If you want a graphical solution instead, you can use the Set As / Go To Working Directory commands under the 'More' menu in RStudio's Files viewer (bottom right window).
Then try d <- read.csv("table1.csv")
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I want to merge multiple pdf file into single pdf file using unix command.Could someone provide me a solution.
The Poppler folks have produced a pdfunite utility which should do what you want.
In Ubuntu (and possibly other Unixy systems) it is in the poppler-utils package.
You run it with pdfunite file1.pdf file2.pdf ... combinedfile.pdf.
So if, for instance, you had a whole lot of files named file01.pdf, file02.pdf, file03.pdf, ... and wanted to merge them all, pdfunite file?? combined.pdf from the command line should do the job.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 11 months ago.
The community reviewed whether to reopen this question 11 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
I'm redirecting console output to a file, and getting [?25h and [?25l mixed in with my regular output. I've looked online and apparently they are the sequence characters for cnorm and civis, whatever those are. Is there any way to suppress these in the output?
One thing you might try is to set the TERM environment variable to something
that doesn't support those features, for example with a Bash command like this:
env TERM=dumb yourcmd > yourfile
(Where yourcmd is the program whose output you'd like to redirect to output file yourfile)
For other shells, you might have to do something more like
setenv TERM dumb
yourcmd > yourfile
I ended up piping through sed. Jim's info is still very helpful, though. I used this command:
sed 's/\[?25[hl]//'
Incidentally, it catches [?25h and [?25l, but not when they're in succession ([?25h[?25l). Any suggestions for that?