You should use readLines
instead of read.table
. (And it really makes no sense to use “\n” as a separator since it is already the end-of-line marker.)
Names=readLines(path2)
str(Names)
More Related Contents:
- Create dynamic number of input elements with R/Shiny
- Way to securely give a password to R application from the terminal?
- How can the facet function in ggplot be used to create a histogram in order to visualize distributions for all variables in a dataset?
- Increasing (or decreasing) the memory available to R processes
- Transform year/week to date object
- How do you use “
- Force R not to use exponential notation (e.g. e+10)?
- Split time series data into time intervals (say an hour) and then plot the count
- Convert week number to date
- Why would R use the “L” suffix to denote an integer?
- Is there a better alternative than string manipulation to programmatically build formulas?
- ‘Reset inputs’ button in shiny app
- Stacked barchart, independent fill order for each stack
- Same function over multiple data frames in R
- Convert yyyymmdd string to Date class in R
- Read Stata 13 file in R
- Last Observation Carried Forward In a data frame? [duplicate]
- tidyverse pivot_longer several sets of columns, but avoid intermediate mutate_wider steps [duplicate]
- different size facets proportional of x axis on ggplot 2 r
- ggplot2 plot area margins?
- Get the event which is fired in Shiny?
- How to change positions of x and y axis in ggplot2
- Add values to a reactive table in shiny
- Error with select function from dplyr
- Undefined columns selected when subsetting data frame
- Error in file(file, “rt”) : invalid ‘description’ argument in complete.cases program
- Generate all possible permutations (or n-tuples)
- devtools::install_github() – Ignore SSL cert verification failure
- fast large matrix multiplication in R
- When does the argument go inside or outside aes()?